public class XMLNode extends java.lang.Object implements XMLMarshallable
| Constructor and Description |
|---|
XMLNode()
Constructs an empty XML node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
XMLAttributes |
getAttributes()
Gets the attributes of this XML node.
|
java.lang.String |
getCharacterData()
Returns the character data for this node.
|
XMLMarshallable |
getChild()
Returns the child of this node.
|
java.util.Vector<XMLMarshallable> |
getChildren()
Returns all the children of this node.
|
java.lang.String |
getTag()
Gets the name of the tag.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setAttributesWithoutFreeze(XMLAttributes atts) |
void |
setTag(java.lang.String t)
Sets the name of the tag
|
public java.lang.String getTag()
public void setTag(java.lang.String t)
t - the name of the tag.public void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void setAttributesWithoutFreeze(XMLAttributes atts)
public XMLAttributes getAttributes()
public void addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic java.lang.String getCharacterData()
public XMLMarshallable getChild()
public java.util.Vector<XMLMarshallable> getChildren()
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into