org.apache.oodt.cas.filemgr.structs
Class TermQueryCriteria

java.lang.Object
  extended by org.apache.oodt.cas.filemgr.structs.QueryCriteria
      extended by org.apache.oodt.cas.filemgr.structs.TermQueryCriteria
All Implemented Interfaces:
Cloneable

public class TermQueryCriteria
extends QueryCriteria

Version:
$Revision: 12226 $

A Term Criteria element for a Query to the Catalog.

Author:
woollard, bfoster

Constructor Summary
TermQueryCriteria()
          Default constructor.
TermQueryCriteria(String elementName, String v)
          Constructor for the TermQueryECriteria Class.
 
Method Summary
 String getElementName()
          Implementation of the abstract method inherited from QueryCriteria for accessing the element name to search on.
 String getValue()
          Accessor method for the value of the element to search on.
 void setElementName(String elementName)
          Implementation of the abstract method inherited from QueryCriteria for mutating the element name to search on.
 void setValue(String value)
          Mutator method for the value of the element to search on
 String toString()
          Implementation of the abstract method inherited from QueryCriteria for generating a human-parsable string version of the query criteria.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TermQueryCriteria

public TermQueryCriteria()
Default constructor.


TermQueryCriteria

public TermQueryCriteria(String elementName,
                         String v)
Constructor for the TermQueryECriteria Class.

Parameters:
elementName - The name of the element to search on.
v - The value of the term.
Method Detail

getValue

public String getValue()
Accessor method for the value of the element to search on.

Returns:
The value of the element to search on as a String.

setValue

public void setValue(String value)
Mutator method for the value of the element to search on

Parameters:
value - The value of the element to search on as a String.

getElementName

public String getElementName()
Implementation of the abstract method inherited from QueryCriteria for accessing the element name to search on.

Specified by:
getElementName in class QueryCriteria
Returns:
The element name to search on as a String.

setElementName

public void setElementName(String elementName)
Implementation of the abstract method inherited from QueryCriteria for mutating the element name to search on.

Specified by:
setElementName in class QueryCriteria
Parameters:
elementName - The element name to search on as a String.

toString

public String toString()
Implementation of the abstract method inherited from QueryCriteria for generating a human-parsable string version of the query criteria. Note that the returned String follows the Lucene query language.

Specified by:
toString in class QueryCriteria
Returns:
The query as a String.


Copyright © 1999-2011 Apache OODT. All Rights Reserved.