org.norther.tammi.core.rt.util
Class ExcludeFilter

java.lang.Object
  extended by org.norther.tammi.core.rt.util.ExcludeFilter
All Implemented Interfaces:
AttributeFilter

public class ExcludeFilter
extends Object
implements AttributeFilter

An exclude filter for importing and exporting attributes.

Author:
Ilkka Priha

Constructor Summary
ExcludeFilter(Collection coll)
          Constructs a new filter.
 
Method Summary
 Attribute filter(Variable var, Attribute attribute)
          Filters an attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExcludeFilter

public ExcludeFilter(Collection coll)
Constructs a new filter. The collection must contain excluded attribute names.

Parameters:
coll - excluded attribute names.
Method Detail

filter

public Attribute filter(Variable var,
                        Attribute attribute)
Description copied from interface: AttributeFilter
Filters an attribute. This method is called within the importAttributes and exportAttributes methods of Variable.

Specified by:
filter in interface AttributeFilter
Parameters:
var - the variable importing or exporting the attribute.
attribute - the attribute to filter.
Returns:
the filtered attribute or null if discarded.


Copyright © 2004 The Norther Organization. All rights reserved.