|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jopendocument.util.SimpleXMLPath<T>
T
- type of result.public final class SimpleXMLPath<T>
Like an XPath
with less features but a greater speed. Thread-safe if its steps
are.
Method Summary | ||
---|---|---|
static SimpleXMLPath<org.jdom.Attribute> |
allAttributes(String name,
String ns)
Create a path searching for all descendant attributes with the passed name and namespace. |
|
static SimpleXMLPath<org.jdom.Element> |
allElements(String name,
String ns)
Create a path searching for all descendant elements with the passed name and namespace. |
|
static
|
create(List<Step<?>> steps,
Step<T> lastStep)
|
|
static
|
create(Step<?> first,
Step<?> second,
Step<T> lastStep)
|
|
static
|
create(Step<?> first,
Step<T> lastStep)
|
|
static
|
create(Step<T> lastStep)
|
|
List<T> |
selectNodes(List<?> nodes)
|
|
List<T> |
selectNodes(Object n)
|
|
T |
selectSingleNode(Object n)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> SimpleXMLPath<T> create(List<Step<?>> steps, Step<T> lastStep)
public static <T> SimpleXMLPath<T> create(Step<T> lastStep)
public static <T> SimpleXMLPath<T> create(Step<?> first, Step<T> lastStep)
public static <T> SimpleXMLPath<T> create(Step<?> first, Step<?> second, Step<T> lastStep)
public static SimpleXMLPath<org.jdom.Attribute> allAttributes(String name, String ns)
name
- the name of attributes.ns
- the namespace of attributes.
Step.Axis.descendantOrSelf
elements.public static SimpleXMLPath<org.jdom.Element> allElements(String name, String ns)
name
- the name of elements.ns
- the namespace of elements.
Step.Axis.descendantOrSelf
elements.public final T selectSingleNode(Object n)
public final List<T> selectNodes(Object n)
public final List<T> selectNodes(List<?> nodes)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |