public class Query extends Object implements Serializable
Query.TermMatcher
.Modifier and Type | Class and Description |
---|---|
static interface |
Query.AmbigousTermMatcher
Ambigous term matcher.
|
static class |
Query.AndTerm
Representation of an AND between two or more terms.
|
static class |
Query.AtomTerm
Representation of one attribute:value term
|
static class |
Query.CompositeTerm
Composition of one or more terms in a query (e.g., A and B and C)
|
static class |
Query.NotTerm
Representation of a NOT term
|
static class |
Query.OrTerm
Representation of an OR between two or more terms.
|
static interface |
Query.QueryFormatter
Query formatter class
|
static interface |
Query.Term
Representation of a term in the query, that is attribute:value.
|
static interface |
Query.TermMatcher
Term matcher interface.
|
Constructor and Description |
---|
Query(Query.Term query) |
Query(String query) |
Modifier and Type | Method and Description |
---|---|
Query.Term |
getQuery() |
boolean |
hasAttribute(Collection<String> attr) |
boolean |
hasAttribute(String... attr) |
static void |
main(String[] args) |
boolean |
match(Query.AmbigousTermMatcher m)
Evaluate if the query using the provided term matcher.
|
boolean |
match(Query.TermMatcher m)
Evaluate if the query using the provided term matcher.
|
String |
toString() |
String |
toString(Query.QueryFormatter f) |
public Query(Query.Term query)
public Query.Term getQuery()
public boolean match(Query.TermMatcher m)
public boolean match(Query.AmbigousTermMatcher m)
public String toString(Query.QueryFormatter f)
public boolean hasAttribute(String... attr)
public boolean hasAttribute(Collection<String> attr)