Main Page | Packages | Class Hierarchy | Class List | File List | Class Members

treebuilder.Attribute Class Reference

Inheritance diagram for treebuilder.Attribute:

Inheritance graph
[legend]
Collaboration diagram for treebuilder.Attribute:

Collaboration graph
[legend]
List of all members.

Detailed Description

Attribute Sep 4, 2004.

An XML attribute object. This object is a subclass of NamedEntity. The fields in the NamedEntity superclass store the attribute name information.

According to the XmlPullParser documentation, if the parser is non-validating the type is always CDATA. At the time of this writing there were no validating XmlPullParsers, so the type field will always be CDATA, making this field rather useless.

Author:
Ian Kaplan, www.bearcave.com, iank@bearcave.com


Public Member Functions

 Attribute (String name)
 Attribute (String name, String prefix, String namespace)
String getValue ()
void setValue (String value)
String getAttrType ()
void setAttrType (String ty)
TreeNode getChild ()
void setChild (TreeNode child)
Attribute getNext ()
void setNext (Attribute attr)

Private Attributes

String mValue = null
 attribute value
String mType = null
 attribute type


Constructor & Destructor Documentation

treebuilder.Attribute.Attribute String  name  ) 
 

00038 { 00039 super( TreeNodeType.ATTRIBUTE, name ); 00040 }

treebuilder.Attribute.Attribute String  name,
String  prefix,
String  namespace
 

00043 { 00044 super(TreeNodeType.ATTRIBUTE, name, prefix, namespace ); 00045 }


Member Function Documentation

String treebuilder.Attribute.getAttrType  ) 
 

00050 { return mType; }

TreeNode treebuilder.Attribute.getChild  ) 
 

Reimplemented from treebuilder.TreeNode.

00053 { return null; }

Attribute treebuilder.Attribute.getNext  ) 
 

00056 { return (Attribute)this.getSibling(); }

String treebuilder.Attribute.getValue  ) 
 

00047 { return mValue; }

void treebuilder.Attribute.setAttrType String  ty  ) 
 

00051 { mType = ty; }

void treebuilder.Attribute.setChild TreeNode  child  ) 
 

Reimplemented from treebuilder.TreeNode.

00054 {}

void treebuilder.Attribute.setNext Attribute  attr  ) 
 

00057 { this.setSibling( attr ); }

void treebuilder.Attribute.setValue String  value  ) 
 

00048 { mValue = value; }


Member Data Documentation

String treebuilder.Attribute.mType = null [private]
 

attribute type

Reimplemented from treebuilder.TreeNode.

String treebuilder.Attribute.mValue = null [private]
 

attribute value


The documentation for this class was generated from the following file:
Generated on Tue Sep 21 22:08:42 2004 for Building an in-memory tree using the XmlPullParser by doxygen 1.3.8