Last update: 2011-06-23

org.proteios.core
Class DefaultAttributeFilter

java.lang.Object
  extended by org.proteios.core.DefaultAttributeFilter
All Implemented Interfaces:
AttributeFilter

public class DefaultAttributeFilter
extends Object
implements AttributeFilter

A filter for basic item attributes. We want attributes to be shown and ordered consistently thus we specify attribute order and default visibility here. You should avoid having different order of attributes depending on class. Always try to make a good tradeoff when dealing with common attributes over several classes.

Author:
gregory

Constructor Summary
DefaultAttributeFilter()
           
 
Method Summary
 List<String> getDefaultOrder()
          Get a list of overall order of all attributes.
 boolean isDefault(AttributeDefinition attribute)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAttributeFilter

public DefaultAttributeFilter()
Method Detail

isDefault

public boolean isDefault(AttributeDefinition attribute)
Specified by:
isDefault in interface AttributeFilter
Returns:
true if this attribute is considered a default, false otherwise

getDefaultOrder

public List<String> getDefaultOrder()
Get a list of overall order of all attributes.

Specified by:
getDefaultOrder in interface AttributeFilter
Returns:
List A list of overall order of all attributes.

Last update: 2011-06-23