Reference Source
public class | source

XKTDefaultDataSource

Default data access strategy for XKTLoaderPlugin.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

Method Summary

Public Methods
public

getManifest(manifestSrc: String | Number, ok: Function, error: Function)

Gets manifest JSON.

public

getMetaModel(metaModelSrc: String | Number, ok: Function, error: Function)

Gets metamodel JSON.

public

getXKT(src: String | Number, ok: Function, error: Function)

Gets the contents of the given .xkt file in an arraybuffer.

Public Constructors

public constructor() source

Public Members

public cacheBuster: * source

Public Methods

public getManifest(manifestSrc: String | Number, ok: Function, error: Function) source

Gets manifest JSON.

Params:

NameTypeAttributeDescription
manifestSrc String | Number

Identifies the manifest JSON asset.

ok Function

Fired on successful loading of the manifest JSON asset.

error Function

Fired on error while loading the manifest JSON asset.

public getMetaModel(metaModelSrc: String | Number, ok: Function, error: Function) source

Gets metamodel JSON.

Params:

NameTypeAttributeDescription
metaModelSrc String | Number

Identifies the metamodel JSON asset.

ok Function

Fired on successful loading of the metamodel JSON asset.

error Function

Fired on error while loading the metamodel JSON asset.

public getXKT(src: String | Number, ok: Function, error: Function) source

Gets the contents of the given .xkt file in an arraybuffer.

Params:

NameTypeAttributeDescription
src String | Number

Path or ID of an .xkt file.

ok Function

Callback fired on success, argument is the .xkt file in an arraybuffer.

error Function

Callback fired on error.