net.charlesames.utility.entity
Class XmlExtensionElement

java.lang.Object
  extended by net.charlesames.utility.entity.XmlNode
      extended by net.charlesames.utility.entity.XmlElement
          extended by 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

Nested Class Summary
 class XmlExtensionElement.Variation
          Deprecated. Each XmlExtensionElement.Variation instance identifies a choice option for a XmlExtensionElement instance.
 
Method Summary
 XmlExtensionElement.Variation addVariation(java.lang.Class<? extends WriteableEntity> entityClass)
          Deprecated. Add a variation identified by an entity class to this XmlExtensionElement.
 org.w3c.dom.Element toXsdElement(org.w3c.dom.Node parent)
          Deprecated. Convert the XML specification node to a node description in an XML schema document
 
Methods inherited from class net.charlesames.utility.entity.XmlElement
getData, getMaxOccurs, getMinOccurs, getXsdTag, isIncludedInSchema, setMaxOccurs, setMinOccurs
 
Methods inherited from class net.charlesames.utility.entity.XmlNode
getDescription, getTag, getXmlSpec, putData, setDescription, setIncludedInSchema
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.