org.eclipse.smila.search.lucene.messages.advsearch
Class DOPN
java.lang.Object
org.eclipse.smila.search.lucene.messages.advsearch.DTermContent
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
|
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 |
DOPN
public DOPN()
- Constructor.
DOPN
public DOPN(java.lang.String operation,
DTerm[] terms)
- Constructor.
- Parameters:
operation - -terms - -
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-