Class ObjType

This class represent a ObjType

Source : file data/ObjType.js at line 32

Constructor

new ObjType ( objTypeName, properties )

Constructor

Source : file data/ObjType.js at line 61

Parameters

Name Type Description
objTypeName String

The name of the ObjType

properties Array of String

The properties names of the ObjType

Public getters and setters

readonly get jsonObject : JsonObject

An object literal with the ObjType properties and without any methods. This object can be used with the JSON object

Source : file data/ObjType.js at line 98

readonly get name : String

The name of the ObjType

Source : file data/ObjType.js at line 76

readonly get properties : Array of String

An array with all the valid properties for the ObjType

Source : file data/ObjType.js at line 90

readonly get version : String

The version of the ObjType

Source : file data/ObjType.js at line 83

Public methods

validate ( something )

Verify that the given object is an ObjType and is valid

Source : file data/ObjType.js at line 110

Parameters

Name Type Description
something JsonObject

An object to validate

Private properties

#objTypeName : String

The name of the object

Source : file data/ObjType.js at line 39

#properties : Array of String

An array with all the valid properties for the ObjType

Source : file data/ObjType.js at line 53

#validObjTypeNames : Array of String

An array with all the valid objects names for the ObjType objects

Source : file data/ObjType.js at line 46