edu.UCL.satin.impl.arch.attribute
Class MatchAttribute
java.lang.Object
edu.UCL.satin.arch.attribute.GenericAttribute
edu.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
Method Summary |
boolean |
equals(java.lang.Object obj)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filter
private MatchFilter filter
MatchAttribute
public MatchAttribute(java.lang.Object key,
java.lang.Object value,
MatchFilter filter)
- Creates a new FilterAttribute
- Parameters:
key
- The key of the attributevalue
- The value of the attribute that will be used by the filter to do the comparisonfilter
- 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 attributefilter
- The actual filter that does the comparison
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class GenericAttribute