|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextgrid.api.pom.QueryProfile
public class QueryProfile
Collection of queries for a single process.
Constructor Summary | |
---|---|
QueryProfile()
Creates a new instance. |
|
QueryProfile(java.util.List<Query> constraints)
Creates a new instance. |
Method Summary | |
---|---|
void |
addConstraint(Query query)
Adds a query to the list. |
void |
addConstraint(java.lang.String lang,
java.lang.String text)
Adds a query to the list. |
java.util.List<Query> |
getConstraints()
Gets the constraints defined in this profile as a list of queries. |
void |
removeConstraint(int index)
Removes a query from the list. |
void |
removeConstraint(Query q)
Removes a query from the list. |
void |
removeConstraint(java.lang.String lang)
Removes a query from the list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryProfile()
public QueryProfile(java.util.List<Query> constraints)
constraints
- A list of queries defining the constraintsMethod Detail |
---|
public final java.util.List<Query> getConstraints()
public final void addConstraint(Query query)
query
- The query instance to addpublic final void addConstraint(java.lang.String lang, java.lang.String text)
lang
- The query languagetext
- The query textpublic final void removeConstraint(java.lang.String lang)
lang
- The query language to removepublic final void removeConstraint(int index)
index
- Position of the query to removepublic final void removeConstraint(Query q)
q
- The query to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |