Class _FieldShape
- java.lang.Object
-
- com.shopify.graphql.support.AbstractResponse<_FieldShape>
-
- org.topbraidlive.client.java.graphql.platform._FieldShape
-
- All Implemented Interfaces:
Serializable
public class _FieldShape extends AbstractResponse<_FieldShape>
Metadata about a field as derived from its shape(s).- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.shopify.graphql.support.AbstractResponse
optimisticData, responseData
-
-
Constructor Summary
Constructors Constructor Description _FieldShape()_FieldShape(com.google.gson.JsonObject fields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description _ResourcegetDatatype()The declared datatype of the field or null if this is an object-valued field.List<_Resource>getDatatypes()Produces the individual datatypes if this field is based on a sh:or of multiple datatypes (indicated by having datatype rdfs:Literal), otherwise behaves like datatype introspection.StringgetDefaultValue()Returns a non-empty string (encoded RDF node) if this field has a sh:defaultValue, null otherwise.StringgetDescription()A human-readable description of the field._ResourcegetEditor()The specified dash:editor, or null.List<_EnumValue>getEnumValues()For enumerated properties (based on sh:in) this produces an array for all members of the enumeration._ResourcegetExternalType()The external type if this is an object-valued field that points at a resource outside of the GraphQL schema.StringgetGraphQlTypeName()_FieldGroupgetGroup()The field group that the field is in.BooleangetIsHidden()True if this field should be hidden from user interfaces.BooleangetIsIndexed()True if this field is indexed, i.e.BooleangetIsInferred()True if this is an inferred field, the values of which are derived or computed from other values.BooleangetIsList()True if this is an rdf:List field.BooleangetIsMaxExclusive()True if the value of max should be interpreted as < and not <=BooleangetIsMinExclusive()True if the value of min should be interpreted as > and not >=StringgetLabel()A display label for the field.StringgetMax()The maximum value of the field, if specified.IntegergetMaxCount()The maximum permitted number of values of the field (if any).IntegergetMaxLength()The maximum string length of values of the field (if any).StringgetMin()The minimum value of the field, if specified.IntegergetMinCount()The minimum required number of values of the field, defaulting to 0.IntegergetMinLength()The minimum string length of values of the field, defaulting to 0.StringgetName()The GraphQL name of the field.StringgetNode()The URI of the sh:node constraint, defining additional filter conditions for auto-complete widgets._ResourcegetNodeKind()The declared sh:nodeKind of the field, e.g.DoublegetOrder()A number representing the relative ordering of this field compared to others._PathgetPath()The sh:path that the field is aboutStringgetPattern()The regular expression that the values of the field must match.BooleangetReadOnly()True if this field has been marked to be read-only using dash:readOnly.StringgetReifiableBy()The URI of the specified dash:reifiableBy, or null.StringgetRole()The URI of the property role, or null.BooleangetScalar()True if the GraphQL field is of a scalar type, i.e.BooleangetSingleLine()True or false if the property shape has a dash:singleLine constraint, or null if none has been declared, meaning "don't know"._TypeShapegetTypeShape()The type shape of the field or null if this is a datatype-valued field or an external resource.List<String>getUnionTypeNames()The GraphQL names of the individual types if this field is a union type.StringgetUriStart()The start of URIs used by all instances where this property applies as primary key, as specified using dash:uriStart._ResourcegetViewer()The specified dash:viewer, or null.StringgetViewWidget()The URI of the specified tosh:viewWidget, or null._FieldShapesetDatatype(_Resource arg)_FieldShapesetDatatypes(List<_Resource> arg)_FieldShapesetDefaultValue(String arg)_FieldShapesetDescription(String arg)_FieldShapesetEditor(_Resource arg)_FieldShapesetEnumValues(List<_EnumValue> arg)_FieldShapesetExternalType(_Resource arg)_FieldShapesetGroup(_FieldGroup arg)_FieldShapesetIsHidden(Boolean arg)_FieldShapesetIsIndexed(Boolean arg)_FieldShapesetIsInferred(Boolean arg)_FieldShapesetIsList(Boolean arg)_FieldShapesetIsMaxExclusive(Boolean arg)_FieldShapesetIsMinExclusive(Boolean arg)_FieldShapesetLabel(String arg)_FieldShapesetMax(String arg)_FieldShapesetMaxCount(Integer arg)_FieldShapesetMaxLength(Integer arg)_FieldShapesetMin(String arg)_FieldShapesetMinCount(Integer arg)_FieldShapesetMinLength(Integer arg)_FieldShapesetName(String arg)_FieldShapesetNode(String arg)_FieldShapesetNodeKind(_Resource arg)_FieldShapesetOrder(Double arg)_FieldShapesetPath(_Path arg)_FieldShapesetPattern(String arg)_FieldShapesetReadOnly(Boolean arg)_FieldShapesetReifiableBy(String arg)_FieldShapesetRole(String arg)_FieldShapesetScalar(Boolean arg)_FieldShapesetSingleLine(Boolean arg)_FieldShapesetTypeShape(_TypeShape arg)_FieldShapesetUnionTypeNames(List<String> arg)_FieldShapesetUriStart(String arg)_FieldShapesetViewer(_Resource arg)_FieldShapesetViewWidget(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
-
_FieldShape
public _FieldShape()
-
_FieldShape
public _FieldShape(com.google.gson.JsonObject fields) throws SchemaViolationError- Throws:
SchemaViolationError
-
-
Method Detail
-
getGraphQlTypeName
public String getGraphQlTypeName()
-
getName
public String getName()
The GraphQL name of the field.
-
setName
public _FieldShape setName(String arg)
-
getLabel
public String getLabel()
A display label for the field.
-
setLabel
public _FieldShape setLabel(String arg)
-
getDescription
public String getDescription()
A human-readable description of the field.
-
setDescription
public _FieldShape setDescription(String arg)
-
getDatatype
public _Resource getDatatype()
The declared datatype of the field or null if this is an object-valued field.
-
setDatatype
public _FieldShape setDatatype(_Resource arg)
-
getDatatypes
public List<_Resource> getDatatypes()
Produces the individual datatypes if this field is based on a sh:or of multiple datatypes (indicated by having datatype rdfs:Literal), otherwise behaves like datatype introspection.
-
setDatatypes
public _FieldShape setDatatypes(List<_Resource> arg)
-
getEnumValues
public List<_EnumValue> getEnumValues()
For enumerated properties (based on sh:in) this produces an array for all members of the enumeration.
-
setEnumValues
public _FieldShape setEnumValues(List<_EnumValue> arg)
-
getExternalType
public _Resource getExternalType()
The external type if this is an object-valued field that points at a resource outside of the GraphQL schema.
-
setExternalType
public _FieldShape setExternalType(_Resource arg)
-
getNode
public String getNode()
The URI of the sh:node constraint, defining additional filter conditions for auto-complete widgets.
-
setNode
public _FieldShape setNode(String arg)
-
getTypeShape
public _TypeShape getTypeShape()
The type shape of the field or null if this is a datatype-valued field or an external resource.
-
setTypeShape
public _FieldShape setTypeShape(_TypeShape arg)
-
getScalar
public Boolean getScalar()
True if the GraphQL field is of a scalar type, i.e. does not have child selectors.
-
setScalar
public _FieldShape setScalar(Boolean arg)
-
getSingleLine
public Boolean getSingleLine()
True or false if the property shape has a dash:singleLine constraint, or null if none has been declared, meaning "don't know".
-
setSingleLine
public _FieldShape setSingleLine(Boolean arg)
-
getUnionTypeNames
public List<String> getUnionTypeNames()
The GraphQL names of the individual types if this field is a union type.
-
setUnionTypeNames
public _FieldShape setUnionTypeNames(List<String> arg)
-
getMinCount
public Integer getMinCount()
The minimum required number of values of the field, defaulting to 0.
-
setMinCount
public _FieldShape setMinCount(Integer arg)
-
getMaxCount
public Integer getMaxCount()
The maximum permitted number of values of the field (if any).
-
setMaxCount
public _FieldShape setMaxCount(Integer arg)
-
getMin
public String getMin()
The minimum value of the field, if specified.
-
setMin
public _FieldShape setMin(String arg)
-
getMax
public String getMax()
The maximum value of the field, if specified.
-
setMax
public _FieldShape setMax(String arg)
-
getIsMinExclusive
public Boolean getIsMinExclusive()
True if the value of min should be interpreted as > and not >=
-
setIsMinExclusive
public _FieldShape setIsMinExclusive(Boolean arg)
-
getIsMaxExclusive
public Boolean getIsMaxExclusive()
True if the value of max should be interpreted as < and not <=
-
setIsMaxExclusive
public _FieldShape setIsMaxExclusive(Boolean arg)
-
getMinLength
public Integer getMinLength()
The minimum string length of values of the field, defaulting to 0.
-
setMinLength
public _FieldShape setMinLength(Integer arg)
-
getMaxLength
public Integer getMaxLength()
The maximum string length of values of the field (if any).
-
setMaxLength
public _FieldShape setMaxLength(Integer arg)
-
getNodeKind
public _Resource getNodeKind()
The declared sh:nodeKind of the field, e.g. sh:IRI.
-
setNodeKind
public _FieldShape setNodeKind(_Resource arg)
-
getPattern
public String getPattern()
The regular expression that the values of the field must match.
-
setPattern
public _FieldShape setPattern(String arg)
-
getGroup
public _FieldGroup getGroup()
The field group that the field is in.
-
setGroup
public _FieldShape setGroup(_FieldGroup arg)
-
getOrder
public Double getOrder()
A number representing the relative ordering of this field compared to others. Defaults to 0.
-
setOrder
public _FieldShape setOrder(Double arg)
-
getRole
public String getRole()
The URI of the property role, or null.
-
setRole
public _FieldShape setRole(String arg)
-
getEditor
public _Resource getEditor()
The specified dash:editor, or null.
-
setEditor
public _FieldShape setEditor(_Resource arg)
-
getViewWidget
public String getViewWidget()
The URI of the specified tosh:viewWidget, or null.
-
setViewWidget
public _FieldShape setViewWidget(String arg)
-
getViewer
public _Resource getViewer()
The specified dash:viewer, or null.
-
setViewer
public _FieldShape setViewer(_Resource arg)
-
getPath
public _Path getPath()
The sh:path that the field is about
-
setPath
public _FieldShape setPath(_Path arg)
-
getDefaultValue
public String getDefaultValue()
Returns a non-empty string (encoded RDF node) if this field has a sh:defaultValue, null otherwise.
-
setDefaultValue
public _FieldShape setDefaultValue(String arg)
-
getIsHidden
public Boolean getIsHidden()
True if this field should be hidden from user interfaces.
-
setIsHidden
public _FieldShape setIsHidden(Boolean arg)
-
getIsIndexed
public Boolean getIsIndexed()
True if this field is indexed, i.e. its values are sorted and a UI should maintain index order from 0 to n.
-
setIsIndexed
public _FieldShape setIsIndexed(Boolean arg)
-
getIsInferred
public Boolean getIsInferred()
True if this is an inferred field, the values of which are derived or computed from other values. Inferred fields are not mutable.
-
setIsInferred
public _FieldShape setIsInferred(Boolean arg)
-
getIsList
public Boolean getIsList()
True if this is an rdf:List field.
-
setIsList
public _FieldShape setIsList(Boolean arg)
-
getReadOnly
public Boolean getReadOnly()
True if this field has been marked to be read-only using dash:readOnly.
-
setReadOnly
public _FieldShape setReadOnly(Boolean arg)
-
getReifiableBy
public String getReifiableBy()
The URI of the specified dash:reifiableBy, or null.
-
setReifiableBy
public _FieldShape setReifiableBy(String arg)
-
getUriStart
public String getUriStart()
The start of URIs used by all instances where this property applies as primary key, as specified using dash:uriStart.
-
setUriStart
public _FieldShape setUriStart(String arg)
-
unwrapsToObject
public boolean unwrapsToObject(String key)
- Specified by:
unwrapsToObjectin classAbstractResponse<_FieldShape>
-
-