edu.mit.jverbnet.data.syntax
Enum AuxNounPhraseType

java.lang.Object
  extended by java.lang.Enum<AuxNounPhraseType>
      extended by edu.mit.jverbnet.data.syntax.AuxNounPhraseType
All Implemented Interfaces:
IVerbnetType, INounPhraseType, IHasID, Serializable, Comparable<AuxNounPhraseType>

public enum AuxNounPhraseType
extends Enum<AuxNounPhraseType>
implements INounPhraseType

Selection restriction value types. The values in this enum correspond to the elements of <xsd:simpleType name="auxnpType"> in the Verbnet xsd file.

Since:
JVerbnet 1.0.0
Version:
1.0.0
Author:
Mark A. Finlayson

Enum Constant Summary
NP
           
Oblique
           
Oblique1
           
Oblique2
           
 
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 AuxNounPhraseType 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.
static AuxNounPhraseType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AuxNounPhraseType[] 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

Oblique

public static final AuxNounPhraseType Oblique

Oblique1

public static final AuxNounPhraseType Oblique1

Oblique2

public static final AuxNounPhraseType Oblique2

NP

public static final AuxNounPhraseType NP
Field Detail

XSD_TYPE_NAME

public static final String XSD_TYPE_NAME
The name of the xsd:simpleType entry that describes this verbnet type in the XSD file.

Since:
JVerbnet 1.0.0
See Also:
Constant Field Values
Method Detail

values

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

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

valueOf

public static AuxNounPhraseType 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

getID

public String getID()
Description copied from interface: IHasID
Returns the id of the type, as defined in the xsd file. Will never be null or empty.

Specified by:
getID in interface IHasID
Returns:
the id of the type

getById

public static AuxNounPhraseType getById(String id)
Returns the object corresponding to the specified xsd name. The id is matched to values without regard to case. If no value has the specified id, the method returns null. If the 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).

Parameters:
id - the id of the type value as found in the xsd file and in the xml data files.
Returns:
the type corresponding to the specified xsd name, or null if none
Throws:
NullPointerException - if the id is null
IllegalArgumentException - if the id is empty or all whitespace
Since:
JVerbnet 1.0.0


Copyright © 2012 Massachusetts Institute of Technology. All Rights Reserved.