Class SchemaDOMParser

    • Method Detail

      • startDocument

        public void startDocument​(XMLLocator locator,
                                  String encoding,
                                  NamespaceContext namespaceContext,
                                  Augmentations augs)
                           throws XNIException
        Description copied from class: DefaultXMLDocumentHandler
        The start of the document.
        Specified by:
        startDocument in interface XMLDocumentHandler
        Overrides:
        startDocument in class DefaultXMLDocumentHandler
        Parameters:
        locator - The document locator, or null if the document location cannot be reported during the parsing of this document. However, it is strongly recommended that a locator be supplied that can at least report the system identifier of the document.
        encoding - The auto-detected IANA encoding name of the entity stream. This value will be null in those situations where the entity encoding is not auto-detected (e.g. internal entities or a document entity that is parsed from a java.io.Reader).
        namespaceContext - The namespace context in effect at the start of this document. This object represents the current context. Implementors of this class are responsible for copying the namespace bindings from the the current context (and its parent contexts) if that information is important.
        augs - Additional information that may include infoset augmentations
        Throws:
        XNIException - Thrown by handler to signal an error.
      • processingInstruction

        public void processingInstruction​(String target,
                                          XMLString data,
                                          Augmentations augs)
                                   throws XNIException
        A processing instruction. Processing instructions consist of a target name and, optionally, text data. The data is only meaningful to the application.

        Typically, a processing instruction's data will contain a series of pseudo-attributes. These pseudo-attributes follow the form of element attributes but are not parsed or presented to the application as anything other than text. The application is responsible for parsing the data.

        Specified by:
        processingInstruction in interface XMLDocumentHandler
        Specified by:
        processingInstruction in interface XMLDTDHandler
        Overrides:
        processingInstruction in class DefaultXMLDocumentHandler
        Parameters:
        target - The target.
        data - The data or null if none specified.
        augs - Additional information that may include infoset augmentations
        Throws:
        XNIException - Thrown by handler to signal an error.
      • ignorableWhitespace

        public void ignorableWhitespace​(XMLString text,
                                        Augmentations augs)
                                 throws XNIException
        Ignorable whitespace. For this method to be called, the document source must have some way of determining that the text containing only whitespace characters should be considered ignorable. For example, the validator can determine if a length of whitespace characters in the document are ignorable based on the element content model.
        Specified by:
        ignorableWhitespace in interface XMLDocumentHandler
        Overrides:
        ignorableWhitespace in class DefaultXMLDocumentHandler
        Parameters:
        text - The ignorable whitespace.
        augs - Additional information that may include infoset augmentations
        Throws:
        XNIException - Thrown by handler to signal an error.
      • getDocument

        public Document getDocument()
        Returns the DOM document object.
      • setFeature

        public void setFeature​(String featureId,
                               boolean state)
        Delegates to SchemaParsingConfig.setFeature
        Parameters:
        featureId -
        state -
      • getFeature

        public boolean getFeature​(String featureId)
        Delegates to SchemaParsingConfig.getFeature
        Parameters:
        featureId -
        Returns:
        boolean
      • setProperty

        public void setProperty​(String propertyId,
                                Object value)
        Delegates to SchemaParsingConfig.setProperty.
        Parameters:
        propertyId -
        value -
      • getProperty

        public Object getProperty​(String propertyId)
        Delegates to SchemaParsingConfig.getProperty.
        Parameters:
        propertyId -
        Returns:
        Object
      • setEntityResolver

        public void setEntityResolver​(XMLEntityResolver er)
        Delegates to SchemaParsingConfig.setEntityResolver.
        Parameters:
        er - XMLEntityResolver
      • reset

        public void reset()
        Reset SchemaParsingConfig
      • resetNodePool

        public void resetNodePool()
        ResetNodePool on SchemaParsingConfig