GATE
Version 3.1-2270

gate.util
Class Restriction

java.lang.Object
  extended by gate.util.Restriction
All Implemented Interfaces:
Serializable

public class Restriction
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
static int OPERATOR_BIGGER
           
static int OPERATOR_EQUATION
           
static int OPERATOR_EQUATION_OR_BIGGER
           
static int OPERATOR_EQUATION_OR_LESS
           
static int OPERATOR_LESS
           
static int OPERATOR_LIKE
           
 
Constructor Summary
Restriction(String key, Object value, int operator_)
          Constructor.
 
Method Summary
 String getKey()
           
 int getOperator()
           
 String getStringValue()
           
 Object getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPERATOR_EQUATION

public static final int OPERATOR_EQUATION
See Also:
Constant Field Values

OPERATOR_LESS

public static final int OPERATOR_LESS
See Also:
Constant Field Values

OPERATOR_BIGGER

public static final int OPERATOR_BIGGER
See Also:
Constant Field Values

OPERATOR_EQUATION_OR_BIGGER

public static final int OPERATOR_EQUATION_OR_BIGGER
See Also:
Constant Field Values

OPERATOR_EQUATION_OR_LESS

public static final int OPERATOR_EQUATION_OR_LESS
See Also:
Constant Field Values

OPERATOR_LIKE

public static final int OPERATOR_LIKE
See Also:
Constant Field Values
Constructor Detail

Restriction

public Restriction(String key,
                   Object value,
                   int operator_)
Constructor.

Parameters:
key - string value of a feature key in document.
value - value of a feature with this key
operator_ - type of operator for comparison in query
Method Detail

getValue

public Object getValue()
Returns:
Object value of feature

getStringValue

public String getStringValue()
Returns:
String string value og feature

getKey

public String getKey()
Returns:
String string value of the feature key

getOperator

public int getOperator()
Returns:
int type of operator

GATE
Version 3.1-2270