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

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

public class IncludeFilter
extends Object
implements AttributeFilter

An include filter for importing and exporting attributes.

Author:
Ilkka Priha

Constructor Summary
IncludeFilter(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

IncludeFilter

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

Parameters:
coll - included 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.