| Method | Defined by | ||
|---|---|---|---|
|
addModelToCache(model:Object, fqn:String):void
[static]
Add a give model to cache.
| RxUtils | ||
|
addObjectIdToResourceURL(url:String, object:Object, suffix:String = "fxml"):String
[static]
Reformats the URL to be suitable for update/destroy requests where model id
is embedded in the URL.
| RxUtils | ||
|
canDeleteModel(model:RxModel):Boolean
[static]
Check to see if the model can be deleted
| RxUtils | ||
|
cast(targetType:String, value:Object):*
[static]
Casts a variable to specific type from a string, while trying to do the right thing
based on targetType description.
| RxUtils | ||
|
cleanupModelAssociations(model:Object, fqn:String):void
[static]
Clean up all HasOne,HasMany associations that this model refers to recursively
| RxUtils | ||
|
cleanupModelReferences(model:Object, fqn:String, singleReference:String = ""):void
[static]
Clean up references to specified model.
| RxUtils | ||
|
clone(object:Object, recursive:Boolean = false):Object
[static]
If the object cloned is a RxModel do clone based on reflection, else
default to binary ObjectUtil clone.
| RxUtils | ||
|
daysFromNow(numDays:int):Date
[static]
Calculate days from now
| RxUtils | ||
|
describeResource(object:Object):XMLList
[static]
Gets Resource metadata.
| RxUtils | ||
|
fireUndoRedoActionEvent(undoRedoFlag:int = 0):void
[static]
Dispatches appropriate Undo/Redo event depending on the flag.
| RxUtils | ||
|
getAttributeAnnotation(attribute:XML, annotationName:String):XMLList
[static]
Get specific annotation from XML node.
| RxUtils | ||
|
getResourceName(object:Object):String
[static]
Get Rx Model resource name annotation
| RxUtils | ||
|
getResourcePathPrefix(object:Object):String
[static]
Get Rx Model resource pathPrefix annotation
| RxUtils | ||
|
getWithDefault(str:String, defaultStr:String):String
[static]
Get default string is str is empty or null
| RxUtils | ||
|
isAnyEmpty(... args):Boolean
[static]
Checks to see if any of the arguments is empty or null
| RxUtils | ||
|
isBelongsTo(attribute:XML):Boolean
[static]
Checks if the node is annotated with [BelongsTo]
| RxUtils | ||
|
isDateTime(attribute:XML):Boolean
[static]
Checks if the node is annotated with [DateTime]
| RxUtils | ||
|
isEmpty(str:String):Boolean
[static]
Check if the string is null or empty
| RxUtils | ||
|
isHasMany(attribute:XML):Boolean
[static]
Checks if the node is annotated with [HasMany]
| RxUtils | ||
|
isHasOne(attribute:XML):Boolean
[static]
Checks if the node is annotated with [HasOne]
| RxUtils | ||
|
isIgnored(attribute:XML):Boolean
[static]
Checks if the node is annotated with [Ignored]
| RxUtils | ||
|
isInSamePackage(fqn1:String, fqn2:String):Boolean
[static]
Checks if given FQNs are in the same package
| RxUtils | ||
|
isInTheFuture(date:Date):Boolean
[static]
Check if a date is in the future
| RxUtils | ||
|
isInvalidPropertyName(name:String):Boolean
[static]
Checks to see if a property should be ignored during serialization based on name.
| RxUtils | ||
|
isInvalidPropertyType(type:String):Boolean
[static]
Checks to see if a property should be ignored during serialization based on type.
| RxUtils | ||
|
isLazy(attribute:XML):Boolean
[static]
Checks if the node is annotated with [Lazy]
| RxUtils | ||
|
isNested(attribute:XML):Boolean
[static]
Checks if the node is annotated with [Nested]
| RxUtils | ||
|
isoToDate(value:String):Date
[static]
Convert from ISO date representation to an actual AS3 Date object
| RxUtils | ||
|
isPolymorphicBelongsTo(attribute:XML):Boolean
[static]
Checks if the node is annotated with [BelongsTo(polymorphic="true")]
| RxUtils | ||
|
itemMatches(text:String, item:Object, properties:Array):Boolean
[static]
Checks to see if any of the specified properties contain given text
| RxUtils | ||
|
lowerCaseFirst(string:String):String
[static]
Lower cases first letter in a string leaving the rest of it alone
| RxUtils | ||
|
mergeArrays(items:Array, toAdd:Array, after:Boolean = false):RxCollection
[static]
Merges two arrays and returns a new RxCollection of the result
| RxUtils | ||
|
navToURL(url:Object, target:String = "_top"):Boolean
[static]
Wrapper around navigateToURL that does URLRequest formatting and error handling
| RxUtils | ||
|
nestResource(object:Object, nestedBy:Array = null, suffix:String = "fxml"):String
[static]
Figures out the URL that this model resource represents including any other
resources that it should be nested under.
| RxUtils | ||
|
removeFirstMatch(o:Object, ac:ArrayCollection):Object
[static]
Shifts first match of the object from target ArrayCollection
| RxUtils | ||
|
shallowCopy(source:Object, target:Object, fqn:String):void
[static]
Do a shallow copy on two RxModel instances.
| RxUtils | ||
|
toCamelCase(string:String):String
[static]
Converts a string to CamelCase from snake_case
| RxUtils | ||
|
toSnakeCase(string:String):String
[static]
Converts a string to snake_case from CamelCase
| RxUtils | ||
|
uncast(object:Object, property:String):*
[static]
Convert a specific object to its string representation
| RxUtils | ||
|
updateExistingParentReferenceIfExists(model:Object, fqn:String):void
[static]
Updates a parent references with this item if their ids match.
| RxUtils | ||
|
upperCaseFirst(string:String):String
[static]
Upper cases first letter in a string leaving the rest of it alone
| RxUtils | ||
| addModelToCache | () | method |
public static function addModelToCache(model:Object, fqn:String):voidAdd a give model to cache.
Parametersmodel:Object — model instance to clean-up references for
|
|
fqn:String — FullyQualifiedName of the model
|
| addObjectIdToResourceURL | () | method |
public static function addObjectIdToResourceURL(url:String, object:Object, suffix:String = "fxml"):StringReformats the URL to be suitable for update/destroy requests where model id is embedded in the URL.
Parametersurl:String — url to reformat
|
|
object:Object — object to append id of
|
|
suffix:String (default = "fxml") |
String — url suitable for being used with update/destroy requests on models
|
| canDeleteModel | () | method |
public static function canDeleteModel(model:RxModel):BooleanCheck to see if the model can be deleted
Parametersmodel:RxModel — RxModel instance to check
|
Boolean |
| cast | () | method |
public static function cast(targetType:String, value:Object):*Casts a variable to specific type from a string, while trying to do the right thing based on targetType description.
ParameterstargetType:String |
|
value:Object |
* |
| cleanupModelAssociations | () | method |
public static function cleanupModelAssociations(model:Object, fqn:String):voidClean up all HasOne,HasMany associations that this model refers to recursively
Parametersmodel:Object — model instance to clean-up references for
|
|
fqn:String — FullyQualifiedName of the model
|
| cleanupModelReferences | () | method |
public static function cleanupModelReferences(model:Object, fqn:String, singleReference:String = ""):voidClean up references to specified model.
Parametersmodel:Object — model instance to clean-up references for
|
|
fqn:String — FullyQualifiedName of the model
|
|
singleReference:String (default = "") — indicates if this reference is single
|
| clone | () | method |
public static function clone(object:Object, recursive:Boolean = false):ObjectIf the object cloned is a RxModel do clone based on reflection, else default to binary ObjectUtil clone. Recursive cloning can be very slow and should be avoided for large trees.
Parametersobject:Object — object to clone
|
|
recursive:Boolean (default = false) — indicates if references RxModels should be cloned too
|
Object — cloned RxModel instance
|
| daysFromNow | () | method |
public static function daysFromNow(numDays:int):DateCalculate days from now
ParametersnumDays:int |
Date |
| describeResource | () | method |
public static function describeResource(object:Object):XMLListGets Resource metadata.
Parametersobject:Object — object to instrospect
|
XMLList |
| fireUndoRedoActionEvent | () | method |
public static function fireUndoRedoActionEvent(undoRedoFlag:int = 0):voidDispatches appropriate Undo/Redo event depending on the flag.
ParametersundoRedoFlag:int (default = 0) — flag indicating what action is being performed
|
| getAttributeAnnotation | () | method |
public static function getAttributeAnnotation(attribute:XML, annotationName:String):XMLListGet specific annotation from XML node.
Parametersattribute:XML |
|
annotationName:String |
XMLList |
| getResourceName | () | method |
public static function getResourceName(object:Object):StringGet Rx Model resource name annotation
Parametersobject:Object — restfulx model
|
String |
| getResourcePathPrefix | () | method |
public static function getResourcePathPrefix(object:Object):StringGet Rx Model resource pathPrefix annotation
Parametersobject:Object — restfulx model
|
String |
| getWithDefault | () | method |
public static function getWithDefault(str:String, defaultStr:String):StringGet default string is str is empty or null
Parametersstr:String |
|
defaultStr:String |
String |
| isAnyEmpty | () | method |
public static function isAnyEmpty(... args):BooleanChecks to see if any of the arguments is empty or null
Parameters... args |
Boolean |
| isBelongsTo | () | method |
public static function isBelongsTo(attribute:XML):BooleanChecks if the node is annotated with [BelongsTo]
Parametersattribute:XML |
Boolean |
| isDateTime | () | method |
public static function isDateTime(attribute:XML):BooleanChecks if the node is annotated with [DateTime]
Parametersattribute:XML |
Boolean |
| isEmpty | () | method |
public static function isEmpty(str:String):BooleanCheck if the string is null or empty
Parametersstr:String — String to check
|
Boolean |
| isHasMany | () | method |
public static function isHasMany(attribute:XML):BooleanChecks if the node is annotated with [HasMany]
Parametersattribute:XML |
Boolean |
| isHasOne | () | method |
public static function isHasOne(attribute:XML):BooleanChecks if the node is annotated with [HasOne]
Parametersattribute:XML |
Boolean |
| isIgnored | () | method |
public static function isIgnored(attribute:XML):BooleanChecks if the node is annotated with [Ignored]
Parametersattribute:XML |
Boolean |
| isInSamePackage | () | method |
public static function isInSamePackage(fqn1:String, fqn2:String):BooleanChecks if given FQNs are in the same package
Parametersfqn1:String — FQN1
|
|
fqn2:String — FQN2
|
Boolean |
| isInTheFuture | () | method |
public static function isInTheFuture(date:Date):BooleanCheck if a date is in the future
Parametersdate:Date |
Boolean |
| isInvalidPropertyName | () | method |
public static function isInvalidPropertyName(name:String):BooleanChecks to see if a property should be ignored during serialization based on name.
Parametersname:String — property name
|
Boolean |
| isInvalidPropertyType | () | method |
public static function isInvalidPropertyType(type:String):BooleanChecks to see if a property should be ignored during serialization based on type.
Parameterstype:String — property type
|
Boolean |
| isLazy | () | method |
public static function isLazy(attribute:XML):BooleanChecks if the node is annotated with [Lazy]
Parametersattribute:XML |
Boolean |
| isNested | () | method |
public static function isNested(attribute:XML):BooleanChecks if the node is annotated with [Nested]
Parametersattribute:XML |
Boolean |
| isoToDate | () | method |
public static function isoToDate(value:String):DateConvert from ISO date representation to an actual AS3 Date object
Parametersvalue:String |
Date |
| isPolymorphicBelongsTo | () | method |
public static function isPolymorphicBelongsTo(attribute:XML):BooleanChecks if the node is annotated with [BelongsTo(polymorphic="true")]
Parametersattribute:XML |
Boolean |
| itemMatches | () | method |
public static function itemMatches(text:String, item:Object, properties:Array):BooleanChecks to see if any of the specified properties contain given text
Parameterstext:String — the text string to match
|
|
item:Object — object to check
|
|
properties:Array — an array of item properties to check against
|
Boolean — true if any of the properties match text, false otherwise
|
| lowerCaseFirst | () | method |
public static function lowerCaseFirst(string:String):StringLower cases first letter in a string leaving the rest of it alone
Parametersstring:String |
String |
| mergeArrays | () | method |
public static function mergeArrays(items:Array, toAdd:Array, after:Boolean = false):RxCollectionMerges two arrays and returns a new RxCollection of the result
Parametersitems:Array |
|
toAdd:Array |
|
after:Boolean (default = false) |
RxCollection |
| navToURL | () | method |
public static function navToURL(url:Object, target:String = "_top"):BooleanWrapper around navigateToURL that does URLRequest formatting and error handling
Parametersurl:Object — either a String URL or a URLRequest
|
|
target:String (default = "_top") — the target for the URL
|
Boolean — true if the navigateToURL call succeeded, false if it did not (or if it wasn't attempted)
|
| nestResource | () | method |
public static function nestResource(object:Object, nestedBy:Array = null, suffix:String = "fxml"):StringFigures out the URL that this model resource represents including any other resources that it should be nested under.
Parametersobject:Object — the model resource
|
|
nestedBy:Array (default = null) — an array of model instances that should be used to nest this resource
|
|
suffix:String (default = "fxml") |
String — string representation of the URL for this model resource
|
| removeFirstMatch | () | method |
public static function removeFirstMatch(o:Object, ac:ArrayCollection):ObjectShifts first match of the object from target ArrayCollection
Parameterso:Object |
|
ac:ArrayCollection |
Object |
| shallowCopy | () | method |
public static function shallowCopy(source:Object, target:Object, fqn:String):voidDo a shallow copy on two RxModel instances. Must of the same type.
Parameterssource:Object — source object
|
|
target:Object — target object
|
|
fqn:String |
| toCamelCase | () | method |
public static function toCamelCase(string:String):StringConverts a string to CamelCase from snake_case
Parametersstring:String |
String |
| toSnakeCase | () | method |
public static function toSnakeCase(string:String):StringConverts a string to snake_case from CamelCase
Parametersstring:String |
String |
| uncast | () | method |
public static function uncast(object:Object, property:String):*Convert a specific object to its string representation
Parametersobject:Object |
|
property:String |
* |
| updateExistingParentReferenceIfExists | () | method |
public static function updateExistingParentReferenceIfExists(model:Object, fqn:String):voidUpdates a parent references with this item if their ids match.
Parametersmodel:Object — model instance to clean-up references for
|
|
fqn:String — FullyQualifiedName of the model
|
| upperCaseFirst | () | method |
public static function upperCaseFirst(string:String):StringUpper cases first letter in a string leaving the rest of it alone
Parametersstring:String |
String |