public interface IDocumentProcessor
Modifier and Type | Method and Description |
---|---|
boolean |
configure(Document doc)
Provide additional configuration process if needed
|
int[] |
getCounterMax()
Get numbers of calls of monitor.worked required to complete processing.
|
int[] |
getCounterValues() |
void |
process(java.lang.String docId,
TreeNode rootNode,
IProgressMonitor monitor)
Process document with given id
|
void |
setCounterValues(int lc,
int pc,
int sc) |
void |
setEncoding(java.lang.String encoding)
Set encoding for input stream
|
void |
setWizard(DocWizard wizard)
Set wizard for additional settings on parser
|
java.util.Map<java.lang.String,java.lang.String> |
showWizard()
Show wizard and return given values
|
int[] getCounterMax()
int[] getCounterValues()
void setCounterValues(int lc, int pc, int sc)
void setEncoding(java.lang.String encoding)
encoding
- encodingvoid process(java.lang.String docId, TreeNode rootNode, IProgressMonitor monitor) throws java.io.IOException
docId
- identifier of documentrootNode
- root element of requirements catalogjava.io.IOException
boolean configure(Document doc)
doc
- document to be processed furthervoid setWizard(DocWizard wizard)
wizard
- wizard to be shownjava.util.Map<java.lang.String,java.lang.String> showWizard()