net.officefloor.plugin.xml.marshall.tree
Class ReferencedXmlMappingRegistry

java.lang.Object
  extended by net.officefloor.plugin.xml.marshall.tree.ReferencedXmlMappingRegistry

public class ReferencedXmlMappingRegistry
extends Object

Registry of XmlMapping instances by id.

Author:
Daniel Sagenschneider

Field Summary
protected  Map<String,XmlMapping> registry
          Registry of the XmlMapping instances.
 
Constructor Summary
ReferencedXmlMappingRegistry()
           
 
Method Summary
 XmlMapping getXmlMapping(String id)
          Obtains the XmlMapping registered under the id.
 void registerXmlMapping(String id, XmlMapping xmlMapping)
          Registers the XmlMapping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

registry

protected final Map<String,XmlMapping> registry
Registry of the XmlMapping instances.

Constructor Detail

ReferencedXmlMappingRegistry

public ReferencedXmlMappingRegistry()
Method Detail

registerXmlMapping

public void registerXmlMapping(String id,
                               XmlMapping xmlMapping)
Registers the XmlMapping.

Parameters:
id - Id by which to reference the XmlMapping.
xmlMapping - XmlMapping to register.

getXmlMapping

public XmlMapping getXmlMapping(String id)
Obtains the XmlMapping registered under the id.

Parameters:
id - Id of the XmlMapping.
Returns:
XmlMapping registered under id or null if none registered by id.


Copyright © 2005-2013. All Rights Reserved.