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