Class Parse

  • All Implemented Interfaces:
    org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
    Direct Known Subclasses:
    BpmnParse, DeploymentMetadataParse

    public abstract class Parse
    extends org.xml.sax.helpers.DefaultHandler
    Author:
    Tom Baeyens
    • Field Detail

      • JAXP_SCHEMA_SOURCE

        protected static final java.lang.String JAXP_SCHEMA_SOURCE
        See Also:
        Constant Field Values
      • JAXP_SCHEMA_LANGUAGE

        protected static final java.lang.String JAXP_SCHEMA_LANGUAGE
        See Also:
        Constant Field Values
      • JAXP_ACCESS_EXTERNAL_SCHEMA

        protected static final java.lang.String JAXP_ACCESS_EXTERNAL_SCHEMA
        See Also:
        Constant Field Values
      • JAXP_ACCESS_EXTERNAL_SCHEMA_SYSTEM_PROPERTY

        protected static final java.lang.String JAXP_ACCESS_EXTERNAL_SCHEMA_SYSTEM_PROPERTY
        See Also:
        Constant Field Values
      • JAXP_ACCESS_EXTERNAL_SCHEMA_ALL

        protected static final java.lang.String JAXP_ACCESS_EXTERNAL_SCHEMA_ALL
        See Also:
        Constant Field Values
      • parser

        protected Parser parser
      • name

        protected java.lang.String name
      • rootElement

        protected Element rootElement
      • errors

        protected java.util.List<Problem> errors
      • warnings

        protected java.util.List<Problem> warnings
      • schemaResource

        protected java.lang.String schemaResource
    • Constructor Detail

      • Parse

        public Parse​(Parser parser)
    • Method Detail

      • name

        public Parse name​(java.lang.String name)
      • sourceInputStream

        public Parse sourceInputStream​(java.io.InputStream inputStream)
      • sourceResource

        public Parse sourceResource​(java.lang.String resource)
      • sourceUrl

        public Parse sourceUrl​(java.net.URL url)
      • sourceUrl

        public Parse sourceUrl​(java.lang.String url)
      • sourceResource

        public Parse sourceResource​(java.lang.String resource,
                                    java.lang.ClassLoader classLoader)
      • sourceString

        public Parse sourceString​(java.lang.String string)
      • setStreamSource

        protected void setStreamSource​(StreamSource streamSource)
      • setSchemaResource

        public void setSchemaResource​(java.lang.String schemaResource)
      • execute

        public Parse execute()
      • resolveAccessExternalSchemaProperty

        protected java.lang.String resolveAccessExternalSchemaProperty()
      • getRootElement

        public Element getRootElement()
      • getProblems

        public java.util.List<Problem> getProblems()
      • addError

        public void addError​(org.xml.sax.SAXParseException e)
      • addError

        public void addError​(java.lang.String errorMessage,
                             Element element)
      • addError

        public void addError​(java.lang.String errorMessage,
                             Element element,
                             java.lang.String... elementIds)
      • hasErrors

        public boolean hasErrors()
      • addWarning

        public void addWarning​(org.xml.sax.SAXParseException e)
      • addWarning

        public void addWarning​(java.lang.String errorMessage,
                               Element element)
      • addWarning

        public void addWarning​(java.lang.String errorMessage,
                               Element element,
                               java.lang.String... elementIds)
      • hasWarnings

        public boolean hasWarnings()
      • logWarnings

        public void logWarnings()
      • throwExceptionForErrors

        public void throwExceptionForErrors()