Class 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 implements Serializable 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 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()