Class _Path
- java.lang.Object
-
- com.shopify.graphql.support.AbstractResponse<_Path>
-
- org.topbraidlive.client.java.graphql.platform._Path
-
- All Implemented Interfaces:
Serializable
public class _Path extends AbstractResponse<_Path>
Metadata about a sh:path.- 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
getGraphQlTypeName()
Boolean
getIsInverse()
True if the path is an inverse path, false for simple URI predicates or complex paths.String
getPredicate()
The URI of the predicate if the path is either a direct forward or inverse path, null for complex paths.String
getString()
A string representation of the RDF path._Path
setIsInverse(Boolean arg)
_Path
setPredicate(String arg)
_Path
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
-
_Path
public _Path()
-
_Path
public _Path(com.google.gson.JsonObject fields) throws SchemaViolationError
- Throws:
SchemaViolationError
-
-
Method Detail
-
getGraphQlTypeName
public String getGraphQlTypeName()
-
getPredicate
public String getPredicate()
The URI of the predicate if the path is either a direct forward or inverse path, null for complex paths.
-
getIsInverse
public Boolean getIsInverse()
True if the path is an inverse path, false for simple URI predicates or complex paths.
-
getString
public String getString()
A string representation of the RDF path. Can be matched with the 'path' field of validation results.
-
unwrapsToObject
public boolean unwrapsToObject(String key)
- Specified by:
unwrapsToObject
in classAbstractResponse<_Path>
-
-