|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jopendocument.util.XPathUtils
public final class XPathUtils
Method Summary | |
---|---|
static String |
basename(String path)
Compute the name of the last part of the path. |
static String |
localName(String qName)
Compute the local name of a qualified name. |
static String |
namespace(String qName)
Compute the namespace prefix of a qualified name. |
static String |
parentOf(String path)
Compute the parent of a path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final String parentOf(String path)
path
- the path with at least one slash, eg "./elem".
public static final String basename(String path)
path
- the path, eg "./elem" or "elem".
public static final String namespace(String qName)
qName
- a qualified name, eg "office:text".
null
if there's none, eg "office".public static final String localName(String qName)
qName
- a qualified name, eg "office:text".
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |