edu.UCL.satin.impl.arch.attribute
Class MatchAttribute

java.lang.Object
  extended byedu.UCL.satin.arch.attribute.GenericAttribute
      extended byedu.UCL.satin.impl.arch.attribute.MatchAttribute
All Implemented Interfaces:
java.io.Serializable

public class MatchAttribute
extends GenericAttribute

A filter attribute is an immutable GenericAttribute that allows for complex and expressive comparison with other attributes via the use of a filter. By specifying a MatchFilter, the programmer allows SATIN to match attribute values based on the semantics of any filter. The filter is invoked by the equals() method of the FilterAttribute

Author:
Stefanos Zachariadis
See Also:
Serialized Form

Field Summary
private  MatchFilter filter
           
 
Fields inherited from class edu.UCL.satin.arch.attribute.GenericAttribute
immutable, key, value
 
Constructor Summary
MatchAttribute(java.lang.Object key, MatchFilter filter)
          Creates a new FilterAttribute without a value
MatchAttribute(java.lang.Object key, java.lang.Object value, MatchFilter filter)
          Creates a new FilterAttribute
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 
Methods inherited from class edu.UCL.satin.arch.attribute.GenericAttribute
getKey, getValue, setValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filter

private MatchFilter filter
Constructor Detail

MatchAttribute

public MatchAttribute(java.lang.Object key,
                      java.lang.Object value,
                      MatchFilter filter)
Creates a new FilterAttribute

Parameters:
key - The key of the attribute
value - The value of the attribute that will be used by the filter to do the comparison
filter - The actual filter that does the comparison.

MatchAttribute

public MatchAttribute(java.lang.Object key,
                      MatchFilter filter)
Creates a new FilterAttribute without a value

Parameters:
key - The key of the attribute
filter - The actual filter that does the comparison
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class GenericAttribute