com.ivata.mask.filter
Interface Filter

All Known Implementing Classes:
FilterImpl

public interface Filter

A mask (or group of masks) can filter its contents. At the moment, you can only filter for the contents of a property inside the mask's bean being equal to a given property.

If the property does not exist, it is assumed to match. This lets you assign filters to groups, which are only applied for those beans which have the matching property.

Since:
ivata masks 0.6 (2005-03-17)
Version:
$Revision: 1.1 $
Author:
Colin MacLeod colin.macleod@ivata.com

Method Summary
 java.lang.Class getPropertyClass()
          Get the class of the property.
 java.lang.String getPropertyName()
          Get the name of the property the filter is searching for.
 java.lang.Object getValue()
          Value the property must have to be matched.
 

Method Detail

getPropertyName

public java.lang.String getPropertyName()
Get the name of the property the filter is searching for.

Returns:
property name to filter for.

getPropertyClass

public java.lang.Class getPropertyClass()
Get the class of the property.

Returns:
class of the property.

getValue

public java.lang.Object getValue()
Value the property must have to be matched. Matches will be made using the equals method of this value, or ==, if the value is null.

Returns:
property value to filter for.


Copyright © 2001-2005 ivata limited. All Rights Reserved.