Class Literal
- java.lang.Object
-
- com.shopify.graphql.support.AbstractResponse<Literal>
-
- org.topbraidlive.client.java.graphql.platform.Literal
-
- All Implemented Interfaces:
Serializable
public class Literal extends AbstractResponse<Literal>
An RDF literal with a datatype, a string (lexical form) and an optional language tag.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.shopify.graphql.support.AbstractResponse
optimisticData, responseData
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDatatype()
The URI of the datatype.String
getGraphQlTypeName()
String
getLang()
The language tag such as "en".String
getString()
The literal's string (lexical form).Literal
setDatatype(String arg)
Literal
setLang(String arg)
Literal
setString(String arg)
boolean
unwrapsToObject(String key)
-
Methods inherited from class com.shopify.graphql.support.AbstractResponse
collectNodes, get, getAsArray, getAsBoolean, getAsDouble, getAsInteger, getAsString, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, readCustomField, withAlias
-
-
-
-
Constructor Detail
-
Literal
public Literal()
-
Literal
public Literal(com.google.gson.JsonObject fields) throws SchemaViolationError
- Throws:
SchemaViolationError
-
-
Method Detail
-
getGraphQlTypeName
public String getGraphQlTypeName()
-
getString
public String getString()
The literal's string (lexical form).
-
getDatatype
public String getDatatype()
The URI of the datatype.
-
getLang
public String getLang()
The language tag such as "en". The empty string for anything but rdf:langString literals.
-
unwrapsToObject
public boolean unwrapsToObject(String key)
- Specified by:
unwrapsToObject
in classAbstractResponse<Literal>
-
-