org.jgap.data
Class DataElement
java.lang.Object
org.jgap.data.DataElement
- All Implemented Interfaces:
- IDataElement
- public class DataElement
- extends java.lang.Object
- implements IDataElement
Element owning of a tag name and holding attributes.
Used by the DataTreeBuilder.
- Since:
- 2.0
- Author:
- Klaus Meffert
|
Constructor Summary |
DataElement(java.lang.String a_tagName)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataElement
public DataElement(java.lang.String a_tagName)
setAttribute
public void setAttribute(java.lang.String name,
java.lang.String value)
throws java.lang.Exception
- Specified by:
setAttribute in interface IDataElement
- Throws:
java.lang.Exception
appendChild
public void appendChild(IDataElement newChild)
throws java.lang.Exception
- Specified by:
appendChild in interface IDataElement
- Throws:
java.lang.Exception
getTagName
public java.lang.String getTagName()
- Specified by:
getTagName in interface IDataElement
getElementsByTagName
public IDataElementList getElementsByTagName(java.lang.String name)
- Specified by:
getElementsByTagName in interface IDataElement
getNodeType
public short getNodeType()
getNodeValue
public java.lang.String getNodeValue()
throws java.lang.Exception
- Throws:
java.lang.Exception
getChildNodes
public IDataElementList getChildNodes()
- Specified by:
getChildNodes in interface IDataElement
getAttribute
public java.lang.String getAttribute(java.lang.String name)
- Specified by:
getAttribute in interface IDataElement
getAttributes
public java.util.Map getAttributes()
- Specified by:
getAttributes in interface IDataElement