Class ElementXmlMapping
- java.lang.Object
-
- net.officefloor.plugin.xml.unmarshall.tree.ElementXmlMapping
-
public class ElementXmlMapping extends java.lang.ObjectContains theXmlMappinginstance for a particular element and theAttributeXmlMappingsfor the attributes of the element.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description protected AttributeXmlMappingsattributeXmlMappingsXmlMappinginstances of the attributes of the element.protected XmlMappingelementXmlMappingXmlMappingof the element.protected java.util.List<XmlMapping>staticXmlMappingsList of staticXmlMappinginstances for the element.
-
Constructor Summary
Constructors Constructor Description ElementXmlMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddAttributeXmlMapping(java.lang.String attributeName, XmlMapping mapping)Adds aXmlMappingfor an attribute of the element.voidaddStaticXmlMappings(XmlMapping mapping)Adds a staticXmlMappingto the element.AttributeXmlMappingsgetAttributeXmlMappings()Obtains theAttributeXmlMappingsfor the attributes of the element.XmlMappinggetElementXmlMapping()Obtains theXmlMappingfor the element.java.util.List<XmlMapping>getStaticXmlMappings()Obtains the list of staticXmlMappinginstances for the element.protected voidsetElementXmlMapping(XmlMapping mapping)Specifies theXmlMappingfor the element.
-
-
-
Field Detail
-
elementXmlMapping
protected XmlMapping elementXmlMapping
XmlMappingof the element.
-
attributeXmlMappings
protected AttributeXmlMappings attributeXmlMappings
XmlMappinginstances of the attributes of the element.
-
staticXmlMappings
protected java.util.List<XmlMapping> staticXmlMappings
List of staticXmlMappinginstances for the element.
-
-
Method Detail
-
getElementXmlMapping
public XmlMapping getElementXmlMapping()
Obtains theXmlMappingfor the element.- Returns:
XmlMappingfor the element ornullif there is noXmlMappingfor the element.
-
getAttributeXmlMappings
public AttributeXmlMappings getAttributeXmlMappings()
Obtains theAttributeXmlMappingsfor the attributes of the element.- Returns:
AttributeXmlMappingsfor the attribute ornullif there are noAttributeXmlMappingsfor the element.
-
setElementXmlMapping
protected void setElementXmlMapping(XmlMapping mapping)
Specifies theXmlMappingfor the element.- Parameters:
mapping-XmlMappingfor the element.
-
addAttributeXmlMapping
protected void addAttributeXmlMapping(java.lang.String attributeName, XmlMapping mapping)Adds aXmlMappingfor an attribute of the element.- Parameters:
attributeName- Attribute name.mapping-XmlMappingfor the attribute.
-
getStaticXmlMappings
public java.util.List<XmlMapping> getStaticXmlMappings()
Obtains the list of staticXmlMappinginstances for the element.- Returns:
ListofXmlMapping.
-
addStaticXmlMappings
public void addStaticXmlMappings(XmlMapping mapping)
Adds a staticXmlMappingto the element.- Parameters:
mapping- StaticXmlMapping.
-
-