|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ArgType>
edu.mit.jverbnet.data.semantics.ArgType
public enum ArgType
Argument types. The values in this enum correspond to the elements of <xsd:simpleType name="argType"> in the Verbnet xsd file.
Enum Constant Summary | |
---|---|
Constant
|
|
Event
|
|
ThemRole
|
|
VerbSpecific
|
Field Summary | |
---|---|
static String |
XSD_TYPE_NAME
The name of the xsd:simpleType entry that describes this verbnet type in the XSD file. |
Fields inherited from interface edu.mit.jverbnet.data.IVerbnetType |
---|
FIELD_NAME_XSD_TYPE_NAME, METHOD_NAME_getById |
Method Summary | |
---|---|
static ArgType |
getById(String id)
Returns the object corresponding to the specified xsd name. |
String |
getID()
Returns the id of the type, as defined in the xsd file. |
Class<? extends ISemanticArgType> |
getSubclassType()
Returns the associated subclass type for this argument type. |
static ArgType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ArgType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ArgType Constant
public static final ArgType Event
public static final ArgType ThemRole
public static final ArgType VerbSpecific
Field Detail |
---|
public static final String XSD_TYPE_NAME
Method Detail |
---|
public static final ArgType[] values()
for(ArgType c : ArgType.values()) System.out.println(c);
public static ArgType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic String getID()
IHasID
null
or empty.
getID
in interface IHasID
public Class<? extends ISemanticArgType> getSubclassType()
public static ArgType getById(String id)
VerbnetTypes.isPrintingIdWarnings()
flag is set, the method
will print a warning to standard out if there is no value with the
specified id, or if the specified id is not exactly identical to the
value's id (i.e., differs in case).
id
- the id of the type value as found in the xsd file and in the
xml data files.
null
if none
NullPointerException
- if the id is null
IllegalArgumentException
- if the id is empty or all whitespace
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |