net.charlesames.utility.entity
Class XmlExtensionElement
java.lang.Object
net.charlesames.utility.entity.XmlNode
net.charlesames.utility.entity.XmlElement
net.charlesames.utility.entity.XmlExtensionElement
Deprecated.
public abstract class XmlExtensionElement
- extends XmlElement
An XmlExtensionElement instance is a component of an XmlSpec that offers a choice between elements
sharing the same tag, but distinguished by a .
Each XmlExtensionElement instance is created as an anonymous class which defines two particular methods.
XmlElement.getData(WriteableEntity, Element) implements the code which reads data from an XML element into a WriteableEntity instance.
XmlNode.putData(WriteableEntity, Element) implements the code which writes data from a WriteableEntity property into an XML attribute.
- Author:
- Charles Ames
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
addVariation
public XmlExtensionElement.Variation addVariation(java.lang.Class<? extends WriteableEntity> entityClass)
- Deprecated.
- Add a variation identified by an entity class to this
XmlExtensionElement.
- Parameters:
entityClass - The entity class.
- Returns:
- The newly created
XmlExtensionElement.Variation instance.
toXsdElement
public org.w3c.dom.Element toXsdElement(org.w3c.dom.Node parent)
- Deprecated.
- Description copied from class:
XmlNode
- Convert the XML specification node to a node description in an XML schema document
- Overrides:
toXsdElement in class XmlElement
- Parameters:
parent - The parent node.
- Returns:
- THe newly created node.