|
Forge - Parent 1.2.2-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<GetQuery>
org.jboss.forge.parser.xml.query.GetQuery
public enum GetQuery
Obtains the List
of Node
s designated by the specified Pattern
s under the specified root
Node
.
Enum Constant Summary | |
---|---|
INSTANCE
Instance |
Method Summary | |
---|---|
List<Node> |
execute(Node node,
Pattern... patterns)
Queries the tree starting at the specified Node for the specified Pattern s. |
static GetQuery |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static GetQuery[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final GetQuery INSTANCE
Method Detail |
---|
public static GetQuery[] values()
for (GetQuery c : GetQuery.values()) System.out.println(c);
public static GetQuery valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic List<Node> execute(Node node, Pattern... patterns)
Node
for the specified Pattern
s.
execute
in interface Query<List<Node>>
node
- The Node
to use as a reference pointpatterns
- The Pattern
s to match
org.jboss.shrinkwrap.descriptor.spi.node.query.Query#execute(org.jboss.shrinkwrap.descriptor.spi.node.Node,
org.jboss.shrinkwrap.descriptor.spi.node.query.Pattern[])
|
Forge - Parent 1.2.2-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |