org.ipdr.xml
Class XMLElement

java.lang.Object
  extended by org.ipdr.xml.XMLElement
Direct Known Subclasses:
CompositeXMLElement

public class XMLElement
extends java.lang.Object

The XML Element is a structure to hold the attributes of the Element read from XML. It provides setter and getter methods.


Field Summary
protected  java.util.ArrayList attributes_
          This varable will store the XML Attributes.
protected  java.lang.String name_
          This varable will store the XML Name.
protected  java.lang.String rawName_
          This varable will store the Raw XML Name.
protected  java.lang.String value_
          This varable will store the XML Value.
 
Constructor Summary
XMLElement()
           
 
Method Summary
 java.util.ArrayList getAttributes()
          Method to get the XML Attributes.
 java.lang.String getName()
          Method to get the XML Name.
 java.lang.String getRawName()
          Method to get the Raw XML Name.
 java.lang.String getValue()
          Method to get the XML Value.
 void setAttributes(java.util.ArrayList atts)
          Method to set the XML Attributes.
 void setName(java.lang.String name)
          Method to set the XML Name.
 void setRawName(java.lang.String name)
          Method to set the Raw XML Name.
 void setValue(java.lang.String val)
          Method to set the XML Value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name_

protected java.lang.String name_
This varable will store the XML Name.


rawName_

protected java.lang.String rawName_
This varable will store the Raw XML Name.


value_

protected java.lang.String value_
This varable will store the XML Value.


attributes_

protected java.util.ArrayList attributes_
This varable will store the XML Attributes.

Constructor Detail

XMLElement

public XMLElement()
Method Detail

setName

public void setName(java.lang.String name)
Method to set the XML Name.

Parameters:
name - XML Name

setRawName

public void setRawName(java.lang.String name)
Method to set the Raw XML Name.

Parameters:
name - Raw XML Name

setValue

public void setValue(java.lang.String val)
Method to set the XML Value.

Parameters:
val - XML Value

setAttributes

public void setAttributes(java.util.ArrayList atts)
Method to set the XML Attributes.

Parameters:
atts - XML Attributes

getName

public java.lang.String getName()
Method to get the XML Name.

Returns:
the XML Name

getRawName

public java.lang.String getRawName()
Method to get the Raw XML Name.

Returns:
the Raw XML Name

getValue

public java.lang.String getValue()
Method to get the XML Value.

Returns:
the XML Value

getAttributes

public java.util.ArrayList getAttributes()
Method to get the XML Attributes.

Returns:
the XML Attributes