|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dtrules.testsupport.ChangeReport
public class ChangeReport
Compares the differences between two versions of a Rule Set. Generally we compare a Rule Set in development against the Rule set currently deployed.
| Nested Class Summary | |
|---|---|
class |
ChangeReport.RulesConfig
|
| Constructor Summary | |
|---|---|
ChangeReport(String ruleSetName,
String path1,
String dtRulesConfig1,
String description1,
String path2,
String dtRulesConfig2,
String description2)
Provides a change report between to Rules Engine Configurations. |
|
| Method Summary | |
|---|---|
String |
compare()
|
void |
compare(OutputStream reportStream)
|
void |
compare(XMLPrinter report)
|
String |
compareDecisionTables()
|
void |
compareDecisionTables(OutputStream reportStream)
|
void |
compareDecisionTables(XMLPrinter report)
|
String |
compareEDD()
|
void |
compareEDD(OutputStream reportStream)
|
void |
compareEDD(XMLPrinter report)
|
String |
compareMapping()
|
void |
compareMapping(OutputStream reportStream)
|
boolean |
compareMapping(XMLPrinter report)
|
static ArrayList<XMLTree.Node> |
findentities(XMLTree.Node root)
|
static ArrayList<XMLTree.Node> |
findMissingNodes(String[] attribs,
ArrayList<XMLTree.Node> dts1,
ArrayList<XMLTree.Node> dts2)
It is interesting to find what nodes have been added, and which have been deleted. |
static ArrayList<XMLTree.Node> |
findMissingNodes(String attrib,
String tag,
ArrayList<XMLTree.Node> dts1,
ArrayList<XMLTree.Node> dts2)
It is interesting to find what nodes have been added, and which have been deleted. |
static ArrayList<XMLTree.Node> |
findnodes(String tag,
XMLTree.Node node,
ArrayList<XMLTree.Node> list)
Find all the nodes in a tree with a particular tag |
static ArrayList<XMLTree.Node> |
findtables(XMLTree.Node root)
|
ChangeReport.RulesConfig |
getRules1()
|
ChangeReport.RulesConfig |
getRules2()
|
void |
reset()
Resets file pointers to all the decision tables, edds, and mapping files. |
static void |
sort(boolean ascending,
Object[] array)
Bubble sort with quick out and a fence ... |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChangeReport(String ruleSetName,
String path1,
String dtRulesConfig1,
String description1,
String path2,
String dtRulesConfig2,
String description2)
path1 - dtRulesConfig1 - description1 - path2 - dtRulesConfig2 - description2 - | Method Detail |
|---|
public ChangeReport.RulesConfig getRules1()
public ChangeReport.RulesConfig getRules2()
public void reset()
public static ArrayList<XMLTree.Node> findtables(XMLTree.Node root)
public static ArrayList<XMLTree.Node> findnodes(String tag,
XMLTree.Node node,
ArrayList<XMLTree.Node> list)
tag - The tag to search fornode - The node in the tree to searchlist - List of nodes with tag names that match. If null, the
list is allocated for you.public static ArrayList<XMLTree.Node> findentities(XMLTree.Node root)
public static ArrayList<XMLTree.Node> findMissingNodes(String[] attribs,
ArrayList<XMLTree.Node> dts1,
ArrayList<XMLTree.Node> dts2)
t1 - t2 - message -
public static ArrayList<XMLTree.Node> findMissingNodes(String attrib,
String tag,
ArrayList<XMLTree.Node> dts1,
ArrayList<XMLTree.Node> dts2)
t1 - t2 - message -
public static void sort(boolean ascending,
Object[] array)
array -
public void compare(XMLPrinter report)
throws Exception
Exception
public void compare(OutputStream reportStream)
throws Exception
Exception
public String compare()
throws Exception
Exception
public String compareDecisionTables()
throws Exception
Exception
public void compareDecisionTables(OutputStream reportStream)
throws Exception
Exception
public void compareDecisionTables(XMLPrinter report)
throws Exception
Exception
public String compareEDD()
throws Exception
Exception
public void compareEDD(OutputStream reportStream)
throws Exception
Exception
public void compareEDD(XMLPrinter report)
throws Exception
Exception
public String compareMapping()
throws Exception
Exception
public void compareMapping(OutputStream reportStream)
throws Exception
Exception
public boolean compareMapping(XMLPrinter report)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||