Class AttributeXmlMappings


  • public class AttributeXmlMappings
    extends java.lang.Object
    Contains the XmlMapping instances for attributes of a particular element.
    Author:
    Daniel Sagenschneider
    • Field Detail

      • mappings

        protected final java.util.Map<java.lang.String,​XmlMapping> mappings
        Mappings of attribute to appropriate XmlMapping.
    • Constructor Detail

      • AttributeXmlMappings

        public AttributeXmlMappings()
    • Method Detail

      • getXmlMapping

        public XmlMapping getXmlMapping​(java.lang.String attributeName)
        Obtains the XmlMapping for the input attribute.
        Parameters:
        attributeName - Attribute name.
        Returns:
        XmlMapping for the attribute or null if there is no mapping.
      • addXmlMapping

        protected void addXmlMapping​(java.lang.String attributeName,
                                     XmlMapping mapping)
        Adds an XmlMapping for the attribute.
        Parameters:
        attributeName - Attribute name.
        mapping - XmlMapping for the attribute.