Reference Source
public class | source

XKTDefaultDataSource

Default data access strategy for XKTLoaderPlugin.

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

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

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 Methods

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

Gets metamodel JSON.

Params:

NameTypeAttributeDescription
metaModelSrc String | Number

Identifies the metamodel JSON asset.

ok *

Fired on successful loading of the metamodel JSON asset.

error *

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 to .xkt file.

ok Function

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

error Function

Callback fired on error.