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

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

public class IncludeTraitFilter
extends Object
implements AttributeFilter, Serializable

An attribute trait include filter for importing and exporting attributes.

Version:
$Id: IncludeTraitFilter.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
IncludeTraitFilter(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

IncludeTraitFilter

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

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