Package be.ugent.rml.records
Enum SPARQLResultFormat
- java.lang.Object
-
- java.lang.Enum<SPARQLResultFormat>
-
- be.ugent.rml.records.SPARQLResultFormat
-
- All Implemented Interfaces:
Serializable,Comparable<SPARQLResultFormat>,java.lang.constant.Constable
public enum SPARQLResultFormat extends Enum<SPARQLResultFormat>
This enum represents the different SPARQL result formats.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Method Summary
Modifier and Type Method Description StringgetContentType()This method returns the content type of the format.Set<String>getReferenceFormulations()This method returns the reference formulation of the format.StringgetUri()This method returns the uri of the format.StringtoString()This method returns a String representation of the format, based on the format's name.static SPARQLResultFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static SPARQLResultFormat[]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, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
-
-
-
Enum Constant Detail
-
XML
public static final SPARQLResultFormat XML
-
JSON
public static final SPARQLResultFormat JSON
-
CSV
public static final SPARQLResultFormat CSV
-
-
Method Detail
-
values
public static SPARQLResultFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SPARQLResultFormat 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
-
getUri
public String getUri()
This method returns the uri of the format.- Returns:
- the uri of the format.
-
getContentType
public String getContentType()
This method returns the content type of the format.- Returns:
- the content type of the format.
-
getReferenceFormulations
public Set<String> getReferenceFormulations()
This method returns the reference formulation of the format.- Returns:
- the reference formulation of the format.
-
toString
public String toString()
This method returns a String representation of the format, based on the format's name.- Overrides:
toStringin classEnum<SPARQLResultFormat>- Returns:
- String representation of the format.
-
-