MCPcopy Create free account

hub / github.com/amouat/diffxml / functions

Functions307 in github.com/amouat/diffxml

↓ 1 callersMethodcompareNodes
Compares 2 nodes to determine whether they should match. TODO: Check if more comparisons are needed TODO: Consider moving out to a separate class, im
src/java/org/diffxml/diffxml/fmes/Match.java:311
↓ 1 callersMethodcompareTextNodes
Compares two text nodes to determine if they should be matched. Takes into account whitespace options. @param a First node @param b
src/java/org/diffxml/diffxml/fmes/Match.java:258
↓ 1 callersMethodcopyNodeToDoc
Copies a node from one Document to another, including attributes but no children. Required as importNode does not handle namespaces well for element
src/java/org/diffxml/diffxml/fmes/NodeOps.java:171
↓ 1 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/DULDelta.java:216
↓ 1 callersMethoddeletePhase
Performs the deletePhase of the algorithm. @param n the current node @param matchings the set of matching nodes
src/java/org/diffxml/diffxml/fmes/EditScript.java:278
↓ 1 callersMethoddoDelete
Apply delete operation. @param doc document to be patched @param op node holding details of delete @throws PatchFormatException if there is an error
src/java/org/diffxml/patchxml/DULPatch.java:759
↓ 1 callersMethoddoInsert
Inserts (the import of) node x as child of z according to the algorithm and updates the Edit Script. @param x current node @param z
src/java/org/diffxml/diffxml/fmes/EditScript.java:201
↓ 1 callersMethoddoInsert
Apply insert operation to document. @param doc the document to be patched @param op the insert operation node @throws PatchFormatException if there
src/java/org/diffxml/patchxml/DULPatch.java:510
↓ 1 callersMethoddoMove
Performs a move operation according to the algorithm and updates the EditScript. @param w the node to be moved @param x the matchin
src/java/org/diffxml/diffxml/fmes/EditScript.java:248
↓ 1 callersMethoddoMove
Apply move operation. @param doc document to be patched @param op node holding details of move @throws PatchFormatException if there is an error par
src/java/org/diffxml/patchxml/DULPatch.java:802
↓ 1 callersMethoddoUpdate
Updates a Node to the value of another node. @param w The Node to be updated @param x The Node to make it like @return The new Node
src/java/org/diffxml/diffxml/fmes/EditScript.java:156
↓ 1 callersMethoddoUpdate
Perform update operation. @param doc The document being patched @param op The update operation node @throws PatchFormatException If the operation is
src/java/org/diffxml/patchxml/DULPatch.java:51
↓ 1 callersMethodequalsOrBothNullOrEmpty
Helper method just checks if String are equal or both null or empty. @param a String to compare to b @param b String to compare to a @return True if
src/java/org/diffxml/diffxml/fmes/Match.java:237
↓ 1 callersMethodgetDOMChildNoFromXPath
Get the DOM Child Number equivalent of the XPath childnumber. @param siblings the NodeList we are interested in @param xpathcn the XPath child numbe
src/java/org/diffxml/patchxml/DULPatch.java:208
↓ 1 callersMethodgetInOrderLeftSibling
Gets the rightmost left sibling of n marked "inorder". @param n Node to find "in order" left sibling of @return Either the "in order" left sibling o
src/java/org/diffxml/diffxml/fmes/FindPosition.java:109
↓ 1 callersMethodgetNewCharPos
Get value of new_charpos attribute. Defaults to 1. @param opAttrs attributes of operation node @return the value of new_charpos
src/java/org/diffxml/patchxml/DULPatch.java:284
↓ 1 callersMethodgetNodeTypeFromAttr
Get value of nodetype attribute. @param attrs attributes of operation node @return the value of nodetype @throws PatchFormatException If the nodetype
src/java/org/diffxml/patchxml/DULPatch.java:112
↓ 1 callersMethodgetOldCharPos
Get value of old_charpos attribute. Defaults to 1. @param opAttrs attributes of operation node @return the value of new_charpos
src/java/org/diffxml/patchxml/DULPatch.java:264
↓ 1 callersMethodgetParentContext
Gets the number of parent and child context nodes used. @return Number of parent and child context nodes.
src/java/org/diffxml/diffxml/DiffFactory.java:385
↓ 1 callersMethodgetParentSiblingContext
Gets the number of parent and child sibling context nodes used. @return Number of parent and child sibling context nodes.
src/java/org/diffxml/diffxml/DiffFactory.java:410
↓ 1 callersMethodgetSiblingContext
Gets the number of sibling context nodes used. @return Number of sibling context nodes.
src/java/org/diffxml/diffxml/DiffFactory.java:362
↓ 1 callersMethodgetTextLength
Returns the length of text of the node plus all following text nodes (TEXT_NODE or CDATA_SECTION_NODE). @param node The node to start at @return The
src/java/org/diffxml/diffxml/DOMOps.java:343
↓ 1 callersMethodinsertAtCharPos
Inserts a node at the given character position. @param charpos the character position to insert at @param siblings the NodeList to insert the node i
src/java/org/diffxml/patchxml/DULPatch.java:344
↓ 1 callersMethodisBanned
Determines if the given node should be ignored. Examines the node's type against settings. @return True if the node is banned, false otherwise @para
src/java/org/diffxml/diffxml/fmes/Fmes.java:59
↓ 1 callersMethodisBrief
If brief mode is on, only reports if files differ, does not output differences. @return True if brief output is on
src/java/org/diffxml/diffxml/DiffFactory.java:158
↓ 1 callersMethodisContext
Gets whether extra context nodes are added to the output. @return True if context nodes are output.
src/java/org/diffxml/diffxml/DiffFactory.java:339
↓ 1 callersMethodisIgnoreAllWhitespace
Gets whether any differences in whitespace should be considered. @return True if whitespace is to be ignored
src/java/org/diffxml/diffxml/DiffFactory.java:193
↓ 1 callersMethodisIgnoreCase
Gets whether differences in case should be considered. @return True if case differences are ignored
src/java/org/diffxml/diffxml/DiffFactory.java:247
↓ 1 callersMethodisIgnoreComments
Gets whether differences in comments should be considered. @return True if differences in comments are ignored
src/java/org/diffxml/diffxml/DiffFactory.java:265
↓ 1 callersMethodisIgnoreLeadingWhitespace
Gets whether differences in leading whitespace should be considered. @return True if leading whitespace is to be ignored
src/java/org/diffxml/diffxml/DiffFactory.java:211
↓ 1 callersMethodisIgnoreProcessingInstructions
Gets whether differences in processing instructions should be considered. @return True if differences in processing instructions are ignored
src/java/org/diffxml/diffxml/DiffFactory.java:284
↓ 1 callersMethodisIgnoreWhitespaceNodes
Gets whether nodes with only whitespace should be considered. @return True if whitespace only nodes are to be ignored
src/java/org/diffxml/diffxml/DiffFactory.java:229
↓ 1 callersMethodisReversePatch
Gets whether extra output is generated to allow reversing of patches. @return True if extra output for reverse patches is generated
src/java/org/diffxml/diffxml/DiffFactory.java:321
↓ 1 callersMethodmakeEmptyEditScript
Prepares an empty Edit Script document. Makes document element, appends any necessary attributes and context information. @return a properly formatt
src/java/org/diffxml/diffxml/fmes/delta/DULDelta.java:82
↓ 1 callersMethodmoveMisalignedNodes
Moves nodes that are not in order to correct position. @param w Node with potentially misaligned children @param wSeq Sequence of children of w that
src/java/org/diffxml/diffxml/fmes/EditScript.java:348
↓ 1 callersMethodoutputDebug
Outputs information on the matches for debug purposes. @param matchSet The set of matching Nodes. @param doc The first document being differenced
src/java/org/diffxml/diffxml/fmes/Match.java:127
↓ 1 callersMethodoutputDoc
Output the patched document to stdout. @param doc the patched document
src/java/org/diffxml/patchxml/PatchXML.java:240
↓ 1 callersMethodoutputXMLIndented
Writes given XML document to given stream. Uses UTF8 encoding, indentation, preserves spaces. Adds XML declaration with standalone set to "yes". @pa
src/java/org/diffxml/diffxml/DOMOps.java:130
↓ 1 callersMethodparseArgs
Checks and interprets the command line arguments. Code is based on Sun standard code for handling arguments. @param args An array of the command
src/java/org/diffxml/diffxml/DiffXML.java:62
↓ 1 callersMethodparseArgs
Parse command line arguments. Sets up file variables and options. @param args array of command line arguments
src/java/org/diffxml/patchxml/PatchXML.java:79
↓ 1 callersMethodprintUsage
Output usage and exit.
src/java/org/diffxml/patchxml/PatchXML.java:153
↓ 1 callersMethodrunFMESTest
Compares the two given files, applies the patch and checks they are the same afterwards. @param fA first file to compare @param fB second file to com
src/test/org/diffxml/diffxml/SuiteRunner.java:61
↓ 1 callersMethodsetDebug
Output extra debug info. @param debug Sets debug output
src/java/org/diffxml/diffxml/DiffFactory.java:167
↓ 1 callersMethodsetMatched
Mark the node as being "matched". @param n the node to mark as "matched"
src/java/org/diffxml/diffxml/fmes/NodePairs.java:66
↓ 1 callersMethodsetNodesInOrder
Marks the Nodes in the given list and their partners "inorder". @param seq the Nodes to mark "inorder" @param matchings the set of matching Nodes
src/java/org/diffxml/diffxml/fmes/EditScript.java:330
↓ 1 callersMethodupdate
Adds an update operation to the EditScript. @param w The node to be updated @param x The node it should be equal to
src/java/org/diffxml/diffxml/fmes/delta/DeltaIF.java:69
↓ 1 callersMethodupdate
Adds an update operation to the delta. @param w The node to update @param x The node to update it to
src/java/org/diffxml/diffxml/fmes/delta/DULDelta.java:282
↓ 1 callersMethodupdateAttributes
Updates the attributes of element w to be the same as x's. Ignores xmlns attributes - these are assumed to be part of the document structure rather t
src/java/org/diffxml/diffxml/fmes/delta/DULDelta.java:309
MethodChildNumber
Default constructor. @param n Node to find the child numbers of
src/java/org/diffxml/diffxml/fmes/ChildNumber.java:65
MethodDOMOps
Private constructor.
src/java/org/diffxml/diffxml/DOMOps.java:59
MethodDULConstants
Private constructor - shouldn't be instantiated.
src/java/org/diffxml/dul/DULConstants.java:32
MethodDULDelta
Creates a new, blank EditScript. @throws DeltaInitialisationException If the EditScript can't be initialised.
src/java/org/diffxml/diffxml/fmes/delta/DULDelta.java:55
MethodDeltaInitialisationException
Constructor. @param e Chained exception
src/java/org/diffxml/diffxml/fmes/delta/DeltaInitialisationException.java:39
MethodDiffException
Constructor. @param e Chained exception
src/java/org/diffxml/diffxml/DiffException.java:40
MethodDiffFactory
Private constructor - shouldn't be called.
src/java/org/diffxml/diffxml/DiffFactory.java:139
MethodDiffXML
Private constructor - shouldn't be called.
src/java/org/diffxml/diffxml/DiffXML.java:51
MethodDocumentCreationException
Constructor. @param e Chained exception
src/java/org/diffxml/diffxml/fmes/DocumentCreationException.java:40
MethodEditScript
Constructor for EditScript. Used to create a list of modifications that will turn doc1 into doc2, given a set of matching nodes. @param doc1 the
src/java/org/diffxml/diffxml/fmes/EditScript.java:78
MethodFindPosition
Finds the child number to insert a node as. (Equivalent to the current child number of the node to insert before) @param x the node with no
src/java/org/diffxml/diffxml/fmes/FindPosition.java:52
MethodMatch
Private constructor.
src/java/org/diffxml/diffxml/fmes/Match.java:59
MethodNodeDepth
Create a NodeDepth for the given node. @param node The node to find the depth of
src/java/org/diffxml/diffxml/fmes/NodeDepth.java:46
MethodNodeFifo
Default constructor.
src/java/org/diffxml/diffxml/fmes/NodeFifo.java:48
MethodNodeOps
Disallow instantiation.
src/java/org/diffxml/diffxml/fmes/NodeOps.java:47
MethodNodeSequence
Do not allow instantiation.
src/java/org/diffxml/diffxml/fmes/NodeSequence.java:40
MethodParserInitialisationException
Constructor. @param e Chained exception
src/java/org/diffxml/diffxml/fmes/ParserInitialisationException.java:38
MethodPatchFormatException
Constructor. @param e Chained exception
src/java/org/diffxml/patchxml/PatchFormatException.java:40
MethodPatchXML
Shouldn't be instantiated.
src/java/org/diffxml/patchxml/PatchXML.java:69
MethodTestDocHelper
Private constructor.
src/test/org/diffxml/diffxml/TestDocHelper.java:45
Methodaccept
Tests whether the given file is a file and ends in "A.xml". @param f The file to be tested @return True if the file meets the criteria
src/test/org/diffxml/diffxml/SuiteRunner.java:43
Methodcompare
Compares two NodeDepth objects. Stores in reverse order of depth. NOT consistent with equals; we only care about depth and it is expensive to compar
src/java/org/diffxml/diffxml/fmes/NodeDepthComparator.java:49
MethodgetDocument
Get the XML Document for the EditScript. @return The EditScript as an XML document.
src/java/org/diffxml/diffxml/fmes/delta/DULDelta.java:69
MethodgetParentFromAttr
Get the parent node pointed to by the parent attribute. @param doc document being patched @param attrs attributes of operation node @return the par
src/java/org/diffxml/patchxml/DULPatch.java:88
MethodhashCode
Hashcode from underlying node. @return hashcode
src/java/org/diffxml/diffxml/fmes/NodeDepth.java:107
MethodisDUL
Gets whether the DUL output format is used. @return True if the DUL output format is used.
src/java/org/diffxml/diffxml/DiffFactory.java:446
MethodisFMES
Gets whether the FMES algorithm is used. @return True if the FMES algorithm is used.
src/java/org/diffxml/diffxml/DiffFactory.java:428
MethodisUseTagnames
Gets whether tagnames should be output instead of node numbers in xpaths. @return True if differences in processing instructions are ignored
src/java/org/diffxml/diffxml/DiffFactory.java:302
Methodmain
Main method. Takes command line arguments, parses them and performs diff. @param args Command line arguments. See printUsageAndExit() for details.
src/java/org/diffxml/diffxml/DiffXML.java:177
Methodmain
Attempt to patch given document with given patch file. TODO: Refactor @param args command line arguments
src/java/org/diffxml/patchxml/PatchXML.java:261
Methodmove
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/DULDelta.java:248
MethodrunSuite
Run all the tests in the suite directory.
src/test/org/diffxml/diffxml/SuiteRunner.java:109
MethodsetContext
If set, adds extra context nodes to output. @param context If true, context nodes are output.
src/java/org/diffxml/diffxml/DiffFactory.java:330
MethodsetIgnoreAllWhitespace
Sets whether any differences in whitespace should be considered. @param ignore If true, whitespace is ignored
src/java/org/diffxml/diffxml/DiffFactory.java:184
MethodsetIgnoreCase
Sets whether differences in case should be considered. @param ignore If true, case differences are ignored
src/java/org/diffxml/diffxml/DiffFactory.java:238
MethodsetIgnoreComments
Sets whether differences in comments should be considered. @param ignore If true, differences in comments are ignored
src/java/org/diffxml/diffxml/DiffFactory.java:256
MethodsetIgnoreLeadingWhitespace
Sets whether differences in leading whitespace should be considered. @param ignore If true, leading whitespace is ignored
src/java/org/diffxml/diffxml/DiffFactory.java:202
MethodsetIgnoreProcessingInstructions
Sets whether differences in processing instructions should be considered. @param ignore If true, differences in processing instructions are
src/java/org/diffxml/diffxml/DiffFactory.java:275
MethodsetIgnoreWhitespaceNodes
Sets whether nodes with only whitespace should be considered. @param ignore If true, whitespace only nodes are ignored
src/java/org/diffxml/diffxml/DiffFactory.java:220
MethodsetParentContext
Sets the number of parent and child context nodes used. This number of both parent and child nodes will be output. @param context Number of parent co
src/java/org/diffxml/diffxml/DiffFactory.java:372
MethodsetParentSiblingContext
Sets the number of parent and child sibling context nodes used. This number of nodes will be output to both sides of parent and child nodes. @param c
src/java/org/diffxml/diffxml/DiffFactory.java:396
MethodsetResolveEntities
Sets whether external entities should be resolved. @param resolve If true, external entities are resolved.
src/java/org/diffxml/diffxml/DiffFactory.java:455
MethodsetReversePatch
If set, adds information needed to reverse patches. @param reverse If true, extra output is generated to allow reversing of patches
src/java/org/diffxml/diffxml/DiffFactory.java:312
MethodsetSiblingContext
Sets the number of sibling context nodes used. These are output to each side of the node. @param context Number of sibling context nodes.
src/java/org/diffxml/diffxml/DiffFactory.java:349
MethodsetUp
Prepares commonly used test elements etc. @throws Exception
src/test/org/diffxml/diffxml/fmes/ChildNumberTest.java:63
MethodsetUp
Set up the DUL EditScript.
src/test/org/diffxml/diffxml/fmes/delta/DULDeltaTest.java:58
MethodsetUpBeforeClass
Set up documents before test.
src/test/org/diffxml/diffxml/fmes/MatchTest.java:65
MethodsetUpBeforeClass
Set up the test docs.
src/test/org/diffxml/diffxml/fmes/NodePairsTest.java:52
MethodsetUpTest
Initialises the test doc.
src/test/org/diffxml/diffxml/fmes/NodeDepthTest.java:44
MethodsetUseTagnames
Sets whether tagnames should be output instead of node numbers in xpaths. @param useTagnames If true, tagnames are output in xpaths
src/java/org/diffxml/diffxml/DiffFactory.java:293
MethodtestAddChildrenOfNode
Test that children of a node are added in the correct order.
src/test/org/diffxml/diffxml/fmes/NodeFifoTest.java:81
MethodtestBug
Test getting XPath with spaced text nodes.
src/test/org/diffxml/diffxml/fmes/NodeOpsTest.java:332
← previousnext →101–200 of 307, ranked by callers