Packageidv.cjcat.stardust.common
Classpublic class StardustElement
ImplementsXMLConvertible
SubclassesAction, Clock, Deflector, Deflector3D, Emitter, Field, Field3D, Initializer, ParticleHandler, Random, Zone, Zone3D

All Stardust elements are subclasses of this class.



Public Properties
 PropertyDefined by
  name : String
StardustElement
Public Methods
 MethodDefined by
  
StardustElement
  
[Abstract Method] Returns the tag for containing elements of the same type.
StardustElement
  
[Abstract Method] Returns the related objects of the element.
StardustElement
  
getXMLTag():XML
Returns the root tag of the XML representation.
StardustElement
  
getXMLTagName():String
[Abstract Method] Returns the name of the root node of the element's XML representation.
StardustElement
  
parseXML(xml:XML, builder:XMLBuilder = null):void
[Abstract Method] Reconstructs the element from XML representations.
StardustElement
  
toXML():XML
[Abstract Method] Generates XML representation.
StardustElement
Property detail
nameproperty
public var name:String
Constructor detail
StardustElement()constructor
public function StardustElement()
Method detail
getElementTypeXMLTag()method
public function getElementTypeXMLTag():XML

[Abstract Method] Returns the tag for containing elements of the same type.

Returns
XML
getRelatedObjects()method 
public function getRelatedObjects():Array

[Abstract Method] Returns the related objects of the element.

This tells the XMLBuilder which elements are related, so the builder can include them in the XML representation.

Returns
Array
getXMLTag()method 
public final function getXMLTag():XML

Returns the root tag of the XML representation.

Returns
XML
getXMLTagName()method 
public function getXMLTagName():String

[Abstract Method] Returns the name of the root node of the element's XML representation.

Returns
String
parseXML()method 
public function parseXML(xml:XML, builder:XMLBuilder = null):void

[Abstract Method] Reconstructs the element from XML representations.

Parameters
xml:XML
 
builder:XMLBuilder (default = null)
toXML()method 
public function toXML():XML

[Abstract Method] Generates XML representation.

Returns
XML