Packagecom.cyntaxic.cynmvc
Classpublic dynamic class CyntaxicVO
InheritanceCyntaxicVO Inheritance Object
Subclasses DataCallVO, ErrorCodeVO, ResizeVO, ScopeVO, VersionVO

CyntaxicVO is the base class for all value objects.



Public Methods
 MethodDefined By
  
CyntaxicVO(data:Object = null)
Creates a new instance of CyntaxicVO.
CyntaxicVO
  
describe(compact:Boolean = true):String
Returns a valid JSON string describing the object.
CyntaxicVO
  
getProp(prop:String):Object
Gets a property value by its property name.
CyntaxicVO
Constructor Detail
CyntaxicVO()Constructor
public function CyntaxicVO(data:Object = null)

Creates a new instance of CyntaxicVO. For dynamic property appending, extend the class and use super(data) to pass the property object to the superclass for appending.

Parameters
data:Object (default = null) — A data object with properties to be appended by its subclass.
Method Detail
describe()method
public function describe(compact:Boolean = true):String

Returns a valid JSON string describing the object. Objects that can't be used in JSON like the Function object are returned as a string literal.

Parameters

compact:Boolean (default = true) — If false the string is not compacted.

Returns
String — A valid JSON string.
getProp()method 
public function getProp(prop:String):Object

Gets a property value by its property name.

Parameters

prop:String — The string value of the property name.

Returns
Object — The value of the property.