Class Parse
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.camunda.bpm.engine.impl.util.xml.Parse
-
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Direct Known Subclasses:
BpmnParse
,DeploymentMetadataParse
public abstract class Parse extends DefaultHandler
- Author:
- Tom Baeyens
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Problem>
errors
protected static String
JAXP_ACCESS_EXTERNAL_SCHEMA
protected static String
JAXP_ACCESS_EXTERNAL_SCHEMA_ALL
protected static String
JAXP_ACCESS_EXTERNAL_SCHEMA_SYSTEM_PROPERTY
protected static String
JAXP_SCHEMA_LANGUAGE
protected static String
JAXP_SCHEMA_SOURCE
protected static EngineUtilLogger
LOG
protected String
name
protected Parser
parser
protected Element
rootElement
protected String
schemaResource
protected StreamSource
streamSource
protected static String
W3C_XML_SCHEMA
protected List<Problem>
warnings
-
Method Summary
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Field Detail
-
LOG
protected static final EngineUtilLogger LOG
-
JAXP_SCHEMA_SOURCE
protected static final String JAXP_SCHEMA_SOURCE
- See Also:
- Constant Field Values
-
JAXP_SCHEMA_LANGUAGE
protected static final String JAXP_SCHEMA_LANGUAGE
- See Also:
- Constant Field Values
-
W3C_XML_SCHEMA
protected static final String W3C_XML_SCHEMA
- See Also:
- Constant Field Values
-
JAXP_ACCESS_EXTERNAL_SCHEMA
protected static final String JAXP_ACCESS_EXTERNAL_SCHEMA
- See Also:
- Constant Field Values
-
JAXP_ACCESS_EXTERNAL_SCHEMA_SYSTEM_PROPERTY
protected static final String JAXP_ACCESS_EXTERNAL_SCHEMA_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
JAXP_ACCESS_EXTERNAL_SCHEMA_ALL
protected static final String JAXP_ACCESS_EXTERNAL_SCHEMA_ALL
- See Also:
- Constant Field Values
-
parser
protected Parser parser
-
name
protected String name
-
streamSource
protected StreamSource streamSource
-
rootElement
protected Element rootElement
-
schemaResource
protected String schemaResource
-
-
Constructor Detail
-
Parse
public Parse(Parser parser)
-
-
Method Detail
-
sourceInputStream
public Parse sourceInputStream(InputStream inputStream)
-
sourceResource
public Parse sourceResource(String resource, ClassLoader classLoader)
-
setStreamSource
protected void setStreamSource(StreamSource streamSource)
-
setSchemaResource
public void setSchemaResource(String schemaResource)
-
execute
public Parse execute()
-
resolveAccessExternalSchemaProperty
protected String resolveAccessExternalSchemaProperty()
-
getRootElement
public Element getRootElement()
-
addError
public void addError(SAXParseException e)
-
addError
public void addError(BpmnParseException e)
-
addError
public void addError(BpmnParseException e, String elementId)
-
hasErrors
public boolean hasErrors()
-
addWarning
public void addWarning(SAXParseException e)
-
hasWarnings
public boolean hasWarnings()
-
logWarnings
public void logWarnings()
-
throwExceptionForErrors
public void throwExceptionForErrors()
-
-