MCPcopy Create free account

hub / github.com/amouat/diffxml / functions

Functions307 in github.com/amouat/diffxml

↓ 163 callersMethodcreateDocument
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 callersMethodgetPartner
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 callersMethodapply
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 callersMethodeasyMatch
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 callersMethodequals
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 callersMethodoutputXML
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 callersMethodsize
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 callersMethodgetXPath
Get the XPath child number. @return XPath child number of associated node.
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:124
↓ 20 callersMethodsetInOrder
Mark the node as being "inorder". @param n the node to mark as "inorder"
src/java/org/diffxml/diffxml/fmes/NodeOps.java:55
↓ 19 callersMethodadd
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 callersMethodisText
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 callersMethodgetDOM
Get the DOM child number. @return DOM child number of associated node.
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:83
↓ 14 callersMethodgetDocument
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 callersMethodgetSequence
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 callersMethodpop
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 callersMethodtestXPathForNode
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 callersMethodcreate
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 callersMethodgetXPath
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 callersMethodcheckIfSameNode
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 callersMethodgetInOrderXPath
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 callersMethodgetXPathCharPos
Get the XPath child number. @return XPath child number of associated node.
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:97
↓ 9 callersMethodgetInOrderXPathCharPos
Get the XPath child number. @return XPath child number of associated node.
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:110
↓ 9 callersMethodgetLocalName
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 callersMethoddelete
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 callersMethodisInOrder
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 callersMethodisMatched
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 callersMethodnodeIsEmptyText
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 callersMethodtestCreatingNodeDepth
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 callersMethodgetCharInsertPosition
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 callersMethodgetDOMInsertPosition
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 callersMethodgetInOrderDOM
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 callersMethodgetXPathInsertPosition
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 callersMethodinsertNode
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 callersMethodpush
Adds a Node to the Fifo. @param n the Node to added
src/java/org/diffxml/diffxml/fmes/NodeFifo.java:61
↓ 6 callersMethodsetOutOfOrder
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 callersMethodcompareXPathResult
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 callersMethodgetDOMIgnoring
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 callersMethodgetLCS
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 callersMethodgetOpValue
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 callersMethodinitParser
Sets various features on the DOM Parser. @param parserFactory The parser to be set up
src/java/org/diffxml/diffxml/DOMOps.java:265
↓ 5 callersMethodinsert
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 callersMethodisNamespaceAttr
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 callersMethodmove
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 callersMethodaddChildrenOfNode
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 callersMethoddeleteText
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 callersMethodgetDocument
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 callersMethodgetElementsOfNodeList
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 callersMethodgetXPathCharPosIgnoring
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 callersMethodgetXPathIgnoring
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 callersMethodoutputDebug
Outputs debug message for node. @param n The Node to output debug on
src/java/org/diffxml/diffxml/fmes/delta/DULDelta.java:349
↓ 3 callersMethodcreateDiff
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 callersMethoddiff
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 callersMethodgetDepth
Returns the depth value. @return The current depth value
src/java/org/diffxml/diffxml/fmes/NodeDepth.java:116
↓ 3 callersMethodgetNameFromAttr
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 callersMethodgetNameSpaceFromAttr
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 callersMethodgetNamedNode
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 callersMethodgetNode
Returns the underlying node. @return The Node.
src/java/org/diffxml/diffxml/fmes/NodeDepth.java:125
↓ 3 callersMethodgetNodeAsStringDeep
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 callersMethodinsertAsChild
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 callersMethodisDebug
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 callersMethodisEmpty
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 callersMethodoutputDebug
Outputs debug information.
src/java/org/diffxml/diffxml/fmes/EditScript.java:404
↓ 3 callersMethodprevNodeIsATextNode
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 callersMethodremove
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 callersMethodalignChildren
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 callersMethodcalculateInOrderXPathChildNumberAndPosition
Sets the XPath child number and text position.
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:252
↓ 2 callersMethodcalculateXPathChildNumberAndPosition
Sets the XPath child number and text position.
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:243
↓ 2 callersMethodcompareElements
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 callersMethoddiff
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 callersMethodgetCharPos
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 callersMethodgetDOMChildNo
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 callersMethodgetLengthFromAttr
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 callersMethodgetNamedParent
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 callersMethodgetNodeAsString
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 callersMethodgetNodeFromXPath
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 callersMethodincIndex
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 callersMethodinitialiseAndOrderNodes
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 callersMethodinsert
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 callersMethodisResolveEntities
Gets whether external entities should be resolved. @return True if external entities are resolved.
src/java/org/diffxml/diffxml/DiffFactory.java:464
↓ 2 callersMethodmarkChildrenInOrder
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 callersMethodmarkChildrenOutOfOrder
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 callersMethodnodesAreTextNodes
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 callersMethodprintHelp
Output help and exit.
src/java/org/diffxml/patchxml/PatchXML.java:161
↓ 2 callersMethodprintHelpAndExit
Outputs brief help message to standard out and exits.
src/java/org/diffxml/diffxml/DiffXML.java:146
↓ 2 callersMethodprintSoftware
Output details of other software used in diffxml and patchxml.
src/java/org/diffxml/patchxml/PatchXML.java:188
↓ 2 callersMethodprintUsage
Outputs usage message to standard error.
src/java/org/diffxml/diffxml/DiffXML.java:137
↓ 2 callersMethodprintVersion
Output version and exit.
src/java/org/diffxml/patchxml/PatchXML.java:203
↓ 2 callersMethodprintVersionAndExit
Outputs the current version of diffxml to standard out.
src/java/org/diffxml/diffxml/DiffXML.java:164
↓ 2 callersMethodsetBrief
Only report if files differ, do not output differences. @param brief Sets brief output
src/java/org/diffxml/diffxml/DiffFactory.java:148
↓ 2 callersMethodsetDUL
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 callersMethodsetFMES
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 callersMethodaddAttrsToDelta
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 callersMethodcalculateDOMChildNumber
Calculates the DOM index of the node.
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:209
↓ 1 callersMethodcalculateDepth
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 callersMethodcalculateInOrderDOMChildNumber
Calculates the "in order" DOM child number of the node.
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:226
↓ 1 callersMethodcalculateInOrderXPathChildNumber
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 callersMethodcalculateInOrderXPathTextPosition
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 callersMethodcalculateXPathChildNumber
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 callersMethodcalculateXPathTextPosition
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 callersMethodcheckFilesExistAndWarn
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