|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.umd.cfar.lamp.viper.util.XmlHelper
Field Summary | |
static ExceptIterator.ExceptFunctor |
ELEMENTS_ONLY
Except-iterator that operates on iterators of DOM nodes, returning only elements in the list. |
Constructor Summary | |
XmlHelper()
|
Method Summary | |
static int |
getQNameSplitPoint(java.lang.String uri)
Given a uri that represents a qualified name, tries to determine the index of the split point between the namespace and the local name. |
static java.lang.String |
localName(java.lang.String uri)
Gets the local part of a uri. |
static java.lang.String |
namespacePart(java.lang.String uri)
gets the namespace part of the uri |
static java.util.Iterator |
nodeList2Iterator(org.w3c.dom.NodeList nl)
Converts a w3c DOM nodelist into an iterator. |
static java.lang.String[] |
splitIntoQName(java.lang.String uri)
Splits the rdf-style uri into namespace uri and local name |
static java.lang.String |
unsplit(java.lang.String ns,
java.lang.String lname)
Combined the namespace and the local name back together. |
static java.lang.String |
unsplit(java.lang.String ns,
java.lang.String lname,
java.lang.String joiner)
Combined the namespace and the local name back together. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final ExceptIterator.ExceptFunctor ELEMENTS_ONLY
Constructor Detail |
public XmlHelper()
Method Detail |
public static int getQNameSplitPoint(java.lang.String uri)
uri
- the uri
public static java.lang.String localName(java.lang.String uri)
uri
- the uri to split
public static java.lang.String namespacePart(java.lang.String uri)
uri
- the uri to split
public static java.lang.String[] splitIntoQName(java.lang.String uri)
uri
- the uri to split
public static java.lang.String unsplit(java.lang.String ns, java.lang.String lname)
ns
- the namespace urilname
- the local name
public static java.lang.String unsplit(java.lang.String ns, java.lang.String lname, java.lang.String joiner)
ns
- the namespace urilname
- the local namejoiner
- the join string, e.g. #
public static java.util.Iterator nodeList2Iterator(org.w3c.dom.NodeList nl)
nl
- the node list
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |