|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gmail.thejcwk.semantics.phrases.Filter
public class Filter
Encapsulates a filter that can be applied to a PhraseCollection. This filter specifies an operation, an attribute type and a value. The operation details whether phrases matching the value should be ADDed, REMOVEd or ISOLATEd. The attribute type variable specifies which attribute of a phrase the value is applicable to.
| Nested Class Summary | |
|---|---|
static class |
Filter.ATTRIBUTE_TYPE
|
static class |
Filter.OPERATION
|
| Constructor Summary | |
|---|---|
Filter(Filter.OPERATION anOperation,
Filter.ATTRIBUTE_TYPE anAttrType,
java.lang.String aValue)
Create a new filter. |
|
| Method Summary | |
|---|---|
Filter.ATTRIBUTE_TYPE |
getAttrType()
Returns a value that specifies which attribute this Filter checks against. |
Filter.OPERATION |
getOperation()
Returns the operation specified by this Filter. |
java.lang.String |
getValue()
Returns the value this Filter checks against. |
boolean |
matches(Phrase p)
Determines if this filter is applicable to the specified phrase. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Filter(Filter.OPERATION anOperation,
Filter.ATTRIBUTE_TYPE anAttrType,
java.lang.String aValue)
anOperation - Value of type OPERATION.anAttrType - Value of type ATTRIBUTE_TYPE.aValue - String.| Method Detail |
|---|
public Filter.ATTRIBUTE_TYPE getAttrType()
public Filter.OPERATION getOperation()
public java.lang.String getValue()
public boolean matches(Phrase p)
p - A Phrase.
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||