The diagram below illlustrates the hierarchy of class within the asdk.xml package. The primary classes that are used in development are asdk.xml.Document, asdk.xml.Element, asdk.xml.Attribute, and asdk.xml.Elements. The other classes within the hierarchy primarily support these primordial XML concepts and provide for code simplification by reusing common functionality. Beneath the diagram is a brief description of each class.
asdk.xml.Node
- The top-level class within ASDK XML. All the various pieces of an XML document are
referred to as nodes in the tree.asdk.xml.Child
- The child class provides access to its parent so that each subclass is always
aware of the node above it.asdk.xml.Attribute
- An attribute that is associated with a node, generally an Element..asdk.xml.Parent
- Provides a significant amount of the functionality for Element and Document classes;
responsible for maintaining a list of all its children..asdk.xml.Text
- A simple wrapper class for the text data that is available within an XML elementasdk.xml.Document
- A representation of an XML document. This is generally the entry point into ASDK
XML and provides a getRoot function for accessing its elements.asdk.xml.Element
- A representation of an XML element. This recursive structure can hold other elements
or text and along with attributes is how data is stored within a document. The getElements method returns
its children as an asdk.xml.Elements
object and the getString method returns any string contained in the
element.asdk.xml.Nodes
- Provides an iterator implementation over a series of XML nodesasdk.xml.Elements
- Provides an easy to use API for iterating over children elements