

Public Member Functions | |
| NXNodeMapper (Node node, boolean isDocument, File nxsFile) | |
| NXNodeMapper (Node node, boolean isDocument, String nodeName) | |
| NXNodeMapper (String nodeName) | |
| boolean | isRoot () |
| Check to see if this node is the root node. More... | |
| boolean | isDocument () |
| Check to see if this node is a document, i.e the list of nodes directly under the root node that are the open NXS documents. More... | |
| void | setDocument (boolean isDocument) |
| Set the flag that says that this node is a documents node i.e. More... | |
| void | setRoot (NXNodeMapper root) |
| Set the root node that this node belongs to. More... | |
| File | getNXSFile () |
| Get the NXS file belonging to the root node. More... | |
| File | getNXDLFile () |
| Get the NXDL file belonging to the root node. More... | |
| void | setNXDLFile (File nxdlFile) |
| Set the NXDL file belonging to the root node. More... | |
| File | getReducedFile () |
| Get the resultant file produced after NXConvert has been run on the NXS file (reduced to XML). More... | |
| void | setReducedFile (File reducedFile) |
| Set the resultant file produced after NXConvert has been run on the NXS file. More... | |
| File | getResultsFile () |
| Get the resultant file produced after the validation procedure has been performed. More... | |
| void | setResultsFile (File resultsFile) |
| Get the resultant file produced after the validation procedure has been performed. More... | |
| Document | getResultsDoc () |
| Get the resultant DOM document produced after the validation procedure has been performed. More... | |
| void | setResultsDoc (Document resultsDoc) |
| Get the resultant DOM document produced after the validation procedure has been performed. More... | |
| Document | getReducedDoc () |
| Initially the Nexus file is converted to a reduced (all data removed) XML document via the Nexus convert command. More... | |
| void | setReducedDoc (Document reducedDoc) |
| Initially the Nexus file is converted to a reduced (all data removed) XML document via the Nexus convert command. More... | |
| void | setBadNode (boolean badNode) |
| If a node in the reduced XML document fails one of the schematron tests then the node can be marked as a bad node with a boolean flag. More... | |
| boolean | getBadNode () |
| If a node in the reduced XML document fails one of the schematron tests then the node can be marked as a bad node with a boolean flag. More... | |
| void | setWarnNode (boolean warnNode) |
| If a node in the reduced XML document fails one of the schematron report tests then the node can be marked as a warning node with a boolean flag. More... | |
| boolean | getWarnNode () |
| If a node in the reduced XML document fails one of the schematron report tests then the node can be marked as a warning node with a boolean flag. More... | |
| void | setValidatedNode (boolean validatedNode) |
| If a node has been validated then we can indicate the fact with a boolean flag. More... | |
| boolean | getValidatedNode () |
| If a node has been validated then we can indicate the fact with a boolean flag. More... | |
| Node | getDomNode () |
| Get the W3C DOM node corresponding to this tree node. More... | |
| void | checkBadNode () |
| A convenience method to force the checking if a node is bad (failed schematron tests). More... | |
| void | checkWarnNode () |
| A convenience method to force the checking if a node has warnings More... | |
| void | checkValidatedNode () |
| A convenience method to force the checking if a node has been validated More... | |
| boolean | checkBadChildren () |
| A method to check to see if any of a nodes children are bad. More... | |
| void | resetNode () |
| Resets the various properties of a node, i.e flag to indicate that it is a bad node, the text for the tests that failed etc. More... | |
| ArrayList< String > | getNodeTexts () |
| This is a list of text strings which correspond to the error message results of the schematron tests. More... | |
| ArrayList< String > | getNodeTests () |
| This is a list of text strings which correspond to the schematron test descriptions. More... | |
| ArrayList< String > | getNodeDiags () |
| This is a list of text strings which correspond to the schematron diagnostic errors. More... | |
| ArrayList< String > | getNodeDiagAtts () |
| String | toString () |
| int | getIndex (TreeNode child1) |
| NXNodeMapper | getChildAt (int searchIndex) |
| int | getChildCount () |
| Enumeration | children () |
| boolean | isLeaf () |
| boolean | getAllowsChildren () |
| TreeNode | getParent () |
| NXNodeMapper | getRoot () |
| String[] | getAttributeList () |
| Each node of the reduced XML document may have attributes associated with it, this method provides a list of the attributes. More... | |
| String | getValue () |
| Each node of the reduced XML document may have a value associated with it. More... | |
| ArrayList< NXNodeMapper > | getOpenNodes () |
| Returns a list of nodes that represent the Nexus documents that are open i.e. More... | |
| void | removeAllNodes () |
| Removes the list of nodes that represent the Nexus documents that are open i.e. More... | |
| boolean | hasBadChildren () |
| Check to see if the node has any vary bad kids, return true if it has. More... | |
| void | insert (MutableTreeNode child, int index) |
| void | remove (int index) |
| void | remove (MutableTreeNode node) |
| void | removeFromParent () |
| void | setParent (MutableTreeNode newParent) |
| void | setUserObject (Object object) |
Definition at line 44 of file NXNodeMapper.java.
| org.nexusformat.nxvalidate.NXNodeMapper.NXNodeMapper | ( | Node | node, |
| boolean | isDocument, | ||
| File | nxsFile | ||
| ) |
Definition at line 69 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.children(), org.nexusformat.nxvalidate.NXNodeMapper.isDocument(), and org.nexusformat.nxvalidate.NXNodeMapper.isLeaf().
Referenced by org.nexusformat.nxvalidate.NXNodeMapper.getChildAt(), org.nexusformat.nxvalidate.NXNodeMapper.getIndex(), org.nexusformat.nxvalidate.NXNodeMapper.getParent(), org.nexusformat.nxvalidate.NXNodeMapper.getRoot(), org.nexusformat.nxvalidate.NXNodeMapper.insert(), org.nexusformat.nxvalidate.NXNodeMapper.remove(), and org.nexusformat.nxvalidate.NXNodeMapper.removeFromParent().

