eu.monnetproject.lemon
Enum SPARQL

java.lang.Object
  extended by java.lang.Enum<SPARQL>
      extended by eu.monnetproject.lemon.SPARQL
All Implemented Interfaces:
Serializable, Comparable<SPARQL>

public enum SPARQL
extends Enum<SPARQL>

Constants for dialects of SPARQL Update to use

Author:
John McCrae

Enum Constant Summary
SPARQL10
          Standard SPARQL update, will cause update requests to throw UnsupportedOperationException
SPARQL11
          SPARQL 1.1 with update as defined here http://www.w3.org/TR/sparql11-query/
SPARUL
          SPARQL Update as defined here http://www.w3.org/Submission/SPARQL-Update/
 
Method Summary
static SPARQL valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SPARQL[] 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

SPARUL

public static final SPARQL SPARUL
SPARQL Update as defined here http://www.w3.org/Submission/SPARQL-Update/


SPARQL10

public static final SPARQL SPARQL10
Standard SPARQL update, will cause update requests to throw UnsupportedOperationException


SPARQL11

public static final SPARQL SPARQL11
SPARQL 1.1 with update as defined here http://www.w3.org/TR/sparql11-query/

Method Detail

values

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

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

valueOf

public static SPARQL 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 © 2012. All Rights Reserved.