Package | org.igniterealtime.xiff.data |
Class | public class ExtensionClassRegistry |
Inheritance | ExtensionClassRegistry ![]() |
Method | Defined By | ||
---|---|---|---|
getNamespaces():Array [static]
Get a list of namespaces of the currently enabled extensions. | ExtensionClassRegistry | ||
lookup(ns:String, elementName:String = null):Class [static]
Find the extension with the given NS and ELEMENT_NAME if availale in the registery. | ExtensionClassRegistry | ||
register(extensionClass:Class):Boolean [static]
Registers the given extension with the extension registry for it to be used,
in case incoming data matches its ELEMENT_NAME and NS. | ExtensionClassRegistry | ||
remove(extensionClass:Class):Boolean [static]
Remove the given extension from the registery. | ExtensionClassRegistry |
getNamespaces | () | method |
public static function getNamespaces():Array
Get a list of namespaces of the currently enabled extensions.
ReturnsArray |
lookup | () | method |
public static function lookup(ns:String, elementName:String = null):Class
Find the extension with the given NS and ELEMENT_NAME if availale in the registery.
Parameters
ns:String | |
elementName:String (default = null ) — Optional ELEMENT_NAME, used if there are several extensions with the same NS
|
Class — |
register | () | method |
public static function register(extensionClass:Class):Boolean
Registers the given extension with the extension registry for it to be used, in case incoming data matches its ELEMENT_NAME and NS.
Parameters
extensionClass:Class |
Boolean — In case the Extension was already added or it was not proper type, returns false.
|
remove | () | method |
public static function remove(extensionClass:Class):Boolean
Remove the given extension from the registery.
Parameters
extensionClass:Class |
Boolean |