public enum ResultSetMediaType extends Enum<ResultSetMediaType>
| Modifier and Type | Method and Description |
|---|---|
static Collection<String> |
contentTypes() |
static ResultSetMediaType |
fromContentType(String contentType) |
String |
getContentType() |
String |
getExtension() |
String |
getJenaResponseFormat() |
String |
getRdfServiceFormat() |
boolean |
isNativeFormat() |
static ResultSetMediaType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResultSetMediaType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResultSetMediaType TEXT
public static final ResultSetMediaType CSV
public static final ResultSetMediaType TSV
public static final ResultSetMediaType XML
public static final ResultSetMediaType JSON
public static ResultSetMediaType[] values()
for (ResultSetMediaType c : ResultSetMediaType.values()) System.out.println(c);
public static ResultSetMediaType 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 ResultSetMediaType fromContentType(String contentType) throws IllegalArgumentException
IllegalArgumentExceptionpublic String getContentType()
public boolean isNativeFormat()
public String getRdfServiceFormat()
public String getJenaResponseFormat()
public String getExtension()
Copyright © 2021. All rights reserved.