A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

A

AbstractDiffHelper - Class in src.main.groovy.com.silly_diff.Infostructure
Parent class for Comparison implementations.
AbstractDiffHelper() - Constructor in AbstractDiffHelper
applyInVars(Map<String, Object>, String) - Method in SqlUtil
Transforms java.util.List of java.lang.String elements into IN('el1', 'el2', .., 'elN') format that can be accepted by SQL processor.

B

C

calcDiff() - Method in AbstractDiffHelper
Most important function of this class that must provide object comparison
calcDiff() - Method in DbDiffHelper
Performs calculation of differences between consumed java.util.List.
calcDiff() - Method in MapDiffHelper
calcDiff() - Method in XmlDiffHelper
Performs calculation of differences between consumed java.util.List of groovy.util.slurpersupport.NodeChild.
compareNodes(NodeChild, Map<String, String>, HashMap<String, ArrayList<Integer>>, Map<String, String>, String) - Method in DbDiffHelper
Performs comparison between specified groovy.util.slurpersupport.NodeChild and java.util.Map.
compareNodes(NodeChild, NodeChild) - Method in XmlDiffHelper
Performs comparison between specified groovy.util.slurpersupport.NodeChild.
compareRows(Map<String, Object>, Map<String, Object>) - Method in MapDiffHelper
createSqlConn(Map) - Method in SqlUtil
Create Sql connection from provided Properties Map

D

DbDiffHelper - Class in src.main.groovy.com.silly_diff.Helpers
Some useful hints for this helper
**********************************************************
For comparing DB with XML that has complicate structure use aliases for columns.
DbDiffHelper(List<NodeChild>, List<Map<String, String>>) - Constructor in DbDiffHelper

E

execute(Sql, String, Map<String, Object>) - Method in SqlUtil
Simple alias for groovy.sql.Sql#rows(Map params, String query) or groovy.sql.Sql#rows(String query) function with couple safety checks.
executeFile(Sql, String, Map<String, Object>) - Method in SqlUtil
Simple alias for groovy.sql.Sql#rows(Map params, String query) or groovy.sql.Sql#rows(String query) function with couple safety checks.

F

G

getDiffString(Boolean) - Method in DbDiffHelper
Returns java.lang.String with XML that shows diff found in specified element
getDiffString(Boolean) - Method in XmlDiffHelper
Returns java.lang.String with XML that shows diff found in specified element
getInParams(Map<String, Object>) - Method in SqlUtil
Searches in provided vars for elements that can be used as SQL IN('el1', 'el2', .., 'elN') parameter.
getOutputElementAsString(Object) - Method in AbstractDiffHelper
Simple alias for groovy.json.JsonOutput#prettyPrint(String jsonPayload) or
groovy.xml.XmlUtil#serialize(groovy.util.slurpersupport.GPathResult node) function.
getOutputListAsString(List) - Method in AbstractDiffHelper
Simple alias for groovy.json.JsonOutput#prettyPrint(String jsonPayload) or
groovy.xml.XmlUtil#serialize(groovy.util.slurpersupport.GPathResult node) function.
getQueryFromFile(String) - Method in SqlUtil
Creates SQL query string from file name.

H

I

ignoreAttrs - Field in XmlDiffHelper
Put java.util.List<java.lang.String> to ignoreAttrs with xmlPath to Attribute(s) that you want to ignore during comparing.
ignoreCommand - Field in XmlDiffHelper
Assign groovy.lang.Closure that accepts 1 groovy.util.slurpersupport.NodeChild parameter to ignoreCommand.
ignoredKeys - Field in MapDiffHelper
ignoredValue - Field in DbDiffHelper
You can exclude some Columns or Nodes from comparison.
ignoreNodes - Field in XmlDiffHelper
Put java.util.List<java.lang.String> to ignoreNodes with xmlPath to Node(s) that you want to ignore during comparing.
ignoreNodesWValues - Field in XmlDiffHelper
Put java.util.Map<java.lang.String, java.lang.String> to ignoreNodesWValues, where
Key - xmlPath to Node(s) that you want to ignore during comparing,
Value - value that specified Node must have to be ignored.
includedNodes - Field in DbDiffHelper
Sometimes it is very complicate to query DB for all parameters under same row.
isAttrInXmlTree(String, NodeChild) - Method in XmlUtil
Step by step comparing groovy.util.slurpersupport.NodeChild#parent() of Xml with elements from listPath.
isNodeInXmlTree(String, NodeChild) - Method in XmlUtil
Step by step comparing groovy.util.slurpersupport.NodeChild#parent() of Xml with elements from listPath
isPathInXmlTree(String, NodeChild, Boolean) - Method in XmlUtil
Step by step comparing groovy.util.slurpersupport.NodeChild#parent() of Xml with elements from listPath.
isSimilar() - Method in AbstractDiffHelper
Simple check if comparison has been completed successfully and getting simple result

J

JsonUtil - Class in src.main.groovy.com.silly_diff.Util
Few JSON functions required for diff application
JsonUtil() - Constructor in JsonUtil

K

L

M

MapDiffHelper - Class in src.main.groovy.com.silly_diff.Helpers
This class is currently under development.
MapDiffHelper(List<Map<String, Object>>, List<Map<String, Object>>) - Constructor in MapDiffHelper
mapXml(NodeChild, String) - Method in XmlUtil
Use this method to create list of Aliases for SQL columns that this class will use for SQL to DB comparison.
modifications1 - Field in AbstractDiffHelper
modifications2 - Field in AbstractDiffHelper

N

needleHelper - Field in XmlDiffHelper
notified - Field in AbstractDiffHelper

O

