public abstract class DOMDocumentUpdateProcessor extends DocumentUpdateProcessor
Modifier and Type | Field and Description |
---|---|
static int |
POSITION_AFTER |
static int |
POSITION_BEFORE |
eclipseGUI, encoding, messageBoxMessage, messageBoxTitle, showMessages, wiz
Constructor and Description |
---|
DOMDocumentUpdateProcessor() |
Modifier and Type | Method and Description |
---|---|
protected static void |
addLocation(org.w3c.dom.Document w3cdoc,
org.w3c.dom.Node n1,
int pos1,
org.w3c.dom.Node n2,
int pos2,
java.lang.String locId)
Adds a part of dom to exist location
|
protected static Location |
createLocation(org.w3c.dom.Document w3cdoc,
org.w3c.dom.Node n1,
int pos1,
org.w3c.dom.Node n2,
int pos2,
Document doc,
Requirement parent)
Create new location and link it to exist requirement node
|
protected static Requirement |
createRequirement(TreeDB db,
java.lang.String name) |
protected static Requirement |
createRequirement(TreeDB db,
java.lang.String name,
Requirement parent) |
protected static Document |
getDocumentNode(TreeNode rootNode,
java.lang.String docid) |
protected static Location |
getLocation(TreeNode rootNode,
java.lang.String uuid) |
protected static Requirement |
getRequirementNode(TreeNode rootNode,
java.lang.String reqid) |
protected abstract org.w3c.dom.Document |
process(java.lang.String oldDocId,
java.lang.String docId,
org.w3c.dom.Document olddom,
org.w3c.dom.Document newdom,
TreeNode rootNode) |
protected boolean |
process(java.lang.String oldDocId,
java.lang.String docId,
java.io.Reader readerold,
java.io.Reader reader,
java.io.Writer writer,
TreeNode rootNode) |
configure, configure, configure, process
getCounterMax, getCounterValues, getMonitor, isCanceled, process, setCounterValues, setEncoding, setWizard, showErrorBox, showMessageBox, showQuestionBox, showSelectAnotherDocumentDialog, showSelectAnotherDocumentDialog, showWizard, showWizard, toggleShowMessages
public static int POSITION_BEFORE
public static int POSITION_AFTER
protected static Requirement createRequirement(TreeDB db, java.lang.String name) throws java.lang.Exception
java.lang.Exception
protected static Requirement createRequirement(TreeDB db, java.lang.String name, Requirement parent) throws java.lang.Exception
java.lang.Exception
protected static Location createLocation(org.w3c.dom.Document w3cdoc, org.w3c.dom.Node n1, int pos1, org.w3c.dom.Node n2, int pos2, Document doc, Requirement parent)
w3cdoc
- Document to return after update processn1
- very first node - start of locationpos1
- operational rule for start node. Can be POSITION_BEFORE - in this case element will be handled or POSITION_AFTER, so element n1 will not be handledn2
- latest node - end of locationpos2
- operational rule for end node. Can be POSITION_AFTER - in this case element will be handled or POSITION_BEFORE, so element n2 will not be handleddoc
- document node to create location inparent
- requirement node to add location forprotected static void addLocation(org.w3c.dom.Document w3cdoc, org.w3c.dom.Node n1, int pos1, org.w3c.dom.Node n2, int pos2, java.lang.String locId)
w3cdoc
- Document to return after update processn1
- very first node - start of locationpos1
- operational rule for start node. Can be POSITION_BEFORE - in this case element will be handled or POSITION_AFTER, so element n1 will not be handledn2
- latest node - end of locationpos2
- operational rule for end node. Can be POSITION_AFTER - in this case element will be handled or POSITION_BEFORE, so element n2 will not be handledlocId
- id of locationprotected static Document getDocumentNode(TreeNode rootNode, java.lang.String docid)
protected static Requirement getRequirementNode(TreeNode rootNode, java.lang.String reqid)
protected boolean process(java.lang.String oldDocId, java.lang.String docId, java.io.Reader readerold, java.io.Reader reader, java.io.Writer writer, TreeNode rootNode)
process
in class DocumentUpdateProcessor
protected abstract org.w3c.dom.Document process(java.lang.String oldDocId, java.lang.String docId, org.w3c.dom.Document olddom, org.w3c.dom.Document newdom, TreeNode rootNode)