Packageorg.restfulx.utils
Classpublic class ModelsMetadata

All runtime metadata used by the framework about application models is stored in this class.



Public Properties
 PropertyDefined by
  controllers : Dictionary
maps FQNs to controller names
ModelsMetadata
  eager : Dictionary
lists all dependencies for models
ModelsMetadata
  fqns : Dictionary
various aliases for FQNs
ModelsMetadata
  hmts : Dictionary
computed [HasMany(through)] relationships
ModelsMetadata
  indexed : Dictionary
tracks which models have been indexed
ModelsMetadata
  lazy : Dictionary
lists only [Lazy] annotated dependencies for models
ModelsMetadata
  models : Array
registered models
ModelsMetadata
  names : Dictionary
maps between FQNs and single + pluralized noun versions of FQNs
ModelsMetadata
  parents : Dictionary
computed model inheritance heirarchy
ModelsMetadata
  refs : Dictionary
maps model references to their types and auxilary info
ModelsMetadata
  shown : Dictionary
tracks which models have been shown
ModelsMetadata
  types : Dictionary
maps between Class instances of models and their String representations
ModelsMetadata
  waiting : Dictionary
tracks which models we are currently waiting for
ModelsMetadata
Public Methods
 MethodDefined by
  
ModelsMetadata(models:Array)
Computes all relevant metadata for the models passed in as argument.
ModelsMetadata
  
reset(object:Object = null):void
Resets model metadata.
ModelsMetadata
Property detail
controllersproperty
public var controllers:Dictionary

maps FQNs to controller names

eagerproperty 
public var eager:Dictionary

lists all dependencies for models

fqnsproperty 
public var fqns:Dictionary

various aliases for FQNs

hmtsproperty 
public var hmts:Dictionary

computed [HasMany(through)] relationships

indexedproperty 
public var indexed:Dictionary

tracks which models have been indexed

lazyproperty 
public var lazy:Dictionary

lists only [Lazy] annotated dependencies for models

modelsproperty 
public var models:Array

registered models

namesproperty 
public var names:Dictionary

maps between FQNs and single + pluralized noun versions of FQNs

parentsproperty 
public var parents:Dictionary

computed model inheritance heirarchy

refsproperty 
public var refs:Dictionary

maps model references to their types and auxilary info

shownproperty 
public var shown:Dictionary

tracks which models have been shown

typesproperty 
public var types:Dictionary

maps between Class instances of models and their String representations

waitingproperty 
public var waiting:Dictionary

tracks which models we are currently waiting for

Constructor detail
ModelsMetadata()constructor
public function ModelsMetadata(models:Array)

Computes all relevant metadata for the models passed in as argument.

Parameters
models:Array — array of classes for application models
Method detail
reset()method
public function reset(object:Object = null):void

Resets model metadata.

Parameters
object:Object (default = null) — can be a model class or specific model instance