orderlySafeArrayMode - Field in DbDiffHelper
By default CompareNodes() function works in "NonOrderlySafe" mode.
orderlySafeChildrenMode - Field in XmlDiffHelper
By default compareNodes() works in "OrderlySafe" mode.
orderlySafeMode - Field in DbDiffHelper
By default CalcDiff() function works in "OrderlySafe" mode.
orderlySafeMode - Field in MapDiffHelper
orderlySafeMode - Field in XmlDiffHelper
By default CalcDiff() function works in "NonOrderlySafe" mode.
outputList1 - Field in AbstractDiffHelper
outputList2 - Field in AbstractDiffHelper

P

printMap(Map) - Method in JsonUtil
Simple alias for groovy.json.JsonOutput#prettyPrint(String jsonPayload) function
printNode(NodeChild) - Method in XmlUtil
Simple alias for groovy.xml.XmlUtil#serialize(GPathResult node) function
props - Field in SqlUtil
You can predefine Sql connection parameters.

Q

R

retainNodes() - Method in DbDiffHelper
Performing Diff calculation between consumed java.util.List and deletion from #source1 elements that match with second list.
retainNodes(Boolean) - Method in XmlDiffHelper
Performing Diff calculation between consumed java.util.List of groovy.util.slurpersupport.NodeChild and deletion from source elements that match with second list.

S

setupFromConfig(Map) - Method in AbstractDiffHelper
Setup all input parameters from java.util.Map config file
setupFromConfig(Map) - Method in DbDiffHelper
Automatically scans params for elements that match with names of public parameters of XmlDiffHelper and assigns values to them.
setupFromConfig(Map) - Method in MapDiffHelper
setupFromConfig(Map) - Method in XmlDiffHelper
Automatically scans params for elements that match with names of public parameters of XmlDiffHelper and assigns values to them.
showErrors - Field in AbstractDiffHelper
skipMissedDb - Field in DbDiffHelper
By default system expects to run the most strict version of comparison.
skipMissedXml - Field in DbDiffHelper
By default system expects to run the most strict version of comparison.
source1 - Field in AbstractDiffHelper
source1 - Field in XmlDiffHelper
source2 - Field in AbstractDiffHelper
source2 - Field in XmlDiffHelper
sql - Field in DbDiffHelper
groovy.sql.Sql class that will be used for getting data for DbDiffHelper.includedNodes
SqlUtil - Class in src.main.groovy.com.silly_diff.Util
Few XML functions required for diff application
-----------------------------------------------
You can use SqlUtil.execute for Fast DB query
or perform all operations manually using provided functions for your convenience.
SqlUtil() - Constructor in SqlUtil
subQueryFromFile - Field in DbDiffHelper
When use this class with Included SQL Queries, it may be more convenient to store SQL on disc as separate file rather than provide SQL string.

T

U

V

W

walkJsonByPath(String, Object) - Method in JsonUtil
Searches inside of JSON object for element (another JSON object) that has key equal to element in listPath.
walkXmlByPath(String, NodeChild) - Method in XmlUtil
Step by step looking among groovy.util.slurpersupport.NodeChild#children() of Xml elements with groovy.util.slurpersupport.NodeChild#name()
equals to elements in listPath.
walkXmlByPathForAttr(String, NodeChild) - Method in XmlUtil
Step by step looking among groovy.util.slurpersupport.NodeChild#children() of Xml elements with groovy.util.slurpersupport.NodeChild#name()
equals to elements in listPath.
walkXmlByPathForValue(String, NodeChild) - Method in XmlUtil
Step by step looking among groovy.util.slurpersupport.NodeChild#children() of Xml elements with groovy.util.slurpersupport.NodeChild#name()
equals to elements in listPath.
watchDog - Field in AbstractDiffHelper

X

XmlDiffHelper - Class in src.main.groovy.com.silly_diff.Helpers
Some useful hints for this Helper
***************************************************************************
By default CalcDiff() function works in "NonOrderlySafe" mode.
XmlDiffHelper(List<NodeChild>, List<NodeChild>) - Constructor in XmlDiffHelper
XmlUtil - Class in src.main.groovy.com.silly_diff.Util
Few XML functions required for diff application
XmlUtil() - Constructor in XmlUtil

Y

Z

_

_addSubRowsToParentRow(List<Map<String, String>>, String, Map<String, String>) - Method in DbDiffHelper
_applyModifications(Map<String, String>, String, String) - Method in AbstractDiffHelper
_cleanNewLines(String) - Method in DbDiffHelper
_compareAttrs(Map<String, String>, Map<String, String>, Map<String, List<String>>) - Method in XmlDiffHelper
_compareChildren(List<NodeChild>, List<NodeChild>) - Method in XmlDiffHelper
_compareNodes(NodeChild, Map<String, String>, HashMap<String, ArrayList<Integer>>, Map<String, String>, String, String, Integer) - Method in DbDiffHelper
_createSqlConnProps(String, Map) - Method in SqlUtil
_deleteIgnoredAttrs(NodeChild, List<String>) - Method in XmlDiffHelper
_deleteIgnoredElements(NodeChild) - Method in XmlDiffHelper
_deleteIgnoredNodes(List<NodeChild>, List<NodeChild>) - Method in XmlDiffHelper
_getCommandFromParams(Map, String) - Method in AbstractDiffHelper
_help(String, Object) - Method in JsonUtil
_isAttrIgnorable(NodeChild) - Method in XmlDiffHelper
_isCompleteMatch(Map<String, String>) - Method in DbDiffHelper
_isNodeIgnorable(NodeChild) - Method in XmlDiffHelper
_isNodeInXmlTree(String, NodeChild) - Method in XmlUtil
_list1 - Property in MapDiffHelper
_list2 - Property in MapDiffHelper
_parseColumns(Map<String, String>) - Method in DbDiffHelper
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _