Class _Resource
- java.lang.Object
-
- com.shopify.graphql.support.AbstractResponse<_Resource>
-
- org.topbraidlive.client.java.graphql.platform._Resource
-
- All Implemented Interfaces:
Serializable
public class _Resource extends AbstractResponse<_Resource>
A resource for which only the URI, label and types can be queried.- 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()StringgetLabel()A human-readable display label.List<_Resource>getType()The type(s) of the resource.IDgetUri()The URI of the resource._ResourcesetLabel(String arg)_ResourcesetType(List<_Resource> arg)_ResourcesetUri(ID 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
-
_Resource
public _Resource()
-
_Resource
public _Resource(com.google.gson.JsonObject fields) throws SchemaViolationError- Throws:
SchemaViolationError
-
-
Method Detail
-
getGraphQlTypeName
public String getGraphQlTypeName()
-
getUri
public ID getUri()
The URI of the resource.
-
getLabel
public String getLabel()
A human-readable display label.
-
unwrapsToObject
public boolean unwrapsToObject(String key)
- Specified by:
unwrapsToObjectin classAbstractResponse<_Resource>
-
-