| org.nexusformat.nxvalidate.NXNodeMapper.NXNodeMapper | ( | Node | node, |
| boolean | isDocument, | ||
| String | nodeName | ||
| ) |
Definition at line 85 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.children(), org.nexusformat.nxvalidate.NXNodeMapper.isDocument(), and org.nexusformat.nxvalidate.NXNodeMapper.isLeaf().

| org.nexusformat.nxvalidate.NXNodeMapper.NXNodeMapper | ( | String | nodeName | ) |
Definition at line 99 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.isRoot().

| boolean org.nexusformat.nxvalidate.NXNodeMapper.checkBadChildren | ( | ) |
A method to check to see if any of a nodes children are bad.
Definition at line 358 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.isRoot().

| void org.nexusformat.nxvalidate.NXNodeMapper.checkBadNode | ( | ) |
A convenience method to force the checking if a node is bad (failed schematron tests).
Sets the flag to indicate the node is bad.
Definition at line 318 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.isRoot().
Referenced by org.nexusformat.nxvalidate.NXNodeMapper.getBadNode().

| void org.nexusformat.nxvalidate.NXNodeMapper.checkValidatedNode | ( | ) |
A convenience method to force the checking if a node has been validated
Sets the flag to indicate the node has warnings.
Definition at line 344 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.isRoot().
Referenced by org.nexusformat.nxvalidate.NXNodeMapper.getValidatedNode().

| void org.nexusformat.nxvalidate.NXNodeMapper.checkWarnNode | ( | ) |
A convenience method to force the checking if a node has warnings
Sets the flag to indicate the node has warnings.
Definition at line 331 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.isRoot().
Referenced by org.nexusformat.nxvalidate.NXNodeMapper.getWarnNode().

| Enumeration org.nexusformat.nxvalidate.NXNodeMapper.children | ( | ) |
Definition at line 543 of file NXNodeMapper.java.
Referenced by org.nexusformat.nxvalidate.NXNodeMapper.NXNodeMapper().
| boolean org.nexusformat.nxvalidate.NXNodeMapper.getAllowsChildren | ( | ) |
Definition at line 552 of file NXNodeMapper.java.
| String [] org.nexusformat.nxvalidate.NXNodeMapper.getAttributeList | ( | ) |
Each node of the reduced XML document may have attributes associated with it, this method provides a list of the attributes.
Each string contains the attribute name and the value.
Definition at line 632 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.isRoot().

| boolean org.nexusformat.nxvalidate.NXNodeMapper.getBadNode | ( | ) |
If a node in the reduced XML document fails one of the schematron tests then the node can be marked as a bad node with a boolean flag.
The flag is set to true if the node failed one of the tests.
Definition at line 259 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.checkBadNode().
Referenced by org.nexusformat.nxvalidate.XMLTreeRenderer.getTreeCellRendererComponent(), and org.nexusformat.nxvalidate.TextPaneStyle.updateTextPane().

| NXNodeMapper org.nexusformat.nxvalidate.NXNodeMapper.getChildAt | ( | int | searchIndex | ) |
Definition at line 498 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.isRoot(), and org.nexusformat.nxvalidate.NXNodeMapper.NXNodeMapper().

