Packageorg.spicefactory.lib.xml.mapper
Classpublic class RootElementSetup
InheritanceRootElementSetup Inheritance Object

Part of the XML object mapping DSL to set up the root element for a group of mappings.



Public Methods
 MethodDefined By
  
withoutRootElement(domain:ApplicationDomain = null):XmlObjectMappings
Creates a new group of mappings without any specific root element.
RootElementSetup
  
withRootElement(mappedType:Class, domain:ApplicationDomain = null):XmlObjectMappings
Creates a new group of mappings with the specified class acting as the mapping for the root XML element.
RootElementSetup
Method Detail
withoutRootElement()method
public function withoutRootElement(domain:ApplicationDomain = null):XmlObjectMappings

Creates a new group of mappings without any specific root element. This is usually only useful if you merge the group of mappings into another group as the top level group always needs a concrete root mapping.

Parameters

domain:ApplicationDomain (default = null) — the ApplicationDomain to use for reflection

Returns
XmlObjectMappings — a new group of mappings
withRootElement()method 
public function withRootElement(mappedType:Class, domain:ApplicationDomain = null):XmlObjectMappings

Creates a new group of mappings with the specified class acting as the mapping for the root XML element.

Parameters

mappedType:Class — the class acting as the mapping for the root XML element
 
domain:ApplicationDomain (default = null) — the ApplicationDomain to use for reflection

Returns
XmlObjectMappings — a new group of mappings