Class _ValidationResult
- java.lang.Object
-
- com.shopify.graphql.support.AbstractResponse<_ValidationResult>
-
- org.topbraidlive.client.java.graphql.platform._ValidationResult
-
- All Implemented Interfaces:
Serializable
public class _ValidationResult extends AbstractResponse<_ValidationResult>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.shopify.graphql.support.AbstractResponse
optimisticData, responseData
-
-
Constructor Summary
Constructors Constructor Description _ValidationResult()
_ValidationResult(com.google.gson.JsonObject fields)
-
Method Summary
-
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
-
_ValidationResult
public _ValidationResult()
-
_ValidationResult
public _ValidationResult(com.google.gson.JsonObject fields) throws SchemaViolationError
- Throws:
SchemaViolationError
-
-
Method Detail
-
getGraphQlTypeName
public String getGraphQlTypeName()
-
getMessage
public String getMessage()
A human-readable message for the result.
-
setMessage
public _ValidationResult setMessage(String arg)
-
getSeverity
public String getSeverity()
The severity of the result, e.g. "Warning".
-
setSeverity
public _ValidationResult setSeverity(String arg)
-
getFocusNode
public _RDFNode getFocusNode()
The focus node involved in the result.
-
setFocusNode
public _ValidationResult setFocusNode(_RDFNode arg)
-
getPath
public String getPath()
The RDF string of the path involved in the result. May match the values of path.string in GraphQL field introspection.
-
setPath
public _ValidationResult setPath(String arg)
-
getPathLabel
public String getPathLabel()
A display label of the path involved in the result, typically based on sh:name.
-
setPathLabel
public _ValidationResult setPathLabel(String arg)
-
getValue
public _RDFNode getValue()
The value node involved in the result.
-
setValue
public _ValidationResult setValue(_RDFNode arg)
-
getConstraintComponentName
public String getConstraintComponentName()
The local name of the constraint component, e.g. "MinCountConstraintComponent". Empty for entries not generated by SHACL validation, e.g. mapping suggestions.
-
setConstraintComponentName
public _ValidationResult setConstraintComponentName(String arg)
-
getSourceShape
public _RDFNode getSourceShape()
The source shape of the constraint.
-
setSourceShape
public _ValidationResult setSourceShape(_RDFNode arg)
-
getSuggestions
public List<_ValidationResultSuggestion> getSuggestions()
Suggestions on how to fix the result.
-
setSuggestions
public _ValidationResult setSuggestions(List<_ValidationResultSuggestion> arg)
-
getDetails
public List<_ValidationResult> getDetails()
The sh:details of the result.
-
setDetails
public _ValidationResult setDetails(List<_ValidationResult> arg)
-
unwrapsToObject
public boolean unwrapsToObject(String key)
- Specified by:
unwrapsToObject
in classAbstractResponse<_ValidationResult>
-
-