org.palo.api.subsets.filter.settings
Class AttributeFilterSetting

java.lang.Object
  extended by org.palo.api.subsets.filter.settings.AbstractFilterSettings
      extended by org.palo.api.subsets.filter.settings.AttributeFilterSetting
All Implemented Interfaces:
FilterSetting

public class AttributeFilterSetting
extends AbstractFilterSettings

AttributeFilterSetting

Manages the settings for the AttributeFilter. An AttributeConstraintsMatrix is used to filter out Elements. Therefore an element is accepted if it fulfills at least one row of this matrix.

Version:
$Id: AttributeFilterSetting.html,v 1.5 2009/07/09 11:01:46 ArndHouben Exp $

Constructor Summary
AttributeFilterSetting()
          Creates a new AttributeFilterSetting instance
 
Method Summary
 void adapt(FilterSetting from)
          Adapt the filter setting from the given filter setting.
 void bind(Subset2 subset)
          Binds this filter settings instance to the given Subset2 NOTE: PLEASE DON'T USE!
 ObjectParameter getFilterConstraints()
          Returns the currently used filter constraint parameter.
 boolean hasFilterConsraints()
           
 void reset()
          Resets the filter setting to its defaults.
 void setFilterConstraints(ObjectParameter constraintsParam)
          Adds all filter constraints from the given parameter to this settings.
 void unbind()
          Releases this filter settings instance from a previously binded Subset2 NOTE: PLEASE DON'T USE!
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeFilterSetting

public AttributeFilterSetting()
Creates a new AttributeFilterSetting instance

Method Detail

setFilterConstraints

public final void setFilterConstraints(ObjectParameter constraintsParam)
Adds all filter constraints from the given parameter to this settings. Note that the parameter value should be of type AttributeConstraintsMatrix, otherwise calling this method has no effect!

Parameters:
constraintParam - the new filter constraints

getFilterConstraints

public final ObjectParameter getFilterConstraints()
Returns the currently used filter constraint parameter.

Returns:
the filter constraint parameter

hasFilterConsraints

public final boolean hasFilterConsraints()

adapt

public void adapt(FilterSetting from)
Description copied from interface: FilterSetting
Adapt the filter setting from the given filter setting. After that both settings are the same.

Parameters:
from - the filter setting to adapt from

bind

public final void bind(Subset2 subset)
Description copied from interface: FilterSetting

Binds this filter settings instance to the given Subset2

NOTE: PLEASE DON'T USE! INTERNAL METHOD

Specified by:
bind in interface FilterSetting
Overrides:
bind in class AbstractFilterSettings

unbind

public final void unbind()
Description copied from interface: FilterSetting

Releases this filter settings instance from a previously binded Subset2

NOTE: PLEASE DON'T USE! INTERNAL METHOD

Specified by:
unbind in interface FilterSetting
Overrides:
unbind in class AbstractFilterSettings

reset

public void reset()
Description copied from interface: FilterSetting
Resets the filter setting to its defaults.