Class ReferencedXmlMappingRegistry


  • public class ReferencedXmlMappingRegistry
    extends java.lang.Object
    Registry of XmlMapping instances by id.
    Author:
    Daniel Sagenschneider
    • Field Detail

      • registry

        protected final java.util.Map<java.lang.String,​XmlMapping> registry
        Registry of the XmlMapping instances.
    • Constructor Detail

      • ReferencedXmlMappingRegistry

        public ReferencedXmlMappingRegistry()
    • Method Detail

      • registerXmlMapping

        public void registerXmlMapping​(java.lang.String id,
                                       XmlMapping xmlMapping)
        Registers the XmlMapping.
        Parameters:
        id - Id by which to reference the XmlMapping.
        xmlMapping - XmlMapping to register.
      • getXmlMapping

        public XmlMapping getXmlMapping​(java.lang.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.