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

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

public class ExcludeTraitFilter
extends Object
implements AttributeFilter, Serializable

An attribute trait exclude filter for importing and exporting attributes.

Version:
$Id: ExcludeTraitFilter.java,v 1.1 2010-06-29 18:29:33 cvsimp Exp $
Author:
Ilkka Priha
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.norther.tammi.acorn.type.AttributeFilter
DISCARDED
 
Constructor Summary
ExcludeTraitFilter(int mask)
          Constructs a new filter for the traits.
 
Method Summary
 Attribute filter(Object object, String name, Object value)
          Filters an attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExcludeTraitFilter

public ExcludeTraitFilter(int mask)
Constructs a new filter for the traits.

Parameters:
mask - excluded traits mask.
Method Detail

filter

public Attribute filter(Object object,
                        String name,
                        Object value)
Description copied from interface: AttributeFilter
Filters an attribute. This method is called when transporting attributes.

Specified by:
filter in interface AttributeFilter
Parameters:
object - the object importing or exporting the attribute.
name - the name of the attribute.
value - the value of the attribute.
Returns:
the filtered attribute or null if unchanged.


Copyright © 2004 The Norther Organization. All rights reserved.