Package | impression.persistence |
Class | public class ChildElement |
Inheritance | ChildElement ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
elementType : String
Identifies the type of data stored within the object. | ChildElement | ||
![]() | length : int [read-only]
The number of items in the collection. | PersistedPropertiesCollection | |
![]() | name : String [read-only]
The name of the collection. | PersistedPropertiesCollection | |
![]() | useIntType : Boolean = false [static]
Specifies how PersistedPropertyCollection objects will store numeric data loaded from an XML object. | PersistedPropertiesCollection |
Method | Defined By | ||
---|---|---|---|
ChildElement(newName:String = null, elementType:String = null)
Creates a new instance of the ChildElement class. | ChildElement | ||
![]() | clear():void
Removes all items from the collection. | PersistedPropertiesCollection | |
clone():* [override]
Returns a copy of the object. | ChildElement | ||
![]() | contains(propertyName:String):Boolean
Returns a value indicating whether or not the property specified by propertyName exists in the collection. | PersistedPropertiesCollection | |
![]() | copyFrom(source:PersistedPropertiesCollection, overwriteExisting:Boolean):void
Copies properties from the source object into the collection. | PersistedPropertiesCollection | |
fromXML(source:XML):ChildElement [static]
Returns a new instance of the ChildElement class based on the data contained in the XML object. | ChildElement | ||
![]() |
Returns an AssetData value. | PersistedPropertiesCollection | |
![]() | getBoolean(propertyName:String, defaultValue:Boolean):Boolean
Returns a Boolean value. | PersistedPropertiesCollection | |
![]() |
Returns a ChildElementCollection value. | PersistedPropertiesCollection | |
![]() |
Returns a ColorData value. | PersistedPropertiesCollection | |
![]() |
Returns a FontData value. | PersistedPropertiesCollection | |
![]() | getInt(propertyName:String, defaultValue:int):int
Returns an int value. | PersistedPropertiesCollection | |
![]() |
Returns a LocationData value. | PersistedPropertiesCollection | |
![]() | getNumber(propertyName:String, defaultValue:Number):Number
Returns a Number value. | PersistedPropertiesCollection | |
![]() | getPPC(propertyName:String, defaultValue:PersistedPropertiesCollection):PersistedPropertiesCollection
Returns a PersistedPropertiesCollection value. | PersistedPropertiesCollection | |
![]() | getRectangle(propertyName:String, defaultValue:Rectangle):Rectangle
Returns a Rectangle value. | PersistedPropertiesCollection | |
![]() | getString(propertyName:String, defaultValue:String):String
Returns a String value. | PersistedPropertiesCollection | |
![]() | getUInt(propertyName:String, defaultValue:uint):uint
Returns a uint value. | PersistedPropertiesCollection | |
![]() | getValue(propertyName:String, defaultValue:*, requireTypeMatching:Boolean = true, requiredType:Class = null):*
Returns a value. | PersistedPropertiesCollection | |
![]() | remove(propertyName:String):void
Removes an item from the collection. | PersistedPropertiesCollection | |
![]() | removeIn(source:PersistedPropertiesCollection):void
Removes all properties from this instance where the property name is present in source. | PersistedPropertiesCollection | |
![]() |
Stores an AssetData value. | PersistedPropertiesCollection | |
![]() | setBoolean(propertyName:String, newValue:Boolean):void
Stores a Boolean value. | PersistedPropertiesCollection | |
![]() | setCEC(propertyName:String, newValue:ChildElementCollection):void
Stores a ChildElementCollection value. | PersistedPropertiesCollection | |
![]() |
Stores a ColorData value. | PersistedPropertiesCollection | |
![]() |
Stores a FontData value. | PersistedPropertiesCollection | |
![]() | setInt(propertyName:String, newValue:int):void
Stores an int value. | PersistedPropertiesCollection | |
![]() | setLocation(propertyName:String, newValue:LocationData):void
Stores a LocationData value. | PersistedPropertiesCollection | |
![]() | setNumber(propertyName:String, newValue:Number):void
Stores a Number value. | PersistedPropertiesCollection | |
![]() | setPPC(propertyName:String, newValue:PersistedPropertiesCollection):void
Stores a PersistedPropertiesCollection value. | PersistedPropertiesCollection | |
![]() | setRectangle(propertyName:String, newValue:Rectangle):void
Stores a Rectangle value. | PersistedPropertiesCollection | |
![]() | setString(propertyName:String, newValue:String):void
Stores a String value. | PersistedPropertiesCollection | |
![]() | setUInt(propertyName:String, newValue:uint):void
Stores a uint value. | PersistedPropertiesCollection | |
![]() | setValue(propertyName:String, newValue:*):void
Stores a value. | PersistedPropertiesCollection | |
![]() | toObject(cloneProperties:Boolean = true):Object
Returns an object containing a copy of all the items stored in the collection. | PersistedPropertiesCollection | |
toString():String [override]
Returns the string representation of the specified object. | ChildElement | ||
toXML():XML [override]
Returns an Impression-format XML object containing all the data from the object. | ChildElement | ||
![]() | typesMatch(a:*, b:*, requiredType:Class = null):Boolean
Returns a Boolean value specifying whether or not an item is of a specific type. | PersistedPropertiesCollection |
elementType | property |
elementType:String
Identifies the type of data stored within the object.
If elementType
is set to null
, an empty string ("") will be used.
The default value is the empty string ("")
.
public function get elementType():String
public function set elementType(value:String):void
ChildElement | () | Constructor |
public function ChildElement(newName:String = null, elementType:String = null)
Creates a new instance of the ChildElement class.
If newName
is null
, "properties" will be used for the name
property. If
elementType
is null
, an empty string ("") will be used for the elementType
property.
newName:String (default = null ) — A String specifying the name of the object.
| |
elementType:String (default = null ) — A String specifying the type of the object.
|
clone | () | method |
override public function clone():*
Returns a copy of the object.
Objects that have a type-specific set[type]/get[type] method pair defined in this class
(for example, AssetData
objects) are copied by invoking their clone
method before
they are stored in the clone.
Other property values are assigned to the clone using the equals operator (=). Depending on the
object type, it may be either a copy of, or a reference to, the original object. Use caution when working with
objects stored using setValue
.
* — A copy of the object.
|
See also
fromXML | () | method |
public static function fromXML(source:XML):ChildElement
Returns a new instance of the ChildElement class based on the data contained in the XML object.
If source
is null
, an empty ChildElement object is returned.
If the source.name
property is not "ce", an error is thrown.
The XML format of a ChildElement object is:
Where [persisted property value]
can be any valid PersistedPropertyCollection XML property values.
Parameters
source:XML — The object containing the data to use.
|
ChildElement — A ChildElement object containing the data from the source XML object.
|
ArgumentError — node is not a <ce> element (ArgumentError).
|
See also
toString | () | method |
override public function toString():String
Returns the string representation of the specified object.
ReturnsString — The string representation of the specified object.
|
toXML | () | method |
override public function toXML():XML
Returns an Impression-format XML object containing all the data from the object.
ReturnsXML — An XML object containing all the data from the object.
|
See also