|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.pvm.internal.xml.ProblemList
org.jbpm.pvm.internal.xml.Parse
public class Parse
information related to one single parse operation, for instructions
see Parser.
| Field Summary | |
|---|---|
static java.lang.String |
CONTEXT_KEY_BINDINGS
|
static java.lang.String |
CONTEXT_KEY_DEPLOYMENT
|
static java.lang.String |
CONTEXT_KEY_MIGRATIONS
|
static java.lang.String |
CONTEXT_KEY_PROCESS_LANGUAGE_ID
|
protected java.util.Map<java.lang.String,java.lang.Object> |
contextMap
|
protected java.util.Stack<java.lang.Object> |
contextStack
|
protected org.w3c.dom.Document |
document
|
protected javax.xml.parsers.DocumentBuilder |
documentBuilder
|
protected java.lang.Object |
documentObject
|
protected org.xml.sax.InputSource |
inputSource
|
protected java.io.InputStream |
inputStream
|
protected Parser |
parser
|
protected StreamInput |
streamInput
|
| Fields inherited from class org.jbpm.pvm.internal.xml.ProblemList |
|---|
problems |
| Constructor Summary | |
|---|---|
protected |
Parse(Parser parser)
|
| Method Summary | ||
|---|---|---|
protected void |
addXmlValidationProblem(org.xml.sax.SAXParseException e,
java.lang.String type)
|
|
Parse |
checkErrors(java.lang.String description)
throws an exception with appropriate message in case the parse contains errors or fatal errors. |
|
java.lang.Object |
contextMapGet(java.lang.String key)
|
|
Parse |
contextMapPut(java.lang.String key,
java.lang.Object value)
|
|
Parse |
contextMapRemove(java.lang.String key)
|
|
|
contextStackFind(java.lang.Class<T> clazz)
search a contextual object in the stack by type. |
|
java.lang.Object |
contextStackPeek()
look up the top contextual object from the stack. |
|
java.lang.Object |
contextStackPop()
remove a contextual object from the stack. |
|
Parse |
contextStackPush(java.lang.Object object)
push a contextual object on the stack of this parse. |
|
void |
error(org.xml.sax.SAXParseException e)
part of ErrorHandler to capture XML parsing problems. |
|
Parse |
execute()
perform the actual parse operation with the specified input source. |
|
void |
fatalError(org.xml.sax.SAXParseException e)
part of ErrorHandler to capture XML parsing problems. |
|
org.w3c.dom.Document |
getDocument()
the Document Object Model (DOM). |
|
java.lang.Object |
getDocumentObject()
the result of this parse operation. |
|
protected org.xml.sax.InputSource |
getInputSource()
|
|
Parse |
propagateContexMap(Parse parse)
|
|
Parse |
setDocument(org.w3c.dom.Document document)
normally the Document Object Model is created during the parse execution, but providing a document can be convenient when the DOM is already available and only the walking of the DOM needs to be done by the parser. |
|
Parse |
setDocumentObject(java.lang.Object object)
provides the result of this parse operation. |
|
Parse |
setFile(java.io.File file)
specify a file as the source for this parse |
|
Parse |
setInputSource(org.xml.sax.InputSource inputSource)
specify an InputStream as the source for this parse |
|
Parse |
setInputStream(java.io.InputStream inputStream)
specify an input stream as the source for this parse |
|
Parse |
setResource(java.lang.String resource)
specify a resource as the source for this parse |
|
Parse |
setStreamSource(StreamInput streamInput)
specify a StreamInput as the source for this parse |
|
Parse |
setString(java.lang.String xmlString)
specify an XML string as the source for this parse |
|
Parse |
setUrl(java.net.URL url)
specify a URL as the source for this parse |
|
void |
warning(org.xml.sax.SAXParseException e)
part of ErrorHandler to capture XML parsing problems. |
|
| Methods inherited from class org.jbpm.pvm.internal.xml.ProblemList |
|---|
addProblem, addProblem, addProblem, addProblem, addProblem, addProblem, addProblems, getJbpmException, getJbpmException, getProblems, hasErrors, hasProblems, setProblems |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONTEXT_KEY_DEPLOYMENT
public static final java.lang.String CONTEXT_KEY_PROCESS_LANGUAGE_ID
public static final java.lang.String CONTEXT_KEY_BINDINGS
public static final java.lang.String CONTEXT_KEY_MIGRATIONS
protected Parser parser
protected StreamInput streamInput
protected java.io.InputStream inputStream
protected org.xml.sax.InputSource inputSource
protected javax.xml.parsers.DocumentBuilder documentBuilder
protected org.w3c.dom.Document document
protected java.util.Map<java.lang.String,java.lang.Object> contextMap
protected java.util.Stack<java.lang.Object> contextStack
protected java.lang.Object documentObject
| Constructor Detail |
|---|
protected Parse(Parser parser)
| Method Detail |
|---|
public Parse setInputStream(java.io.InputStream inputStream)
public Parse setUrl(java.net.URL url)
public Parse setFile(java.io.File file)
public Parse setResource(java.lang.String resource)
public Parse setString(java.lang.String xmlString)
public Parse setStreamSource(StreamInput streamInput)
StreamInput as the source for this parse
public Parse setInputSource(org.xml.sax.InputSource inputSource)
public Parse setDocument(org.w3c.dom.Document document)
public Parse setDocumentObject(java.lang.Object object)
protected org.xml.sax.InputSource getInputSource()
public Parse execute()
public void error(org.xml.sax.SAXParseException e)
ErrorHandler to capture XML parsing problems.
error in interface org.xml.sax.ErrorHandlerpublic void fatalError(org.xml.sax.SAXParseException e)
ErrorHandler to capture XML parsing problems.
fatalError in interface org.xml.sax.ErrorHandlerpublic void warning(org.xml.sax.SAXParseException e)
ErrorHandler to capture XML parsing problems.
warning in interface org.xml.sax.ErrorHandler
protected void addXmlValidationProblem(org.xml.sax.SAXParseException e,
java.lang.String type)
public Parse checkErrors(java.lang.String description)
public Parse contextMapPut(java.lang.String key,
java.lang.Object value)
public java.lang.Object contextMapGet(java.lang.String key)
public Parse contextMapRemove(java.lang.String key)
public Parse propagateContexMap(Parse parse)
public Parse contextStackPush(java.lang.Object object)
public java.lang.Object contextStackPop()
public java.lang.Object contextStackPeek()
public <T> T contextStackFind(java.lang.Class<T> clazz)
public java.lang.Object getDocumentObject()
public org.w3c.dom.Document getDocument()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||