| Package | com.cyntaxic.cynmvc |
| Class | public dynamic class CyntaxicVO |
| Inheritance | CyntaxicVO Object |
| Subclasses | DataCallVO, ErrorCodeVO, ResizeVO, ScopeVO, VersionVO |
CyntaxicVO is the base class for all value objects.
| Method | Defined 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 | ||
| 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.
data:Object (default = null) — A data object with properties to be appended by its subclass.
|
| describe | () | method |
public function describe(compact:Boolean = true):StringReturns 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.
|
String — A valid JSON string.
|
| getProp | () | method |
public function getProp(prop:String):ObjectGets a property value by its property name.
Parameters
prop:String — The string value of the property name.
|
Object — The value of the property.
|