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 StringgetDatatype()The URI of the datatype.StringgetGraphQlTypeName()StringgetLang()The language tag such as "en".StringgetString()The literal's string (lexical form).LiteralsetDatatype(String arg)LiteralsetLang(String arg)LiteralsetString(String arg)booleanunwrapsToObject(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:
unwrapsToObjectin classAbstractResponse<Literal>
-
-