Class ElementXmlMapping
java.lang.Object
net.officefloor.plugin.xml.unmarshall.tree.ElementXmlMapping
Contains the
XmlMapping
instance for a particular element and the
AttributeXmlMappings for
the attributes of the element.- Author:
- Daniel Sagenschneider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AttributeXmlMappingsXmlMappinginstances of the attributes of the element.protected XmlMappingXmlMappingof the element.protected List<XmlMapping>List of staticXmlMappinginstances for the element. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAttributeXmlMapping(String attributeName, XmlMapping mapping) Adds aXmlMappingfor an attribute of the element.voidaddStaticXmlMappings(XmlMapping mapping) Adds a staticXmlMappingto the element.Obtains theAttributeXmlMappingsfor the attributes of the element.Obtains theXmlMappingfor the element.Obtains the list of staticXmlMappinginstances for the element.protected voidsetElementXmlMapping(XmlMapping mapping) Specifies theXmlMappingfor the element.
-
Field Details
-
elementXmlMapping
XmlMappingof the element. -
attributeXmlMappings
XmlMappinginstances of the attributes of the element. -
staticXmlMappings
List of staticXmlMappinginstances for the element.
-
-
Constructor Details
-
ElementXmlMapping
public ElementXmlMapping()
-
-
Method Details
-
getElementXmlMapping
Obtains theXmlMappingfor the element.- Returns:
XmlMappingfor the element ornullif there is noXmlMappingfor the element.
-
getAttributeXmlMappings
Obtains theAttributeXmlMappingsfor the attributes of the element.- Returns:
AttributeXmlMappingsfor the attribute ornullif there are noAttributeXmlMappingsfor the element.
-
setElementXmlMapping
Specifies theXmlMappingfor the element.- Parameters:
mapping-XmlMappingfor the element.
-
addAttributeXmlMapping
Adds aXmlMappingfor an attribute of the element.- Parameters:
attributeName- Attribute name.mapping-XmlMappingfor the attribute.
-
getStaticXmlMappings
Obtains the list of staticXmlMappinginstances for the element.- Returns:
ListofXmlMapping.
-
addStaticXmlMappings
Adds a staticXmlMappingto the element.- Parameters:
mapping- StaticXmlMapping.
-