org.openrdf.sesame.constants
Class QueryResultFormat

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

public final class QueryResultFormat
extends Enumeration

A type-safe enumeration class for query response formats.

Version:
$Revision: 1.3.4.2 $
Author:
Arjohn Kampman
See Also:
Serialized Form

Field Summary
static QueryResultFormat BINARY
          Constant representing binary format.
static QueryResultFormat HTML
          Constant representing HTML format.
static QueryResultFormat RDF
          Constant representing RDF format.
static QueryResultFormat XML
          Constant representing XML format.
 
Method Summary
static QueryResultFormat forValue(String value)
          Returns a QueryResultFormat 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

XML

public static final QueryResultFormat XML
Constant representing XML format.


HTML

public static final QueryResultFormat HTML
Constant representing HTML format.


RDF

public static final QueryResultFormat RDF
Constant representing RDF format.


BINARY

public static final QueryResultFormat BINARY
Constant representing binary format.

Method Detail

forValue

public static QueryResultFormat forValue(String value)
Returns a QueryResultFormat constant for the specified value.

Parameters:
value - The String-representation of a QueryResultFormat constant.
Returns:
A QueryResultFormat object, or null if the specified value could not be resolved to a QueryResultFormat object.


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