Last update: 2011-06-23

org.proteios.core
Class MinimalAttributeFilter2

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

public class MinimalAttributeFilter2
extends Object
implements AttributeFilter

A minimal 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:
olle

Constructor Summary
MinimalAttributeFilter2()
           
 
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

MinimalAttributeFilter2

public MinimalAttributeFilter2()
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