com.ibm.adt.topology.comparator
Class PropertyValueSubstitutionFilter

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

public final class PropertyValueSubstitutionFilter
extends ComparatorFilter

The PropertyValueSubstitutionFilter 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 property values 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. Typical use case for this filter would be to specify them in pairs to mask out portions of property values that are system dependent (e.g. hostname) when comparing 2 sets of objects.


Constructor Summary
PropertyValueSubstitutionFilter(java.lang.String regex, java.lang.String replacement)
          Create an PropertyValueSubstitutionFilter 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

PropertyValueSubstitutionFilter

public PropertyValueSubstitutionFilter(java.lang.String regex,
                                       java.lang.String replacement)
Create an PropertyValueSubstitutionFilter 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