Package graphql.execution.preparsed
Class PreparsedDocumentEntry
- java.lang.Object
-
- graphql.execution.preparsed.PreparsedDocumentEntry
-
- All Implemented Interfaces:
java.io.Serializable
@PublicApi public class PreparsedDocumentEntry extends java.lang.Object implements java.io.Serializable
An instance of a preparsed document entry represents the result of a query parse and validation. In the case of failed parsing or no validation errors this class acts as an either implementation. In the case of successful parsing and failed validation this class provides both the document and the validation errors. NOTE: This class implementsSerializable
and hence it can be serialised and placed into a distributed cache. However we are not aiming to provide long term compatibility and do not intend for you to place this serialised data into permanent storage, with times frames that cross graphql-java versions. While we don't change things unnecessarily, we may inadvertently break the serialised compatibility across versions.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PreparsedDocumentEntry(GraphQLError error)
PreparsedDocumentEntry(Document document)
PreparsedDocumentEntry(Document document, java.util.List<? extends GraphQLError> errors)
PreparsedDocumentEntry(java.util.List<? extends GraphQLError> errors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Document
getDocument()
java.util.List<? extends GraphQLError>
getErrors()
boolean
hasErrors()
-
-
-
Constructor Detail
-
PreparsedDocumentEntry
public PreparsedDocumentEntry(Document document, java.util.List<? extends GraphQLError> errors)
-
PreparsedDocumentEntry
public PreparsedDocumentEntry(Document document)
-
PreparsedDocumentEntry
public PreparsedDocumentEntry(java.util.List<? extends GraphQLError> errors)
-
PreparsedDocumentEntry
public PreparsedDocumentEntry(GraphQLError error)
-
-
Method Detail
-
getDocument
public Document getDocument()
-
getErrors
public java.util.List<? extends GraphQLError> getErrors()
-
hasErrors
public boolean hasErrors()
-
-