API Docs for:
Show:

TypeInfo Class

type of model's property

Item Index

Properties

Methods

createModelDictType

(
  • modelName
  • [options.name]
)
TypeInfo private static

get TypeInfo as MODEL_DICT

Parameters:

  • modelName String
  • [options.name] String optional

    name of dict model, by default: xxx-yyy-dict when modelName is xxx-yyy

Returns:

TypeInfo:

type

createModelListType

(
  • modelName
  • [options.name]
)
TypeInfo private static

get TypeInfo as MODEL_LIST

Parameters:

  • modelName String
  • [options.name] String optional

    name of list model, by default: xxx-yyy-list when modelName is xxx-yyy

Returns:

TypeInfo:

type

createModelType

(
  • modelName
  • [idPropName]
)
TypeInfo private static

get TypeInfo as MODEL

Parameters:

  • modelName String
  • [idPropName] String optional

    by default: xxxYyyId when modelName is xxx-yyy

Returns:

TypeInfo:

type

createTemporaryType

(
  • typeName
)
TypeInfo private static

get TypeInfo as temporary value

Parameters:

  • typeName String

Returns:

TypeInfo:

type

equals

(
  • typeName
)
Boolean public

check if the type is the given typeName

Parameters:

  • typeName String

Returns:

Boolean:

notEquals

(
  • typeName
)
Boolean public

check if the type is not the given typeName

Parameters:

  • typeName String

Returns:

Boolean:

Properties

TYPES

Unknown static

TYPES defines various data type, including model and array of models

key: typeName (String) value: type TypeInfo|Function(TypeInfo)