Class ReferencedXmlMappingRegistry
- java.lang.Object
-
- net.officefloor.plugin.xml.marshall.tree.ReferencedXmlMappingRegistry
-
public class ReferencedXmlMappingRegistry extends java.lang.Object
Registry ofXmlMapping
instances by id.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,XmlMapping>
registry
Registry of theXmlMapping
instances.
-
Constructor Summary
Constructors Constructor Description ReferencedXmlMappingRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlMapping
getXmlMapping(java.lang.String id)
Obtains theXmlMapping
registered under the id.void
registerXmlMapping(java.lang.String id, XmlMapping xmlMapping)
Registers theXmlMapping
.
-
-
-
Field Detail
-
registry
protected final java.util.Map<java.lang.String,XmlMapping> registry
Registry of theXmlMapping
instances.
-
-
Method Detail
-
registerXmlMapping
public void registerXmlMapping(java.lang.String id, XmlMapping xmlMapping)
Registers theXmlMapping
.- Parameters:
id
- Id by which to reference theXmlMapping
.xmlMapping
-XmlMapping
to register.
-
getXmlMapping
public XmlMapping getXmlMapping(java.lang.String id)
Obtains theXmlMapping
registered under the id.- Parameters:
id
- Id of theXmlMapping
.- Returns:
XmlMapping
registered under id ornull
if none registered by id.
-
-