| int org.nexusformat.nxvalidate.NXNodeMapper.getChildCount | ( | ) |
Definition at line 527 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.isRoot().
Referenced by org.nexusformat.nxvalidate.NXNodeMapper.getIndex(), and org.nexusformat.nxvalidate.NXReducedToTree.isLeaf().

| Node org.nexusformat.nxvalidate.NXNodeMapper.getDomNode | ( | ) |
Get the W3C DOM node corresponding to this tree node.
Definition at line 310 of file NXNodeMapper.java.
| int org.nexusformat.nxvalidate.NXNodeMapper.getIndex | ( | TreeNode | child1 | ) |
Definition at line 474 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.getChildCount(), org.nexusformat.nxvalidate.NXNodeMapper.isRoot(), and org.nexusformat.nxvalidate.NXNodeMapper.NXNodeMapper().

| ArrayList<String> org.nexusformat.nxvalidate.NXNodeMapper.getNodeDiagAtts | ( | ) |
Definition at line 460 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.isRoot().

| ArrayList<String> org.nexusformat.nxvalidate.NXNodeMapper.getNodeDiags | ( | ) |
This is a list of text strings which correspond to the schematron diagnostic errors.
Definition at line 452 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.isRoot().

| ArrayList<String> org.nexusformat.nxvalidate.NXNodeMapper.getNodeTests | ( | ) |
This is a list of text strings which correspond to the schematron test descriptions.
Definition at line 438 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.isRoot().

| ArrayList<String> org.nexusformat.nxvalidate.NXNodeMapper.getNodeTexts | ( | ) |
This is a list of text strings which correspond to the error message results of the schematron tests.
Definition at line 424 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.isRoot().

| File org.nexusformat.nxvalidate.NXNodeMapper.getNXDLFile | ( | ) |
Get the NXDL file belonging to the root node.
Any other node should return null
Definition at line 155 of file NXNodeMapper.java.
| File org.nexusformat.nxvalidate.NXNodeMapper.getNXSFile | ( | ) |
Get the NXS file belonging to the root node.
Any other node should return null
Definition at line 146 of file NXNodeMapper.java.
| ArrayList<NXNodeMapper> org.nexusformat.nxvalidate.NXNodeMapper.getOpenNodes | ( | ) |
Returns a list of nodes that represent the Nexus documents that are open i.e.
that have been reduced.
Definition at line 752 of file NXNodeMapper.java.
| TreeNode org.nexusformat.nxvalidate.NXNodeMapper.getParent | ( | ) |
Definition at line 556 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.isDocument(), org.nexusformat.nxvalidate.NXNodeMapper.isRoot(), and org.nexusformat.nxvalidate.NXNodeMapper.NXNodeMapper().
Referenced by org.nexusformat.nxvalidate.TreeUtils.hideGoodNodes(), and org.nexusformat.nxvalidate.NXNodeMapper.removeFromParent().

| Document org.nexusformat.nxvalidate.NXNodeMapper.getReducedDoc | ( | ) |
Initially the Nexus file is converted to a reduced (all data removed) XML document via the Nexus convert command.
This method gets the W3C DOM document of the reduced XML file.
Definition at line 228 of file NXNodeMapper.java.
| File org.nexusformat.nxvalidate.NXNodeMapper.getReducedFile | ( | ) |
Get the resultant file produced after NXConvert has been run on the NXS file (reduced to XML).
Definition at line 173 of file NXNodeMapper.java.
Referenced by org.nexusformat.nxvalidate.FileActions.saveResults().
| Document org.nexusformat.nxvalidate.NXNodeMapper.getResultsDoc | ( | ) |
Get the resultant DOM document produced after the validation procedure has been performed.
Definition at line 209 of file NXNodeMapper.java.
| File org.nexusformat.nxvalidate.NXNodeMapper.getResultsFile | ( | ) |
Get the resultant file produced after the validation procedure has been performed.
Definition at line 191 of file NXNodeMapper.java.
Referenced by org.nexusformat.nxvalidate.FileActions.saveResults(), and org.nexusformat.nxvalidate.TreeUtils.setValidated().
| NXNodeMapper org.nexusformat.nxvalidate.NXNodeMapper.getRoot | ( | ) |
Definition at line 584 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.isDocument(), org.nexusformat.nxvalidate.NXNodeMapper.isRoot(), and org.nexusformat.nxvalidate.NXNodeMapper.NXNodeMapper().
Referenced by org.nexusformat.nxvalidate.XMLTreeRenderer.getTreeCellRendererComponent().

| boolean org.nexusformat.nxvalidate.NXNodeMapper.getValidatedNode | ( | ) |
If a node has been validated then we can indicate the fact with a boolean flag.
The flag is set to true if the node has been validated.
Definition at line 301 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.checkValidatedNode().

| String org.nexusformat.nxvalidate.NXNodeMapper.getValue | ( | ) |
Each node of the reduced XML document may have a value associated with it.
This method returns that value as a string.
Definition at line 671 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.isRoot().
Referenced by org.nexusformat.nxvalidate.TextPaneStyle.updateTextPane().

| boolean org.nexusformat.nxvalidate.NXNodeMapper.getWarnNode | ( | ) |
If a node in the reduced XML document fails one of the schematron report tests then the node can be marked as a warning node with a boolean flag.
The flag is set to true if the node failed one of the tests.
Definition at line 281 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.checkWarnNode().
Referenced by org.nexusformat.nxvalidate.XMLTreeRenderer.getTreeCellRendererComponent(), and org.nexusformat.nxvalidate.TextPaneStyle.updateTextPane().

| boolean org.nexusformat.nxvalidate.NXNodeMapper.hasBadChildren | ( | ) |
Check to see if the node has any vary bad kids, return true if it has.
Definition at line 769 of file NXNodeMapper.java.
Referenced by org.nexusformat.nxvalidate.XMLTreeRenderer.getTreeCellRendererComponent().
| void org.nexusformat.nxvalidate.NXNodeMapper.insert | ( | MutableTreeNode | child, |
| int | index | ||
| ) |
Definition at line 843 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.isRoot(), and org.nexusformat.nxvalidate.NXNodeMapper.NXNodeMapper().

| boolean org.nexusformat.nxvalidate.NXNodeMapper.isDocument | ( | ) |
Check to see if this node is a document, i.e the list of nodes directly under the root node that are the open NXS documents.
Definition at line 120 of file NXNodeMapper.java.
Referenced by org.nexusformat.nxvalidate.NXNodeMapper.getParent(), org.nexusformat.nxvalidate.NXNodeMapper.getRoot(), org.nexusformat.nxvalidate.NXNodeMapper.NXNodeMapper(), and org.nexusformat.nxvalidate.NXNodeMapper.setDocument().
| boolean org.nexusformat.nxvalidate.NXNodeMapper.isLeaf | ( | ) |
Definition at line 548 of file NXNodeMapper.java.
Referenced by org.nexusformat.nxvalidate.NXNodeMapper.NXNodeMapper().
| boolean org.nexusformat.nxvalidate.NXNodeMapper.isRoot | ( | ) |
Check to see if this node is the root node.
Definition at line 110 of file NXNodeMapper.java.
Referenced by org.nexusformat.nxvalidate.NXNodeMapper.checkBadChildren(), org.nexusformat.nxvalidate.NXNodeMapper.checkBadNode(), org.nexusformat.nxvalidate.NXNodeMapper.checkValidatedNode(), org.nexusformat.nxvalidate.NXNodeMapper.checkWarnNode(), org.nexusformat.nxvalidate.NXNodeMapper.getAttributeList(), org.nexusformat.nxvalidate.NXNodeMapper.getChildAt(), org.nexusformat.nxvalidate.NXNodeMapper.getChildCount(), org.nexusformat.nxvalidate.NXNodeMapper.getIndex(), org.nexusformat.nxvalidate.NXNodeMapper.getNodeDiagAtts(), org.nexusformat.nxvalidate.NXNodeMapper.getNodeDiags(), org.nexusformat.nxvalidate.NXNodeMapper.getNodeTests(), org.nexusformat.nxvalidate.NXNodeMapper.getNodeTexts(), org.nexusformat.nxvalidate.NXNodeMapper.getParent(), org.nexusformat.nxvalidate.NXNodeMapper.getRoot(), org.nexusformat.nxvalidate.NXNodeMapper.getValue(), org.nexusformat.nxvalidate.NXNodeMapper.insert(), org.nexusformat.nxvalidate.NXNodeMapper.NXNodeMapper(), org.nexusformat.nxvalidate.NXNodeMapper.remove(), and org.nexusformat.nxvalidate.NXNodeMapper.removeFromParent().
| void org.nexusformat.nxvalidate.NXNodeMapper.remove | ( | int | index | ) |
Definition at line 870 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.isRoot().

| void org.nexusformat.nxvalidate.NXNodeMapper.remove | ( | MutableTreeNode | node | ) |
Definition at line 896 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.isRoot(), and org.nexusformat.nxvalidate.NXNodeMapper.NXNodeMapper().

| void org.nexusformat.nxvalidate.NXNodeMapper.removeAllNodes | ( | ) |
Removes the list of nodes that represent the Nexus documents that are open i.e.
that have been reduced.
Definition at line 760 of file NXNodeMapper.java.
| void org.nexusformat.nxvalidate.NXNodeMapper.removeFromParent | ( | ) |
Definition at line 923 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.getParent(), org.nexusformat.nxvalidate.NXNodeMapper.isRoot(), and org.nexusformat.nxvalidate.NXNodeMapper.NXNodeMapper().

| void org.nexusformat.nxvalidate.NXNodeMapper.resetNode | ( | ) |
Resets the various properties of a node, i.e flag to indicate that it is a bad node, the text for the tests that failed etc.
Definition at line 409 of file NXNodeMapper.java.
| void org.nexusformat.nxvalidate.NXNodeMapper.setBadNode | ( | boolean | badNode | ) |
If a node in the reduced XML document fails one of the schematron tests then the node can be marked as a bad node with a boolean flag.
The flag is set to true if the node failed one of the tests.
| badNode | true if the node failed one of the schematron tests. |
Definition at line 248 of file NXNodeMapper.java.
| void org.nexusformat.nxvalidate.NXNodeMapper.setDocument | ( | boolean | isDocument | ) |
Set the flag that says that this node is a documents node i.e.
one of the list of nodes directly under the root node that are the open NXS documents.
| isDocument | a flag which is true if the node is a document node. |
Definition at line 129 of file NXNodeMapper.java.
References org.nexusformat.nxvalidate.NXNodeMapper.isDocument().

| void org.nexusformat.nxvalidate.NXNodeMapper.setNXDLFile | ( | File | nxdlFile | ) |
Set the NXDL file belonging to the root node.
Should not be set.
| nxdlFile | the NXDL file as a File object. |
Definition at line 163 of file NXNodeMapper.java.
| void org.nexusformat.nxvalidate.NXNodeMapper.setParent | ( | MutableTreeNode | newParent | ) |
Definition at line 936 of file NXNodeMapper.java.
| void org.nexusformat.nxvalidate.NXNodeMapper.setReducedDoc | ( | Document | reducedDoc | ) |
Initially the Nexus file is converted to a reduced (all data removed) XML document via the Nexus convert command.
This method sets the W3C DOM document of the reduced XML file.
| reducedDoc | the W3C DOM document of the reduced XML file. |
Definition at line 238 of file NXNodeMapper.java.
| void org.nexusformat.nxvalidate.NXNodeMapper.setReducedFile | ( | File | reducedFile | ) |
Set the resultant file produced after NXConvert has been run on the NXS file.
| reducedFile | the NXConvert reduced file. |
Definition at line 182 of file NXNodeMapper.java.
| void org.nexusformat.nxvalidate.NXNodeMapper.setResultsDoc | ( | Document | resultsDoc | ) |
Get the resultant DOM document produced after the validation procedure has been performed.
| resultsDoc | the validation results DOM document. |
Definition at line 218 of file NXNodeMapper.java.
| void org.nexusformat.nxvalidate.NXNodeMapper.setResultsFile | ( | File | resultsFile | ) |
Get the resultant file produced after the validation procedure has been performed.
| resultsFile | the validation results file. |
Definition at line 200 of file NXNodeMapper.java.
| void org.nexusformat.nxvalidate.NXNodeMapper.setRoot | ( | NXNodeMapper | root | ) |
Set the root node that this node belongs to.
| root | the root node. |
Definition at line 137 of file NXNodeMapper.java.
| void org.nexusformat.nxvalidate.NXNodeMapper.setUserObject | ( | Object | object | ) |
Definition at line 939 of file NXNodeMapper.java.
| void org.nexusformat.nxvalidate.NXNodeMapper.setValidatedNode | ( | boolean | validatedNode | ) |
If a node has been validated then we can indicate the fact with a boolean flag.
The flag is set to true if the node has been validated.
| validatedNode | true if the node has been validated. |
Definition at line 291 of file NXNodeMapper.java.
| void org.nexusformat.nxvalidate.NXNodeMapper.setWarnNode | ( | boolean | warnNode | ) |
If a node in the reduced XML document fails one of the schematron report tests then the node can be marked as a warning node with a boolean flag.
The flag is set to true if the node failed one of the tests.
| warnNode | true if the node failed one of the schematron tests. |
Definition at line 270 of file NXNodeMapper.java.
| String org.nexusformat.nxvalidate.NXNodeMapper.toString | ( | ) |
Definition at line 470 of file NXNodeMapper.java.
1.8.6