public enum RdfResultMediaType extends Enum<RdfResultMediaType>
| Modifier and Type | Method and Description |
|---|---|
static Collection<String> |
contentTypes() |
static RdfResultMediaType |
fromContentType(String contentType) |
String |
getContentType() |
String |
getExtension() |
String |
getJenaResponseFormat() |
String |
getSerializationFormat() |
boolean |
isNativeFormat() |
static RdfResultMediaType |
valueOf(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.
|
public static final RdfResultMediaType TEXT
public static final RdfResultMediaType RDF_XML
public static final RdfResultMediaType N3
public static final RdfResultMediaType TTL
public static final RdfResultMediaType JSON
public static final RdfResultMediaType JSON_LD
public static RdfResultMediaType[] values()
for (RdfResultMediaType c : RdfResultMediaType.values()) System.out.println(c);
public static RdfResultMediaType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static Collection<String> contentTypes()
public static RdfResultMediaType fromContentType(String contentType) throws IllegalArgumentException
IllegalArgumentExceptionpublic String getContentType()
public boolean isNativeFormat()
public String getSerializationFormat()
public String getJenaResponseFormat()
public String getExtension()
Copyright © 2022. All rights reserved.