cz.cuni.amis.pogamut.sposh.elements
Enum Sense.Predicate

Package class diagram package Sense.Predicate
java.lang.Object
  extended by java.lang.Enum<Sense.Predicate>
      extended by cz.cuni.amis.pogamut.sposh.elements.Sense.Predicate
All Implemented Interfaces:
Serializable, Comparable<Sense.Predicate>
Enclosing class:
Sense

public static enum Sense.Predicate
extends Enum<Sense.Predicate>

Various predicates used in Sense

Author:
Honza

Enum Constant Summary
DEFAULT
           
EQUAL
           
GREATER
           
GREATER_OR_EQUAL
           
LOWER
           
LOWER_OR_EQUAL
           
NOT_EQUAL
           
 
Method Summary
 int getId()
          Get integer id of predicate.
static Sense.Predicate getPredicate(String str)
          Get Predicate enum from passed string
static Sense.Predicate[] getPredicates()
          Get all predicates, without DEFAULT.
 String toString()
           
static Sense.Predicate valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Sense.Predicate[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EQUAL

public static final Sense.Predicate EQUAL

NOT_EQUAL

public static final Sense.Predicate NOT_EQUAL

LOWER

public static final Sense.Predicate LOWER

GREATER

public static final Sense.Predicate GREATER

LOWER_OR_EQUAL

public static final Sense.Predicate LOWER_OR_EQUAL

GREATER_OR_EQUAL

public static final Sense.Predicate GREATER_OR_EQUAL

DEFAULT

public static final Sense.Predicate DEFAULT
Method Detail

values

public static Sense.Predicate[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Sense.Predicate c : Sense.Predicate.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Sense.Predicate valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getPredicate

public static Sense.Predicate getPredicate(String str)
Get Predicate enum from passed string

Parameters:
str - passed predicate in string form
Returns:
Predicate

getId

public int getId()
Get integer id of predicate. Used because of stupid combo box property pattern in NB.

Returns:

toString

public String toString()
Overrides:
toString in class Enum<Sense.Predicate>

getPredicates

public static Sense.Predicate[] getPredicates()
Get all predicates, without DEFAULT.



Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.