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

treebuilder.AttributeList Class Reference

Collaboration diagram for treebuilder.AttributeList:

Collaboration graph
[legend]
List of all members.

Detailed Description

AttributeList Sep 4, 2004.

A list of Attribute objects. The AttributeList is used to as a container for a set of XML tag attributes.

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


Public Member Functions

boolean hasAttributes ()
void append (Attribute attr)
 Add to the end of the attribute list.
void insert (Attribute attr)
 Insert at the head (front) of the attribute list.
Iterator getIterator ()
 Get an Iterator for the attribute list.

Private Attributes

Attribute mHead = null
Attribute mTail = null


Member Function Documentation

void treebuilder.AttributeList.append Attribute  attr  ) 
 

Add to the end of the attribute list.

00075 { 00076 if (attr != null) { 00077 if (mHead == null) { 00078 mHead = attr; 00079 mTail = attr; 00080 } 00081 else { 00082 mTail.setNext( attr ); 00083 mTail = attr; 00084 } 00085 } 00086 } // append

Iterator treebuilder.AttributeList.getIterator  ) 
 

Get an Iterator for the attribute list.

Note that the Iterator returned does not support the remove() method and will throw and UnsupportedOperationException if remove() is called.

00115 { 00116 AttrListIter iter = new AttrListIter( mHead ); 00117 return iter; 00118 } // getIterator

boolean treebuilder.AttributeList.hasAttributes  ) 
 

00069 { return mHead != null; }

void treebuilder.AttributeList.insert Attribute  attr  ) 
 

Insert at the head (front) of the attribute list.

00093 { 00094 if (attr != null) { 00095 if (mHead == null) { 00096 mHead = attr; 00097 mTail = attr; 00098 } 00099 else { 00100 attr.setNext( mHead ); 00101 mHead = attr; 00102 } 00103 } 00104 } // insert


Member Data Documentation

Attribute treebuilder.AttributeList.mHead = null [private]
 

Attribute treebuilder.AttributeList.mTail = null [private]
 


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