Packageorg.igniterealtime.xiff.data
Classpublic class ExtensionContainer
InheritanceExtensionContainer Inheritance Object
Implements IExtendable
Subclasses XMLStanza

Contains the implementation for a generic extension container. Use the static method "decorate" to implement the IExtendable interface on a class.



Public Properties
 PropertyDefined By
  xml : XML
The XML node that should be used for this stanza's internal XML representation, base of the XMLStanza, XML element.
ExtensionContainer
Public Methods
 MethodDefined By
  
ExtensionContainer
  
Add extension to the list of the given namespace and insert to the XML element as a child.
ExtensionContainer
  
ExtensionContainer
  
getAllExtensionsByNS(nameSpace:String):Array
ExtensionContainer
  
getExtension(elementName:String):IExtension
Get the extension having the given element name.
ExtensionContainer
  
removeAllExtensions(nameSpace:String):void
ExtensionContainer
  
removeExtension(extension:IExtension):Boolean
ExtensionContainer
Property Detail
xmlproperty
xml:XML

The XML node that should be used for this stanza's internal XML representation, base of the XMLStanza, XML element.

Simply by setting this will take care of the required parsing and deserialisation.


Implementation
    public function get xml():XML
    public function set xml(value:XML):void

See also

Constructor Detail
ExtensionContainer()Constructor
public function ExtensionContainer()

Method Detail
addExtension()method
public function addExtension(extension:IExtension):IExtension

Add extension to the list of the given namespace and insert to the XML element as a child.

Parameters

extension:IExtension

Returns
IExtension — The same IExtension that was passed via the parameter
getAllExtensions()method 
public function getAllExtensions():Array

Returns
Array
getAllExtensionsByNS()method 
public function getAllExtensionsByNS(nameSpace:String):Array

Parameters

nameSpace:String

Returns
Array
getExtension()method 
public function getExtension(elementName:String):IExtension

Get the extension having the given element name. Unfortunetly only takes the oldest of the list...

Parameters

elementName:String

Returns
IExtension

See also

removeAllExtensions()method 
public function removeAllExtensions(nameSpace:String):void

Parameters

nameSpace:String

removeExtension()method 
public function removeExtension(extension:IExtension):Boolean

Parameters

extension:IExtension

Returns
Boolean