|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.adt.topology.provider.impl.TopologyComparatorImpl
public abstract class TopologyComparatorImpl
TopologyComparatorImpl provides a default implementation of TopologyComparator with full support of all architected features such as recursive compare and filtering. A Provider implementation extends this class, and may choose to customize the behavior of the comparator by adding filters in its' constructor, or providing custom code for post-filtering and result formatting.
Constructor Summary | |
---|---|
TopologyComparatorImpl()
|
Method Summary | |
---|---|
void |
applyFilter(ComparatorFilter filter)
Allows specification of filters to be applied to the compare() function. |
protected void |
clearFilters()
|
void |
clearResults()
Clears the result set so that the comparator instance may be reused. |
java.util.Collection |
compare(TopologyObject o1,
TopologyObject o2,
boolean recurse)
Compares the topology starting at the specified TopologyObject objects. |
protected java.util.Collection |
filterResults()
Post-filter the compare results to filter out irrelevant differences. |
AdditionalInfo |
getAdditionalInfo(java.lang.Object po)
Gather additional information about a given PropertyObject so that it may be reflected in the comparator output. |
ComparatorFilter[] |
getFilters()
Returns an array containing all of the currently applied filters. |
java.util.Collection |
getResults()
Returns the result set of the previous compare opertain in the form of a collection of Object[2] arrays. |
java.io.OutputStream |
resultsToXml(org.w3c.dom.Element compareInputXml)
Formats the result to an xml file in the form as defined by TopologyComparator.xsd. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TopologyComparatorImpl()
Method Detail |
---|
public java.util.Collection compare(TopologyObject o1, TopologyObject o2, boolean recurse) throws TopologyComparatorException, TopologyException
TopologyComparator
compare
in interface TopologyComparator
o1
- reference TopologyObjecto2
- delta TopologyObjectrecurse
- specifes whether to recurse the topology
TopologyComparatorException
TopologyException
public java.util.Collection getResults()
TopologyComparator
getResults
in interface TopologyComparator
public void clearResults()
TopologyComparator
clearResults
in interface TopologyComparator
public void applyFilter(ComparatorFilter filter)
TopologyComparator
applyFilter
in interface TopologyComparator
protected void clearFilters()
public ComparatorFilter[] getFilters()
TopologyComparator
getFilters
in interface TopologyComparator
public java.io.OutputStream resultsToXml(org.w3c.dom.Element compareInputXml) throws TopologyComparatorException
TopologyComparator
resultsToXml
in interface TopologyComparator
compareInputXml
- if specified, the element is copied into the reulting output
xml.
TopologyComparatorException
protected java.util.Collection filterResults() throws TopologyException, TopologyComparatorException
TopologyComparatorException
TopologyException
public AdditionalInfo getAdditionalInfo(java.lang.Object po)
getAdditionalInfo
in interface TopologyComparator
po
- specifies the PropertyObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |