|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.palo.api.subsets.filter.DataFilter
public class DataFilter
DataFilter
A data filter is a restrictive filter as well as an affective filter.
It is restrictive in the sense that elements which go into the subset can be
filtered out based on their corresponding cell values of a selected source
cube. It is affective in the sense that this filter can influence the
SortingFilter
.
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 | |
---|---|
DataFilter(Dimension dimension,
DataFilterSetting setting)
Deprecated. use DataFilter(Hierarchy, DataFilterSetting) instead. |
|
DataFilter(Dimension dimension,
java.lang.String sourceCube)
Deprecated. use DataFilter(Hierarchy, String) instead. |
|
DataFilter(Hierarchy hierarchy,
DataFilterSetting setting)
Creates a new DataFilter instance for the given
hierarchy with the given settings |
|
DataFilter(Hierarchy hierarchy,
java.lang.String sourceCube)
Creates a new DataFilter instance for the given
hierarchy |
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! |
DataFilter |
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()
|
int[] |
getEffectiveFilter()
Returns the filter types which are affected by this filter. |
Hierarchy |
getHierarchy()
Convenient method to access the subset hierarchy. |
DataFilterSetting |
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 DataFilter(Dimension dimension, java.lang.String sourceCube)
DataFilter(Hierarchy, String)
instead.
DataFilter
instance for the given
dimension
dimension
- the dimension to create the filter forpublic DataFilter(Hierarchy hierarchy, java.lang.String sourceCube)
DataFilter
instance for the given
hierarchy
hierarchy
- the hierarchy to create the filter forpublic DataFilter(Dimension dimension, DataFilterSetting setting)
DataFilter(Hierarchy, DataFilterSetting)
instead.
DataFilter
instance for the given
dimension with the given settings
dimension
- the dimension to create the filter forsetting
- the filter settings to usepublic DataFilter(Hierarchy hierarchy, DataFilterSetting setting)
DataFilter
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 DataFilter copy()
SubsetFilter
copy
in interface SubsetFilter
public final int getType()
SubsetFilter
getType
in interface SubsetFilter
public final void initialize()
SubsetFilter
initialize
in interface SubsetFilter
public final DataFilterSetting 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[] getEffectiveFilter()
EffectiveFilter
getEffectiveFilter
in interface EffectiveFilter
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 |