org.openrdf.sesame.constants
Class RDFFormat

java.lang.Object
  extended byorg.openrdf.util.Enumeration
      extended byorg.openrdf.sesame.constants.RDFFormat
All Implemented Interfaces:
Serializable

public final class RDFFormat
extends Enumeration

A type-safe enumeration class for RDF data serialization formats.

Version:
$Revision: 1.7.4.2 $
Author:
Jeen Broekstra, Arjohn Kampman
See Also:
Serialized Form

Field Summary
static RDFFormat N3
          Constant representing the N3/Notation3 format.
static RDFFormat NTRIPLES
          Constant representing the N-Triples format.
static RDFFormat RDFXML
          Constant representing the XML-encoded RDF format.
static RDFFormat TURTLE
          Constant representing the Turtle format.
 
Method Summary
static RDFFormat forValue(String value)
          Returns an RDFFormat constant for the specified value.
 
Methods inherited from class org.openrdf.util.Enumeration
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RDFXML

public static final RDFFormat RDFXML
Constant representing the XML-encoded RDF format.


NTRIPLES

public static final RDFFormat NTRIPLES
Constant representing the N-Triples format.


N3

public static final RDFFormat N3
Constant representing the N3/Notation3 format.


TURTLE

public static final RDFFormat TURTLE
Constant representing the Turtle format.

Method Detail

forValue

public static RDFFormat forValue(String value)
Returns an RDFFormat constant for the specified value.

Parameters:
value - The String-representation of an RDFFormat constant.
Returns:
An RDFFormat object, or null if the specified value could not be resolved to an RDFFormat object.


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.