com.ibm.adt.topology.comparator
Class ObjectNameSubstitutionFilter

java.lang.Object
  extended by com.ibm.adt.topology.comparator.ComparatorFilter
      extended by com.ibm.adt.topology.comparator.ObjectNameSubstitutionFilter

public final class ObjectNameSubstitutionFilter
extends ComparatorFilter

The ObjectNameSubstitutionFilter tells the compare to treat occurances of a given string as having a different value (e.g. ".*cell01.*=.*cell02.*"). This allows the ability to mask out irrelevant portions of object names for the sake of comparing them. The "regex" attribute specifies a regular expression string on which to match, and the "replacement" attribute specifies the value to use in plave of the regex value.


Constructor Summary
ObjectNameSubstitutionFilter(java.lang.String regex, java.lang.String replacement)
          Create an ObjectNameSubstitutionFilter instance with the specified regex and replacement strings.
 
Method Summary
 
Methods inherited from class com.ibm.adt.topology.comparator.ComparatorFilter
equals, getContext, getDescription, getQualifiers, getType, hashCode, setContext, setDescription, setQualifiers, setType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectNameSubstitutionFilter

public ObjectNameSubstitutionFilter(java.lang.String regex,
                                    java.lang.String replacement)
Create an ObjectNameSubstitutionFilter instance with the specified regex and replacement strings.

Parameters:
regex - regular expression to match on
replacement - the replacement string


© Copyright 2006 IBM Corp. 2006 All Rights Reserved