public class Parse extends org.xml.sax.helpers.DefaultHandler
Type | Property and Description |
---|---|
protected String |
resolveAccessExternalSchema |
Modifier and Type | Field and Description |
---|---|
protected boolean |
enableXxeProcessing |
protected List<Problem> |
errors |
protected String |
name |
protected Parser |
parser |
protected Element |
rootElement |
protected String |
schemaResource |
protected StreamSource |
streamSource |
protected List<Problem> |
warnings |
Modifier and Type | Method and Description |
---|---|
void |
addError(BpmnParseException e) |
void |
addError(SAXParseException e) |
void |
addError(String errorMessage,
Element element) |
void |
addWarning(SAXParseException e) |
void |
addWarning(String errorMessage,
Element element) |
Parse |
execute() |
List<Problem> |
getProblems() |
Element |
getRootElement() |
boolean |
hasErrors() |
boolean |
hasWarnings() |
void |
logWarnings() |
Parse |
name(String name) |
protected String |
resolveAccessExternalSchemaProperty() |
void |
setEnableXxeProcessing(boolean enableXxeProcessing) |
void |
setSchemaResource(String schemaResource) |
protected void |
setStreamSource(StreamSource streamSource) |
Parse |
sourceInputStream(InputStream inputStream) |
Parse |
sourceResource(String resource) |
Parse |
sourceResource(String resource,
ClassLoader classLoader) |
Parse |
sourceString(String string) |
Parse |
sourceUrl(String url) |
Parse |
sourceUrl(URL url) |
void |
throwExceptionForErrors() |
Parse |
xxeProcessing(boolean enable) |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
protected Parser parser
protected String name
protected StreamSource streamSource
protected Element rootElement
protected String schemaResource
protected boolean enableXxeProcessing
public Parse(Parser parser)
public Parse sourceInputStream(InputStream inputStream)
public Parse sourceResource(String resource, ClassLoader classLoader)
public Parse xxeProcessing(boolean enable)
protected void setStreamSource(StreamSource streamSource)
public void setEnableXxeProcessing(boolean enableXxeProcessing)
public Parse execute()
protected String resolveAccessExternalSchemaProperty()
public Element getRootElement()
public void addError(SAXParseException e)
public void addError(BpmnParseException e)
public boolean hasErrors()
public void addWarning(SAXParseException e)
public boolean hasWarnings()
public void logWarnings()
public void throwExceptionForErrors()
public void setSchemaResource(String schemaResource)
Copyright © 2019. All rights reserved.