net.fortytwo.sesametools.mappingsail
Enum MappingSchema.PartOfSpeech

java.lang.Object
  extended by java.lang.Enum<MappingSchema.PartOfSpeech>
      extended by net.fortytwo.sesametools.mappingsail.MappingSchema.PartOfSpeech
All Implemented Interfaces:
Serializable, Comparable<MappingSchema.PartOfSpeech>
Enclosing class:
MappingSchema

public static enum MappingSchema.PartOfSpeech
extends Enum<MappingSchema.PartOfSpeech>

The position in an RDF statement in which a URI appears


Enum Constant Summary
CONTEXT
           
OBJECT
           
PREDICATE
           
SUBJECT
           
 
Method Summary
static MappingSchema.PartOfSpeech valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MappingSchema.PartOfSpeech[] 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

SUBJECT

public static final MappingSchema.PartOfSpeech SUBJECT

PREDICATE

public static final MappingSchema.PartOfSpeech PREDICATE

OBJECT

public static final MappingSchema.PartOfSpeech OBJECT

CONTEXT

public static final MappingSchema.PartOfSpeech CONTEXT
Method Detail

values

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

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

valueOf

public static MappingSchema.PartOfSpeech 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


Copyright © 2013. All Rights Reserved.