|
VdexReload 1.1.3 API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.reload.moonunit.dom.DomPath
This encapsulates the JDOM Path of a given Element and Attribute
Field Summary | |
static java.lang.String |
XMLATTSEPARATOR
The Path separator used for xml attributes |
static java.lang.String |
XMLPATHSEPARATOR
The Path separator used for xml elements |
Fields inherited from interface uk.ac.reload.moonunit.MoonUnitConstants |
DEBUG |
Constructor Summary | |
DomPath(java.lang.String path)
Constructor that takes in a path string. |
Method Summary | |
java.lang.String |
appendAttributeName(java.lang.String attributeName)
Append an Attribute name to the Path |
java.lang.String |
appendElementName(java.lang.String elementName)
Append an Element name to the Path |
boolean |
endsWith(DomPath domPath)
Return true if the path part endsWith |
boolean |
equals(DomPath domPath)
Return true if the path part equals |
java.lang.String |
getAttributePart()
Return the Attribute part of this path if it contains one, or null |
static DomPath |
getDomPath(org.jdom.Attribute attribute)
Gets the DOM Path of the given JDOM attribute |
static DomPath |
getDomPath(org.jdom.Element element)
Gets the DOM Path of the given element |
java.util.StringTokenizer |
getElements()
Return an Enumeration of the Elements as a StringTokenizer |
java.lang.String |
getElementsPart()
Return the Elements part of this path |
java.lang.String |
getPath()
Get the Path String |
java.lang.String |
getRootPart()
Get the Root name of this Path |
boolean |
isAttribute()
Return true if this path describes an Attribute |
java.lang.String |
prependElementName(java.lang.String elementName)
Prepend an Element name to the Path |
java.lang.String |
toString()
Get the path string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static java.lang.String XMLPATHSEPARATOR
public static java.lang.String XMLATTSEPARATOR
Constructor Detail |
public DomPath(java.lang.String path)
path
- the actual path stringMethod Detail |
public java.lang.String getPath()
public java.lang.String appendElementName(java.lang.String elementName)
elementName
- to be appended to the path
public java.lang.String prependElementName(java.lang.String elementName)
elementName
- to be prepended to the path
public java.lang.String appendAttributeName(java.lang.String attributeName)
attributeName
- to be appended to the path
public java.util.StringTokenizer getElements()
public boolean isAttribute()
public java.lang.String getAttributePart()
public java.lang.String getElementsPart()
public java.lang.String getRootPart()
public boolean equals(DomPath domPath)
domPath
- to check for equality with the current path
public boolean endsWith(DomPath domPath)
domPath
- to check for endsWith with the current path
public java.lang.String toString()
public static DomPath getDomPath(org.jdom.Element element)
element
- the element for which you want the DOM Path
public static DomPath getDomPath(org.jdom.Attribute attribute)
attribute
- the given JDOM attribute
|
VdexReload 1.1.3 API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |