Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/amouat/diffxml
/ functions
Functions
307 in github.com/amouat/diffxml
⨍
Functions
307
◇
Types & classes
40
↓ 163 callers
Method
createDocument
Create an XML Document from a string of XML. Calls fail if any exception is thrown. @param xml The XML to turn into a document. @return A DOM docume
src/test/org/diffxml/diffxml/TestDocHelper.java:57
↓ 66 callers
Method
getPartner
Returns the partner of a given node. Returns null if the node does not exist. @param n the node to find the partner of. @return the partne
src/java/org/diffxml/diffxml/fmes/NodePairs.java:110
↓ 36 callers
Method
apply
Apply DUL patch to XML document. @param doc the XML document to be patched @param patch the DUL patch @throws PatchFormatException if there is an e
src/java/org/diffxml/patchxml/DULPatch.java:851
↓ 36 callers
Method
easyMatch
Performs fast match algorithm on given DOM documents. TODO: May want to consider starting at same point in 2nd tree somehow, may lead to better mat
src/java/org/diffxml/diffxml/fmes/Match.java:76
↓ 26 callers
Method
equals
Determines if two NodeInfo objects are equal. Just calls equals on the underlying nodes. @param o NodeInfo to compare with @return True if nodes are
src/java/org/diffxml/diffxml/fmes/NodeDepth.java:90
↓ 24 callers
Method
outputXML
Writes given XML document to given stream. Uses UTF8 encoding, preserves spaces. Adds XML declaration with standalone set to "yes". @param doc DOM d
src/java/org/diffxml/diffxml/DOMOps.java:74
↓ 23 callers
Method
size
Get the number of nodes stored. Note that this includes both nodes and partners. @return The number of nodes stored.
src/java/org/diffxml/diffxml/fmes/NodePairs.java:134
↓ 21 callers
Method
getXPath
Get the XPath child number. @return XPath child number of associated node.
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:124
↓ 20 callers
Method
setInOrder
Mark the node as being "inorder". @param n the node to mark as "inorder"
src/java/org/diffxml/diffxml/fmes/NodeOps.java:55
↓ 19 callers
Method
add
Adds a pair of nodes to the set. Sets UserData as matched. @param x first node @param y partner of first node
src/java/org/diffxml/diffxml/fmes/NodePairs.java:50
↓ 19 callers
Method
isText
Tests if the given node is a text or CDATA node. @param node The node to test @return True if the type is TEXT_NODE or CDATA_SECTION_NODE
src/java/org/diffxml/diffxml/DOMOps.java:325
↓ 15 callers
Method
getDOM
Get the DOM child number. @return DOM child number of associated node.
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:83
↓ 14 callers
Method
getDocument
Get the XML Document for the EditScript. @return The EditScript as an XML document.
src/java/org/diffxml/diffxml/fmes/delta/DeltaIF.java:76
↓ 14 callers
Method
getSequence
Gets the nodes in set1 which have matches in set2. @param set1 the first set of nodes @param set2 the set of nodes to match against @param
src/java/org/diffxml/diffxml/fmes/NodeSequence.java:51
↓ 14 callers
Method
pop
Remove a Node from the Fifo. This Node is always the oldest item in the array. @return the oldest item in the Fifo
src/java/org/diffxml/diffxml/fmes/NodeFifo.java:82
↓ 13 callers
Method
testXPathForNode
Helper method for testGetXPath. Gets the XPath for the node and evaluates it, checking if the same node is returned. DocumentType nodes are ignored
src/test/org/diffxml/diffxml/fmes/NodeOpsTest.java:86
↓ 12 callers
Method
create
Creates an Edit Script conforming to matchings that transforms doc1 into doc2. Uses algorithm in "Change Detection in Hierarchically Structured Infor
src/java/org/diffxml/diffxml/fmes/EditScript.java:96
↓ 11 callers
Method
getXPath
Calculates an XPath that uniquely identifies the given node. For text nodes note that the given node may only be part of the returned node due to coal
src/java/org/diffxml/diffxml/fmes/NodeOps.java:114
↓ 10 callers
Method
checkIfSameNode
Check if nodes are the same. Does not test if data equivalent, but if same node in same doc. TODO: Handle null cases. @param x first node to check @
src/java/org/diffxml/diffxml/fmes/NodeOps.java:101
↓ 10 callers
Method
getInOrderXPath
Get the in-order XPath child number. Only counts nodes marked in-order. @return In-order XPath child number of associated node.
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:139
↓ 10 callers
Method
getXPathCharPos
Get the XPath child number. @return XPath child number of associated node.
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:97
↓ 9 callers
Method
getInOrderXPathCharPos
Get the XPath child number. @return XPath child number of associated node.
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:110
↓ 9 callers
Method
getLocalName
Gets the local name of the node if not null, else just the node name. Avoids issues with getLocalName returning null. @param n Node to get the name
src/java/org/diffxml/diffxml/fmes/NodeOps.java:202
↓ 7 callers
Method
delete
Adds a delete operation to the EditScript for the given Node. @param n The Node that is to be deleted
src/java/org/diffxml/diffxml/fmes/delta/DeltaIF.java:50
↓ 7 callers
Method
isInOrder
Check if node is marked "inorder". Note that nodes are inorder by default. @param n node to check @return false if UserData set to False, true other
src/java/org/diffxml/diffxml/fmes/NodeOps.java:77
↓ 7 callers
Method
isMatched
Check if node is marked "matched". Made static so that I can use a instance method later if it is faster or better. @param n node to check @return t
src/java/org/diffxml/diffxml/fmes/NodePairs.java:79
↓ 7 callers
Method
nodeIsEmptyText
Check if node is an empty text node. @param n The Node to test. @return True if it is a 0 sized text node
src/java/org/diffxml/diffxml/fmes/NodeOps.java:156
↓ 7 callers
Method
testCreatingNodeDepth
Helper method for testing nodes. @param n The node to test @param expectedDepth The expected depth of the node
src/test/org/diffxml/diffxml/fmes/NodeDepthTest.java:58
↓ 6 callers
Method
getCharInsertPosition
Returns the character position to insert the node as. @return The character position to insert the node at
src/java/org/diffxml/diffxml/fmes/FindPosition.java:142
↓ 6 callers
Method
getDOMInsertPosition
Returns the DOM number the node should have when inserted. @return the DOM number to insert the node as
src/java/org/diffxml/diffxml/fmes/FindPosition.java:124
↓ 6 callers
Method
getInOrderDOM
Get the in-order DOM child number. Only counts nodes marked in-order. @return In-order DOM child number of associated node.
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:154
↓ 6 callers
Method
getXPathInsertPosition
Returns the XPath number the node should have when inserted. @return The XPath number to insert the node as
src/java/org/diffxml/diffxml/fmes/FindPosition.java:133
↓ 6 callers
Method
insertNode
Insert a node under parent node at given position. @param siblings the NodeList to insert the node into @param parent the parent to insert the node
src/java/org/diffxml/patchxml/DULPatch.java:436
↓ 6 callers
Method
push
Adds a Node to the Fifo. @param n the Node to added
src/java/org/diffxml/diffxml/fmes/NodeFifo.java:61
↓ 6 callers
Method
setOutOfOrder
Mark the node as not being "inorder". @param n the node to mark as not "inorder"
src/java/org/diffxml/diffxml/fmes/NodeOps.java:65
↓ 5 callers
Method
compareXPathResult
Compares the result of the xpath expression to the expected Node n. Also tests children. @param n The expected result node @param xpath The expressi
src/test/org/diffxml/diffxml/fmes/NodeOpsTest.java:106
↓ 5 callers
Method
getDOMIgnoring
Gets the DOM index of a node, ignoring the given node. @param n The node to ignore @return The DOM index of the node, ignoring n
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:401
↓ 5 callers
Method
getLCS
Gets the Longest Common Subsequence for the given Node arrays. "Matched" Nodes are considered equal. The returned nodes are from s1. TODO: Check for
src/java/org/diffxml/diffxml/fmes/NodeSequence.java:85
↓ 5 callers
Method
getOpValue
Get the value associated with the operation node. Returns an empty sting if no value. @param op the operation node @throws PatchFormatException if t
src/java/org/diffxml/patchxml/DULPatch.java:239
↓ 5 callers
Method
initParser
Sets various features on the DOM Parser. @param parserFactory The parser to be set up
src/java/org/diffxml/diffxml/DOMOps.java:265
↓ 5 callers
Method
insert
Adds an insert operation to the EditScript. @param n The node to insert @param parent The Node to be parent of n @param childno The child number of t
src/java/org/diffxml/diffxml/fmes/delta/DeltaIF.java:60
↓ 5 callers
Method
isNamespaceAttr
Returns true if the attribute is namespace declaration. Takes a node to avoid casts. @param n Attribute to check if namespace declaration @return Tr
src/java/org/diffxml/diffxml/fmes/NodeOps.java:219
↓ 5 callers
Method
move
Adds a Move operation to the EditScript. @param n The node being moved @param parent XPath to the new parent Node @param childno Child number of the
src/java/org/diffxml/diffxml/fmes/delta/DeltaIF.java:42
↓ 4 callers
Method
addChildrenOfNode
Adds the children of a node to the fifo. TODO: Check use of isBanned() @param x the node whose children are to be added
src/java/org/diffxml/diffxml/fmes/NodeFifo.java:101
↓ 4 callers
Method
deleteText
Delete the appropriate amount of text from a Node. Assumes delNode is the start of the text. @param delNode the text node to delete text from @param
src/java/org/diffxml/patchxml/DULPatch.java:595
↓ 4 callers
Method
getDocument
Reads a file into an XML document. Note configuration of parser as in initParser. @param f The file to be read into an XML document @return The DOM
src/java/org/diffxml/diffxml/DOMOps.java:294
↓ 4 callers
Method
getElementsOfNodeList
Returns the NodeList as an array of Nodes. @param nodeList The NodeList to convert @return A Node[] representing the NodeList.
src/java/org/diffxml/diffxml/DOMOps.java:217
↓ 4 callers
Method
getXPathCharPosIgnoring
Gets the XPath character position of a node, ignoring the given node. @param n The node to ignore @return The DOM index of the node, ignoring n
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:435
↓ 4 callers
Method
getXPathIgnoring
Returns the XPath position, ignoring the given node. @param n The node to ignore @return The XPath position of the node ignoring n
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:367
↓ 4 callers
Method
outputDebug
Outputs debug message for node. @param n The Node to output debug on
src/java/org/diffxml/diffxml/fmes/delta/DULDelta.java:349
↓ 3 callers
Method
createDiff
Creates an instance of the appropriate Diff engine. Currently only FMES, may be more in future. @return a difference engine meeting implementing the
src/java/org/diffxml/diffxml/DiffFactory.java:475
↓ 3 callers
Method
diff
Differences two files. Returns a patch document representing the differences. The document will have only one empty element if the documents are ide
src/java/org/diffxml/diffxml/Diff.java:59
↓ 3 callers
Method
getDepth
Returns the depth value. @return The current depth value
src/java/org/diffxml/diffxml/fmes/NodeDepth.java:116
↓ 3 callers
Method
getNameFromAttr
Get value of name attribute. @param attrs attributes of operation node @return the value of the name attribute @throws PatchFormatException If the n
src/java/org/diffxml/patchxml/DULPatch.java:165
↓ 3 callers
Method
getNameSpaceFromAttr
Get value of namespace attribute. Returns null if not existent, does not throw exception. @param attrs attributes of operation node @return the valu
src/java/org/diffxml/patchxml/DULPatch.java:187
↓ 3 callers
Method
getNamedNode
Gets the node pointed to by the "node" attribute. @param doc document being patched @param opAttrs attributes of operation node @throws PatchForm
src/java/org/diffxml/patchxml/DULPatch.java:745
↓ 3 callers
Method
getNode
Returns the underlying node. @return The Node.
src/java/org/diffxml/diffxml/fmes/NodeDepth.java:125
↓ 3 callers
Method
getNodeAsStringDeep
Gets the string representation of a Node and its children. Catches possible IOExceptions and rethrows as unchecked. @param n The Node to get the Stri
src/java/org/diffxml/diffxml/DOMOps.java:179
↓ 3 callers
Method
insertAsChild
Inserts a given node as numbered child of a parent node. If childNum doesn't exist the node is simply appended. @param childNum the position to add
src/java/org/diffxml/diffxml/DOMOps.java:240
↓ 3 callers
Method
isDebug
If debug mode is on, extra debug info is output. @return True if debug is on
src/java/org/diffxml/diffxml/DiffFactory.java:176
↓ 3 callers
Method
isEmpty
Checks if the Fifo contains any objects. @return true if there are any objects in the Fifo
src/java/org/diffxml/diffxml/fmes/NodeFifo.java:71
↓ 3 callers
Method
outputDebug
Outputs debug information.
src/java/org/diffxml/diffxml/fmes/EditScript.java:404
↓ 3 callers
Method
prevNodeIsATextNode
Tests if previous node is a text node. @param siblings siblings of current node @param index index of current node @return true if previous node i
src/java/org/diffxml/patchxml/DULPatch.java:329
↓ 3 callers
Method
remove
Remove a node and it's partner from the list of matchings. @param n The Node to remove
src/java/org/diffxml/diffxml/fmes/NodePairs.java:143
↓ 2 callers
Method
alignChildren
Aligns children of current node that are not in order. @param w the match of the current node. @param x the current node @param matchings the set
src/java/org/diffxml/diffxml/fmes/EditScript.java:378
↓ 2 callers
Method
calculateInOrderXPathChildNumberAndPosition
Sets the XPath child number and text position.
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:252
↓ 2 callers
Method
calculateXPathChildNumberAndPosition
Sets the XPath child number and text position.
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:243
↓ 2 callers
Method
compareElements
Compares two elements to determine whether they should be matched. xmlns attributes are ignored. TODO: This method is critical in getting good resul
src/java/org/diffxml/diffxml/fmes/Match.java:165
↓ 2 callers
Method
diff
Calls fmes diff on two files. @return The delta @param file1 The original file @param file2 The modified file @throws DiffException If someth
src/java/org/diffxml/diffxml/fmes/Fmes.java:93
↓ 2 callers
Method
getCharPos
Get value of charpos attribute. Defaults to 1 if not present. @param opAttrs attributes of operation node @return the value of charpos @throws Patch
src/java/org/diffxml/patchxml/DULPatch.java:306
↓ 2 callers
Method
getDOMChildNo
Get the DOM Child number of a node using "childno" attribute. If attribute doesn't exist, assumes childno = 1. @param opAttrs the attributes of the
src/java/org/diffxml/patchxml/DULPatch.java:478
↓ 2 callers
Method
getLengthFromAttr
Get value of length attribute. @param attrs attributes of operation node @return the value of the length attr @throws PatchFormatException If the len
src/java/org/diffxml/patchxml/DULPatch.java:137
↓ 2 callers
Method
getNamedParent
Gets the node pointed to by the "parent" attribute. @param doc document being patched @param opAttrs attributes of operation node @throws PatchFo
src/java/org/diffxml/patchxml/DULPatch.java:692
↓ 2 callers
Method
getNodeAsString
Gets the string representation of a Node but not its children. Catches possible IOExceptions and rethrows as unchecked. @param n The Node to get the
src/java/org/diffxml/diffxml/DOMOps.java:198
↓ 2 callers
Method
getNodeFromXPath
Returns the node pointed to by a given xPath. @param doc document being patched @param xPath xPath to the node @throws PatchFormatException if ther
src/java/org/diffxml/patchxml/DULPatch.java:719
↓ 2 callers
Method
incIndex
Determines whether XPath index should be incremented. Handles differences between DOM index and XPath index @param i The current position in sibling
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:170
↓ 2 callers
Method
initialiseAndOrderNodes
Returns a list of Nodes sorted according to their depths. Does NOT include root or documentElement TreeSet is sorted in reverse order of depth accor
src/java/org/diffxml/diffxml/fmes/Match.java:348
↓ 2 callers
Method
insert
Appends an insert operation to the EditScript given the inserted node, XPath to parent, character position & child number. Set charpos to 1 if not ne
src/java/org/diffxml/diffxml/fmes/delta/DULDelta.java:150
↓ 2 callers
Method
isResolveEntities
Gets whether external entities should be resolved. @return True if external entities are resolved.
src/java/org/diffxml/diffxml/DiffFactory.java:464
↓ 2 callers
Method
markChildrenInOrder
Mark the children of a node in order. @param n the parent of the nodes to mark in order
src/java/org/diffxml/diffxml/fmes/EditScript.java:316
↓ 2 callers
Method
markChildrenOutOfOrder
Mark the children of a node out of order. @param n the parent of the nodes to mark out of order
src/java/org/diffxml/diffxml/fmes/EditScript.java:303
↓ 2 callers
Method
nodesAreTextNodes
Determines whether the given Nodes are all text nodes or not. @param nodes The Nodes to checks. @return true if all the given Nodes are text nodes
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:191
↓ 2 callers
Method
printHelp
Output help and exit.
src/java/org/diffxml/patchxml/PatchXML.java:161
↓ 2 callers
Method
printHelpAndExit
Outputs brief help message to standard out and exits.
src/java/org/diffxml/diffxml/DiffXML.java:146
↓ 2 callers
Method
printSoftware
Output details of other software used in diffxml and patchxml.
src/java/org/diffxml/patchxml/PatchXML.java:188
↓ 2 callers
Method
printUsage
Outputs usage message to standard error.
src/java/org/diffxml/diffxml/DiffXML.java:137
↓ 2 callers
Method
printVersion
Output version and exit.
src/java/org/diffxml/patchxml/PatchXML.java:203
↓ 2 callers
Method
printVersionAndExit
Outputs the current version of diffxml to standard out.
src/java/org/diffxml/diffxml/DiffXML.java:164
↓ 2 callers
Method
setBrief
Only report if files differ, do not output differences. @param brief Sets brief output
src/java/org/diffxml/diffxml/DiffFactory.java:148
↓ 2 callers
Method
setDUL
Sets whether the DUL output format is used. @param useDUL If true, the DUL output format is used.
src/java/org/diffxml/diffxml/DiffFactory.java:437
↓ 2 callers
Method
setFMES
Sets whether the FMES algorithm is used. @param useFMES If true, the FMES algorithm is used.
src/java/org/diffxml/diffxml/DiffFactory.java:419
↓ 1 callers
Method
addAttrsToDelta
Adds inserts for attributes of a node to an EditScript. @param attrs the attributes to be added @param path the path to the nod
src/java/org/diffxml/diffxml/fmes/delta/DULDelta.java:124
↓ 1 callers
Method
calculateDOMChildNumber
Calculates the DOM index of the node.
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:209
↓ 1 callers
Method
calculateDepth
Calculates the depth of a Node. The root Node is at depth 0. @param node The Node to calculate the depth of @return The depth of the node
src/java/org/diffxml/diffxml/fmes/NodeDepth.java:63
↓ 1 callers
Method
calculateInOrderDOMChildNumber
Calculates the "in order" DOM child number of the node.
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:226
↓ 1 callers
Method
calculateInOrderXPathChildNumber
Set the in-order XPath child number of the node. @return The DOM index of the node in its siblings
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:309
↓ 1 callers
Method
calculateInOrderXPathTextPosition
Calculate the character position of the node. @param domIndex The DOM index of the node in its siblings.
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:346
↓ 1 callers
Method
calculateXPathChildNumber
Set the XPath child number of the node. @return The DOM index of the node in its siblings
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:281
↓ 1 callers
Method
calculateXPathTextPosition
Calculate the character position of the node. @param domIndex The DOM index of the node in its siblings.
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:263
↓ 1 callers
Method
checkFilesExistAndWarn
Checks if input files exist. Outputs error message if input not found. @return True only if both files are found.
src/java/org/diffxml/patchxml/PatchXML.java:218
next →
1–100 of 307, ranked by callers