org.eclipse.datatools.enablement.oda.xml.util
Class XMLElement
java.lang.Object
org.eclipse.datatools.enablement.oda.xml.util.XMLElement
- All Implemented Interfaces:
- IXMLPathNode
public class XMLElement
- extends java.lang.Object
- implements IXMLPathNode
|
Constructor Summary |
XMLElement(java.lang.String name,
int index)
|
|
Method Summary |
boolean |
equals(java.lang.Object obj)
|
int |
getIndex()
|
java.lang.String |
getName()
the name of XML node corresponding with this path node |
java.lang.String |
getPathString()
the path string of this path node |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
XMLElement
public XMLElement(java.lang.String name,
int index)
- Parameters:
name - index: - the index in its parent
getIndex
public int getIndex()
getName
public java.lang.String getName()
- Description copied from interface:
IXMLPathNode
- the name of XML node corresponding with this path node
- Specified by:
getName in interface IXMLPathNode
- Returns:
getPathString
public java.lang.String getPathString()
- Description copied from interface:
IXMLPathNode
- the path string of this path node
- Specified by:
getPathString in interface IXMLPathNode
- Returns:
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object