|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.palo.api.subsets.filter.AttributeFilter
public class AttributeFilter
AttributeFilter
An attribute filter belongs to the category of restrictive filters.
Subset elements are filtered by their corresponding attribute values.
Therefore the filter setting, AttributeFilterSetting
, defines a
matrix of attribute constraints. An accepted element has to fulfill at least
one row of this matrix. A column of this matrix contains all defined
constraints for one attribute.
Field Summary |
---|
Fields inherited from interface org.palo.api.subsets.SubsetFilter |
---|
TYPE_ALIAS, TYPE_ATTRIBUTE, TYPE_DATA, TYPE_HIERARCHICAL, TYPE_PICKLIST, TYPE_SORTING, TYPE_TEXT |
Constructor Summary | |
---|---|
AttributeFilter(Dimension dimension)
Deprecated. use AttributeFilter(Hierarchy) instead. |
|
AttributeFilter(Dimension dimension,
AttributeFilterSetting setting)
Deprecated. use AttributeFilter(Hierarchy, AttributeFilterSetting) instead. |
|
AttributeFilter(Hierarchy hierarchy)
Creates a new AttributeFilter instance for the given
hierarchy |
|
AttributeFilter(Hierarchy hierarchy,
AttributeFilterSetting setting)
Creates a new AttributeFilter instance for the given
hierarchy with the given settings |
Method Summary | |
---|---|
void |
adapt(SubsetFilter from)
Adapts this subset filter from the given one. |
void |
add(EffectiveFilter filter)
Adds the given EffectiveFilter to the list of all affective
filters which affect this subset filter |
void |
bind(Subset2 subset)
Binds this filter instance to the given Subset2
NOTE: PLEASE DON'T USE! |
AttributeFilter |
copy()
Creates a deep copy of this subset filter |
void |
filter(java.util.Set<Element> elements)
Filters the given list of Element s. |
Dimension |
getDimension()
|
Hierarchy |
getHierarchy()
Convenient method to access the subset hierarchy. |
AttributeFilterSetting |
getSettings()
Returns the internal settings of this filter. |
Subset2 |
getSubset()
Returns the Subset2 to which this filter belongs or
null if this filter isn't bind to a subset yet. |
int |
getType()
Returns the filter type which is one of the defined type constants. |
void |
initialize()
Initializes this filter. |
void |
remove(EffectiveFilter filter)
Removes the given EffectiveFilter from the list of all
affective filters which affect this subset filter |
void |
reset()
Resets this filter, i.e. its internal setting is switched back to its default. |
void |
unbind()
Releases this filter instance from a previously binded Subset2
NOTE: PLEASE DON'T USE! |
void |
validateSettings()
Checks if the internal subset settings are valid. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.palo.api.subsets.SubsetFilter |
---|
adapt, add, bind, getHierarchy, getSubset, remove, reset, unbind |
Constructor Detail |
---|
public AttributeFilter(Dimension dimension)
AttributeFilter(Hierarchy)
instead.
AttributeFilter
instance for the given
dimension
dimension
- the dimension to create the filter forpublic AttributeFilter(Hierarchy hierarchy)
AttributeFilter
instance for the given
hierarchy
hierarchy
- the hierarchy to create the filter forpublic AttributeFilter(Dimension dimension, AttributeFilterSetting setting)
AttributeFilter(Hierarchy, AttributeFilterSetting)
instead.
AttributeFilter
instance for the given
dimension with the given settings
dimension
- the dimension to create the filter forsetting
- the filter settings to usepublic AttributeFilter(Hierarchy hierarchy, AttributeFilterSetting setting)
AttributeFilter
instance for the given
hierarchy with the given settings
hierarchy
- the hierarchy to create the filter forsetting
- the filter settings to useMethod Detail |
---|
public final AttributeFilter copy()
SubsetFilter
copy
in interface SubsetFilter
public final AttributeFilterSetting getSettings()
SubsetFilter
getSettings
in interface SubsetFilter
public final void filter(java.util.Set<Element> elements)
RestrictiveFilter
Element
s.
filter
in interface RestrictiveFilter
elements
- current list of subset elementspublic final int getType()
SubsetFilter
getType
in interface SubsetFilter
public final void initialize()
SubsetFilter
initialize
in interface SubsetFilter
public final void validateSettings() throws PaloIOException
SubsetFilter
validateSettings
in interface SubsetFilter
PaloIOException
- if internal subset settings are not valid.public final void add(EffectiveFilter filter)
SubsetFilter
EffectiveFilter
to the list of all affective
filters which affect this subset filter
add
in interface SubsetFilter
filter
- a filter which affects this subset filter.public final void remove(EffectiveFilter filter)
SubsetFilter
EffectiveFilter
from the list of all
affective filters which affect this subset filter
remove
in interface SubsetFilter
filter
- the affective filter to removepublic final void reset()
SubsetFilter
reset
in interface SubsetFilter
public final Subset2 getSubset()
SubsetFilter
Subset2
to which this filter belongs or
null
if this filter isn't bind to a subset yet.
getSubset
in interface SubsetFilter
Subset2
to which this filter belongs or
null
public final void bind(Subset2 subset)
SubsetFilter
Binds this filter instance to the given Subset2
bind
in interface SubsetFilter
public final void unbind()
SubsetFilter
Releases this filter instance from a previously binded Subset2
unbind
in interface SubsetFilter
public final Dimension getDimension()
public final Hierarchy getHierarchy()
SubsetFilter
getHierarchy
in interface SubsetFilter
public final void adapt(SubsetFilter from)
SubsetFilter
adapt
in interface SubsetFilter
from
- the subset filter to adapt from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |