public enum CaseRole extends java.lang.Enum<CaseRole>
Enum Constant and Description |
---|
AGENT |
ATTENDS |
DESTINATION |
DIRECTION |
EVENTPARTLYLOCATED |
EXPERIENCER |
INSTRUMENT |
MOVES |
ORIGIN |
OTHER |
PATH |
PATIENT |
RESOURCE |
Modifier and Type | Method and Description |
---|---|
static CaseRole |
getCaseRole(java.util.Collection<java.lang.String> list)
From the input list, return the first string that is a valid case role.
|
static boolean |
isKnownCaseRole(java.lang.String input)
Is the input string a valid case role?
Note that this method is case-sensitive.
|
static CaseRole |
toCaseRole(java.lang.String input,
KB kb)
Return a valid case role based on the string input.
|
static CaseRole |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CaseRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CaseRole AGENT
public static final CaseRole ATTENDS
public static final CaseRole DESTINATION
public static final CaseRole DIRECTION
public static final CaseRole EVENTPARTLYLOCATED
public static final CaseRole EXPERIENCER
public static final CaseRole INSTRUMENT
public static final CaseRole MOVES
public static final CaseRole ORIGIN
public static final CaseRole PATH
public static final CaseRole PATIENT
public static final CaseRole RESOURCE
public static final CaseRole OTHER
public static CaseRole[] values()
for (CaseRole c : CaseRole.values()) System.out.println(c);
public static CaseRole valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static boolean isKnownCaseRole(java.lang.String input)
input
- public static CaseRole getCaseRole(java.util.Collection<java.lang.String> list)
list
-