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

treebuilder.NamedEntity Class Reference

Inheritance diagram for treebuilder.NamedEntity:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

NamedEntity Sep 12, 2004.

An object that has an XML name. That is, an optional name space, a optional prefix and an name.

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


Public Member Functions

 NamedEntity (TreeNodeType ty)
 NamedEntity (TreeNodeType ty, String name)
 NamedEntity (TreeNodeType ty, String name, String prefix, String namespace)
String getNamespace ()
void setNamesapce (String namespace)
String getPrefix ()
void setPrefix (String prefix)
String getName ()
void setName (String name)
String toString ()

Private Attributes

String mNamespace = null
 The namespace, if one is specified (e.g., like http://www.bearcave.com/expression).
String mPrefix = null
 The prefix associated with this tag, if there is one.
String mName = null
 The name of the tag or attribute.


Constructor & Destructor Documentation

treebuilder.NamedEntity.NamedEntity TreeNodeType  ty  ) 
 

Parameters:
ty 
00038 { 00039 super(ty); 00040 }

treebuilder.NamedEntity.NamedEntity TreeNodeType  ty,
String  name
 

00042 { 00043 super(ty); 00044 mName = name; 00045 }

treebuilder.NamedEntity.NamedEntity TreeNodeType  ty,
String  name,
String  prefix,
String  namespace
 

00048 { 00049 super(ty); 00050 mName = name; 00051 mPrefix = prefix; 00052 mNamespace = namespace; 00053 }


Member Function Documentation

String treebuilder.NamedEntity.getName  ) 
 

00061 { return mName; }

String treebuilder.NamedEntity.getNamespace  ) 
 

00055 { return mNamespace; }

String treebuilder.NamedEntity.getPrefix  ) 
 

00058 { return mPrefix; }

void treebuilder.NamedEntity.setName String  name  ) 
 

00062 { mName = name; }

void treebuilder.NamedEntity.setNamesapce String  namespace  ) 
 

00056 { mNamespace = namespace; }

void treebuilder.NamedEntity.setPrefix String  prefix  ) 
 

00059 { mPrefix = prefix; }

String treebuilder.NamedEntity.toString  )  [virtual]
 

Implements treebuilder.TreeNode.

00065 { 00066 String name = mName; 00067 if (mPrefix != null) { 00068 name = mPrefix + ':' + name; 00069 } 00070 return name; 00071 } // toString


Member Data Documentation

String treebuilder.NamedEntity.mName = null [private]
 

The name of the tag or attribute.

For text, this will be TEXT. This is always the local name (in org.w3c.dom terms)

String treebuilder.NamedEntity.mNamespace = null [private]
 

The namespace, if one is specified (e.g., like http://www.bearcave.com/expression).

String treebuilder.NamedEntity.mPrefix = null [private]
 

The prefix associated with this tag, if there is one.

This prefix should also be associated with a namespace


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