Enum RdfResultMediaType
- java.lang.Object
-
- java.lang.Enum<RdfResultMediaType>
-
- edu.cornell.mannlib.vitro.webapp.controller.api.sparqlquery.RdfResultMediaType
-
- All Implemented Interfaces:
Serializable,Comparable<RdfResultMediaType>
public enum RdfResultMediaType extends Enum<RdfResultMediaType>
The supported media types for SPARQL queries that return RDF (i.e., CONSTRUCT and DESCRIBE).
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Collection<String>contentTypes()static RdfResultMediaTypefromContentType(String contentType)StringgetContentType()StringgetExtension()StringgetJenaResponseFormat()StringgetSerializationFormat()booleanisNativeFormat()static RdfResultMediaTypevalueOf(String name)Returns the enum constant of this type with the specified name.static RdfResultMediaType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TEXT
public static final RdfResultMediaType TEXT
-
RDF_XML
public static final RdfResultMediaType RDF_XML
-
N3
public static final RdfResultMediaType N3
-
TTL
public static final RdfResultMediaType TTL
-
JSON
public static final RdfResultMediaType JSON
-
JSON_LD
public static final RdfResultMediaType JSON_LD
-
-
Method Detail
-
values
public static RdfResultMediaType[] 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 (RdfResultMediaType c : RdfResultMediaType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RdfResultMediaType 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 nameNullPointerException- if the argument is null
-
contentTypes
public static Collection<String> contentTypes()
-
fromContentType
public static RdfResultMediaType fromContentType(String contentType) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
getContentType
public String getContentType()
-
isNativeFormat
public boolean isNativeFormat()
-
getSerializationFormat
public String getSerializationFormat()
-
getJenaResponseFormat
public String getJenaResponseFormat()
-
getExtension
public String getExtension()
-
-