Packageorg.spicefactory.parsley.xml.mapper
Classpublic class XmlConfigurationNamespaceRegistry
InheritanceXmlConfigurationNamespaceRegistry Inheritance Object

The central registry for custom XML configuration namespaces. Namespaces have to be created and configured before the first XML configuration file containing tags from that namespace gets loaded.



Public Methods
 MethodDefined By
  
[static] Returns all custom XML configuration namespaces that have been added to the registry.
XmlConfigurationNamespaceRegistry
  
getNamespace(uri:String, domain:ApplicationDomain = null):XmlObjectMappings
[static] Returns an XML configuration namespace for the specified URI.
XmlConfigurationNamespaceRegistry
Method Detail
getAllNamespaces()method
public static function getAllNamespaces():Array

Returns all custom XML configuration namespaces that have been added to the registry.

Returns
Array — all custom XML configuration namespaces that have been added to the registry
getNamespace()method 
public static function getNamespace(uri:String, domain:ApplicationDomain = null):XmlObjectMappings

Returns an XML configuration namespace for the specified URI. The instance returned by this namespace can be used to configure the namespace, adding XML-to-Object Mappers for the custom tags. The XmlObjectMappings class offers the core configuration DSL for the Spicelib XML-Object-Mapper.

Parameters

uri:String — the URI of the custom XML configuration namespace
 
domain:ApplicationDomain (default = null) — the ApplicationDomain to use for reflection

Returns
XmlObjectMappings — an instance that can be used to configure the namespace