edu.ou.kmi.buddyspace.xml
Class XMLNode

java.lang.Object
  |
  +--XMLData
        |
        +--edu.ou.kmi.buddyspace.xml.XMLNode

public class XMLNode
extends XMLData

XMLNode is a backend-specific handler for extensions which are not known. Like all other Extension-derived objects, the one real requirement is that it be able to render itself back as equivalent XML.

This class should be used instead the DefaultExtension...

See Also:
Serialized Form

Constructor Summary
XMLNode(XMLNodeBuilder builder)
          Creates a new XMLNode instance.
 
Method Summary
 void appendItem(java.lang.StringBuffer retval)
          Returns the XML representation for the data contained within.
 java.util.Enumeration children()
          children returns the children nodes
 org.xml.sax.AttributeList getAttributes()
          getAttributes returns the node attributes
 java.lang.String getCharacters()
          getCharacters returns the tag characters - all pieces concatenated together.
 java.util.Vector getChildren()
          getChildren returns the children nodes
 java.lang.String getName()
          getName returns the name of element
 java.lang.String getXMLNamespace()
          getXMLNamespace returns the XML namespace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLNode

public XMLNode(XMLNodeBuilder builder)
Creates a new XMLNode instance.

Throws:
java.lang.InstantiationException - if either parameter is not passed in correctly
Method Detail

getXMLNamespace

public java.lang.String getXMLNamespace()
getXMLNamespace returns the XML namespace

Returns:
a String holding the XML Namespace

getName

public java.lang.String getName()
getName returns the name of element

Returns:
a String holding the name

getAttributes

public org.xml.sax.AttributeList getAttributes()
getAttributes returns the node attributes

Returns:
a AttributeList holding the attributes

getCharacters

public java.lang.String getCharacters()
getCharacters returns the tag characters - all pieces concatenated together. to get them separately use children.

Returns:
a String holding the characters

getChildren

public java.util.Vector getChildren()
getChildren returns the children nodes

Returns:
a Vector holding the children

children

public java.util.Enumeration children()
children returns the children nodes

Returns:
a Enumeration of the children

appendItem

public void appendItem(java.lang.StringBuffer retval)
Returns the XML representation for the data contained within.