org.jboss.forge.parser.xml.query
Interface Query<T>
- Type Parameters:
T - Expected return value from executing a query
- All Known Implementing Classes:
- CreateQuery, GetOrCreateQuery, GetQuery, GetSingleQuery
public interface Query<T>
Contract for something capable of executing a query (collection of Patterns) upon a Node to find a
match or matches. May be used for search, creation, etc.
- Author:
- Aslak Knutsen, ALR
execute
T execute(Node node,
Pattern... patterns)
throws IllegalArgumentException
- Queries the tree starting at the specified
Node for the specified Patterns.
- Parameters:
node - The Node to use as a reference pointpatterns - The Patterns to match
- Returns:
- The expressed value or null if not found.
- Throws:
IllegalArgumentException - If the Node is not specified or no Patterns are specified
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.