public class Parse extends org.xml.sax.helpers.DefaultHandler
Modifier and Type | Field and Description |
---|---|
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) |
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() |
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
public Parse(Parser parser)
public Parse sourceInputStream(InputStream inputStream)
public Parse sourceResource(String resource, ClassLoader classLoader)
protected void setStreamSource(StreamSource streamSource)
public Parse execute()
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 © 2018. All rights reserved.