SMILA (incubation) API documentation

org.eclipse.smila.search.lucene.messages.advsearch
Class DOPN

java.lang.Object
  extended by org.eclipse.smila.search.lucene.messages.advsearch.DTermContent
      extended by org.eclipse.smila.search.lucene.messages.advsearch.DOPN
All Implemented Interfaces:
java.lang.Cloneable, ITermContent

public class DOPN
extends DTermContent
implements java.lang.Cloneable

Author:
gschmidt

Field Summary
 
Fields inherited from class org.eclipse.smila.search.lucene.messages.advsearch.DTermContent
TC_DATEFIELD, TC_NUMFIELD, TC_OP_1, TC_OP_N, TC_TEMPLATEFIELD, TC_TEXTFIELD, TC_WMEAN
 
Constructor Summary
DOPN()
          Constructor.
DOPN(java.lang.String operation, DTerm[] terms)
          Constructor.
 
Method Summary
 void addTerm(DTerm dTerm)
           
 java.lang.Object clone()
          
 boolean equals(java.lang.Object obj)
          ************************************************************************ Calls the toString() method on the given Object and THIS instance and then compares the resultant Strings with the equals() method.
 java.lang.String getOperation()
           
 DTerm getTerm(int pos)
           
 int getTermCount()
           
 java.util.Iterator<DTerm> getTerms()
           
 java.lang.String getType()
           
 void removeTerm(int pos)
           
 void setOperation(java.lang.String operation)
           
 DTerm setTerm(int pos, DTerm term)
           
 java.lang.String toString()
          Returns this instance's contents as an XML String.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DOPN

public DOPN()
Constructor.


DOPN

public DOPN(java.lang.String operation,
            DTerm[] terms)
Constructor.

Parameters:
operation - -
terms - -
Method Detail

clone

public java.lang.Object clone()
Description copied from class: DTermContent

Specified by:
clone in interface ITermContent
Overrides:
clone in class DTermContent
Returns:
Cloned object.
See Also:
Object.clone()

getOperation

public java.lang.String getOperation()

setOperation

public void setOperation(java.lang.String operation)

addTerm

public void addTerm(DTerm dTerm)

removeTerm

public void removeTerm(int pos)

getTerms

public java.util.Iterator<DTerm> getTerms()

getTerm

public DTerm getTerm(int pos)

setTerm

public DTerm setTerm(int pos,
                     DTerm term)

getTermCount

public int getTermCount()

getType

public java.lang.String getType()
Specified by:
getType in class DTermContent
Returns:
String.

equals

public boolean equals(java.lang.Object obj)
************************************************************************ Calls the toString() method on the given Object and THIS instance and then compares the resultant Strings with the equals() method.

Overrides:
equals in class java.lang.Object
Parameters:
obj - -
Returns:
boolean -

toString

public java.lang.String toString()
Returns this instance's contents as an XML String.

Overrides:
toString in class java.lang.Object
Returns:
String-

SMILA (incubation) API documentation