Class ConstraintReificationShape
- java.lang.Object
-
- com.shopify.graphql.support.AbstractResponse<ConstraintReificationShape>
-
- org.topbraidlive.client.java.graphql.platform.ConstraintReificationShape
-
- All Implemented Interfaces:
Serializable
public class ConstraintReificationShape extends AbstractResponse<ConstraintReificationShape>
Can be used to attach sh:severity and sh:messages to individual constraints using reification.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.shopify.graphql.support.AbstractResponse
optimisticData, responseData
-
-
Constructor Summary
Constructors Constructor Description ConstraintReificationShape()
ConstraintReificationShape(com.google.gson.JsonObject fields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getGraphQlTypeName()
String
getLabel()
A human-readable display label.List<Literal>
getMessage()
A human-readable message (possibly with placeholders for variables) explaining the cause of the result.List<_ValidationResult>
getResults()
The (validation) results for the surrounding object, e.g._Resource
getSeverity()
Defines the severity that validation results produced by a shape must have.List<_Resource>
getType()
The types of this ConstraintReificationShapeID
getUri()
The URI of the resource.ConstraintReificationShape
setLabel(String arg)
ConstraintReificationShape
setMessage(List<Literal> arg)
ConstraintReificationShape
setResults(List<_ValidationResult> arg)
ConstraintReificationShape
setSeverity(_Resource arg)
ConstraintReificationShape
setType(List<_Resource> arg)
ConstraintReificationShape
setUri(ID 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
-
ConstraintReificationShape
public ConstraintReificationShape()
-
ConstraintReificationShape
public ConstraintReificationShape(com.google.gson.JsonObject fields) throws SchemaViolationError
- Throws:
SchemaViolationError
-
-
Method Detail
-
getGraphQlTypeName
public String getGraphQlTypeName()
-
getUri
public ID getUri()
The URI of the resource.
-
setUri
public ConstraintReificationShape setUri(ID arg)
-
getLabel
public String getLabel()
A human-readable display label.
-
setLabel
public ConstraintReificationShape setLabel(String arg)
-
getMessage
public List<Literal> getMessage()
A human-readable message (possibly with placeholders for variables) explaining the cause of the result.
-
setMessage
public ConstraintReificationShape setMessage(List<Literal> arg)
-
getSeverity
public _Resource getSeverity()
Defines the severity that validation results produced by a shape must have. Defaults to sh:Violation.
-
setSeverity
public ConstraintReificationShape setSeverity(_Resource arg)
-
setType
public ConstraintReificationShape setType(List<_Resource> arg)
-
getResults
public List<_ValidationResult> getResults()
The (validation) results for the surrounding object, e.g. current constraint violations.
-
setResults
public ConstraintReificationShape setResults(List<_ValidationResult> arg)
-
unwrapsToObject
public boolean unwrapsToObject(String key)
- Specified by:
unwrapsToObject
in classAbstractResponse<ConstraintReificationShape>
-
-