org.apache.uima.annotator.dict_annot.impl
Class Condition

java.lang.Object
  extended by org.apache.uima.annotator.dict_annot.impl.Condition

public class Condition
extends java.lang.Object

A Condition has a filter operator and a condition value.


Constructor Summary
Condition(FilterOp operator, java.lang.String value)
          creates a new condition object with a filter operator and a condition value.
 
Method Summary
 FilterOp getConditionType()
          Returns the condition operator type.
static FilterOp getOperator(java.lang.String operator)
          Returns the FilterOperator for the given String operator.
 java.lang.String getValue()
          Returns the condition value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Condition

public Condition(FilterOp operator,
                 java.lang.String value)
creates a new condition object with a filter operator and a condition value.

Parameters:
operator - filter operator
value - condition value
Method Detail

getConditionType

public FilterOp getConditionType()
Returns the condition operator type.

Returns:
returns the condition operator type.

getValue

public java.lang.String getValue()
Returns the condition value.

Returns:
Returns the condition value

getOperator

public static final FilterOp getOperator(java.lang.String operator)
Returns the FilterOperator for the given String operator. Allowed String operators are: NULL, NOT_NULL, EQUALS, NOT_EQUALS, LESS, LESS_EQ, GREATER, GREATER_EQ

Parameters:
operator - operator as String
Returns:
FilterOperator for the given String operator


Copyright © 2011. All Rights Reserved.