Class AbstractTypeXmlMapping

    • Field Detail

      • contexts

        protected final java.util.Map<java.lang.Class<?>,​XmlSpecificContext> contexts
        Mapping of concrete type to its context.
      • items

        protected final java.util.List<net.officefloor.plugin.xml.marshall.tree.TypeItem> items
        Contains the configurations for the various types potentially held within the collection.
      • elementName

        protected final java.lang.String elementName
        Name of XML element for this mapping.
      • elementStart

        protected final java.lang.String elementStart
        Starting XML tag to surround the collection.
      • elementEnd

        protected final java.lang.String elementEnd
        Ending XML tag to surround the collection.
    • Constructor Detail

      • AbstractTypeXmlMapping

        public AbstractTypeXmlMapping​(java.lang.String elementName,
                                      java.lang.reflect.Method getMethod,
                                      XmlMappingMetaData[] items,
                                      TranslatorRegistry translatorRegistry,
                                      ReferencedXmlMappingRegistry referenceRegistry)
                               throws XmlMarshallException
        Initiate with details to map specific sub-types.
        Parameters:
        elementName - Name of XML element for this mapping or null if no element.
        getMethod - Method to obtain the collection.
        items - Configuration for items to match to sub-types.
        referenceRegistry - Registry of XmlMapping that may be referenced.
        translatorRegistry - Registry of the Translator instances.
        Throws:
        XmlMarshallException - If fails to configure.