de.tuebingen.uni.sfs.germanet.api
Enum LexRel
java.lang.Object
java.lang.Enum<LexRel>
de.tuebingen.uni.sfs.germanet.api.LexRel
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<LexRel>
public enum LexRel
- extends java.lang.Enum<LexRel>
Enumeration of all lexical relations.
Method Summary |
static boolean |
isRel(java.lang.String relName)
Return true if the String relName represents a
valid LexRel . |
static LexRel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static LexRel[] |
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, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
has_synonym
public static final LexRel has_synonym
has_antonym
public static final LexRel has_antonym
has_pertainym
public static final LexRel has_pertainym
has_participle
public static final LexRel has_participle
values
public static LexRel[] 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 (LexRel c : LexRel.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static LexRel valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
isRel
public static boolean isRel(java.lang.String relName)
- Return true if the
String
relName
represents a
valid LexRel
.
- Parameters:
relName
- the name of the relation to verify
- Returns:
- true if the
String
relName
represents
a valid LexRel