edu.washington.cs.knowitall
Enum ExtractionPart

java.lang.Object
  extended by java.lang.Enum<ExtractionPart>
      extended by edu.washington.cs.knowitall.ExtractionPart
All Implemented Interfaces:
Serializable, Comparable<ExtractionPart>

public enum ExtractionPart
extends Enum<ExtractionPart>

An enum representing a section of an extraction.

Author:
schmmd

Enum Constant Summary
ARGUMENT1
          The first argument of the extraction.
ARGUMENT2
          The second argument of the extraction.
LEFT
          Everything in the sentence left of the extraction.
PREDICATE
          The predicate of the extraction.
RELATION
          The entire extraction.
RIGHT
          Everything in the sentence right of the extraction.
SENTENCE
          The entire sentence the extraction is in.
 
Method Summary
 boolean isExternal()
          Determines if the part is outside the extraction.
 boolean isExtractionPart()
          Determines if the part is in the extraction.
static ExtractionPart valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ExtractionPart[] 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
 

Enum Constant Detail

SENTENCE

public static final ExtractionPart SENTENCE
The entire sentence the extraction is in.


RELATION

public static final ExtractionPart RELATION
The entire extraction.


PREDICATE

public static final ExtractionPart PREDICATE
The predicate of the extraction.


ARGUMENT1

public static final ExtractionPart ARGUMENT1
The first argument of the extraction.


ARGUMENT2

public static final ExtractionPart ARGUMENT2
The second argument of the extraction.


LEFT

public static final ExtractionPart LEFT
Everything in the sentence left of the extraction.


RIGHT

public static final ExtractionPart RIGHT
Everything in the sentence right of the extraction.

Method Detail

values

public static ExtractionPart[] 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 (ExtractionPart c : ExtractionPart.values())
    System.out.println(c);

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

valueOf

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

isExtractionPart

public boolean isExtractionPart()
Determines if the part is in the extraction.

Returns:

isExternal

public boolean isExternal()
Determines if the part is outside the extraction.

Returns:


Copyright © 2011 University of Washington CSE. All Rights Reserved.