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 StringgetGraphQlTypeName()BooleangetIsInverse()True if the path is an inverse path, false for simple URI predicates or complex paths.StringgetPredicate()The URI of the predicate if the path is either a direct forward or inverse path, null for complex paths.StringgetString()A string representation of the RDF path._PathsetIsInverse(Boolean arg)_PathsetPredicate(String arg)_PathsetString(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
-
_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:
unwrapsToObjectin classAbstractResponse<_Path>
-
-