|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Lang>
org.openjena.riot.Lang
public enum Lang
Enum Constant Summary | |
---|---|
N3
|
|
NQUADS
|
|
NTRIPLES
|
|
RDFJSON
|
|
RDFXML
|
|
TRIG
|
|
TURTLE
|
Method Summary | |
---|---|
static Lang |
get(String name)
Translate a name into a Lang Throws RiotException if the name is not recognized. |
static Lang |
get(String name,
Lang dftLang)
Translate a name into a Lang, rturn the default if no match found. |
String |
getContentType()
|
String |
getName()
|
static Lang |
guess(String resourceIRI)
Guess the language, based on filename, or URL, extenstion. |
static Lang |
guess(String resourceIRI,
Lang dftLang)
Guess the language, based on filename, or URL, extenstion. |
boolean |
isQuads()
|
boolean |
isTriples()
|
String |
toString()
|
static Lang |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Lang[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Lang RDFXML
public static final Lang NTRIPLES
public static final Lang N3
public static final Lang TURTLE
public static final Lang RDFJSON
public static final Lang NQUADS
public static final Lang TRIG
Method Detail |
---|
public static Lang[] values()
for (Lang c : Lang.values()) System.out.println(c);
public static Lang valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String getName()
public boolean isTriples()
public boolean isQuads()
public String getContentType()
public String toString()
toString
in class Enum<Lang>
public static Lang get(String name)
public static Lang get(String name, Lang dftLang)
public static Lang guess(String resourceIRI, Lang dftLang)
public static Lang guess(String resourceIRI)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |