nextgrid.api.pom
Class QueryProfile

java.lang.Object
  extended by nextgrid.api.pom.QueryProfile
All Implemented Interfaces:
java.io.Serializable

public class QueryProfile
extends java.lang.Object
implements java.io.Serializable

Collection of queries for a single process.

Author:
Rodrigo Ruiz
See Also:
Serialized Form

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

QueryProfile

public QueryProfile()
Creates a new instance.


QueryProfile

public QueryProfile(java.util.List<Query> constraints)
Creates a new instance.

Parameters:
constraints - A list of queries defining the constraints
Method Detail

getConstraints

public final java.util.List<Query> getConstraints()
Gets the constraints defined in this profile as a list of queries.

Returns:
A list of queries

addConstraint

public final void addConstraint(Query query)
Adds a query to the list.

Parameters:
query - The query instance to add

addConstraint

public final void addConstraint(java.lang.String lang,
                                java.lang.String text)
Adds a query to the list.

Parameters:
lang - The query language
text - The query text

removeConstraint

public final void removeConstraint(java.lang.String lang)
Removes a query from the list.

Parameters:
lang - The query language to remove

removeConstraint

public final void removeConstraint(int index)
Removes a query from the list.

Parameters:
index - Position of the query to remove

removeConstraint

public final void removeConstraint(Query q)
Removes a query from the list.

Parameters:
q - The query to remove


Copyright © 2006-2008 Grid Systems, S.A.. All Rights Reserved.