|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.palo.api.subsets.filter.AliasFilter
public class AliasFilter
AliasFilter
An alias filter belongs to the category of affective filters.
The influenced filters are namely the TextFilter
and
SortingFilter
. When used the alias Attribute
is used to
filter subset elements.
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 | |
---|---|
AliasFilter(Dimension dimension)
Deprecated. use AliasFilter(Hierarchy) instead. |
|
AliasFilter(Dimension dimension,
AliasFilterSetting setting)
Deprecated. use AliasFilter(Hierarchy, AliasFilterSetting) instead. |
|
AliasFilter(Hierarchy hierarchy)
Creates a new AliasFilter instance for the given
hierarchy |
|
AliasFilter(Hierarchy hierarchy,
AliasFilterSetting setting)
Creates a new AliasFilter 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! |
AliasFilter |
copy()
Creates a deep copy of this subset filter |
void |
filter(java.util.List<ElementNode> elements)
|
java.lang.String |
getAlias(Element element)
Returns the alias name to use for the given Element |
Dimension |
getDimension()
|
int[] |
getEffectiveFilter()
Returns the filter types which are affected by this filter. |
Hierarchy |
getHierarchy()
Convenient method to access the subset hierarchy. |
AliasFilterSetting |
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 AliasFilter(Dimension dimension)
AliasFilter(Hierarchy)
instead.
AliasFilter
instance for the given
dimension
dimension
- the dimension to create the filter forpublic AliasFilter(Hierarchy hierarchy)
AliasFilter
instance for the given
hierarchy
hierarchy
- the hierarchy to create the filter forpublic AliasFilter(Dimension dimension, AliasFilterSetting setting)
AliasFilter(Hierarchy, AliasFilterSetting)
instead.
AliasFilter
instance for the given
dimension with the given settings
dimension
- the dimension to create the filter forsetting
- the filter settings to usepublic AliasFilter(Hierarchy hierarchy, AliasFilterSetting setting)
AliasFilter
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 AliasFilter copy()
SubsetFilter
copy
in interface SubsetFilter
public final int[] getEffectiveFilter()
EffectiveFilter
getEffectiveFilter
in interface EffectiveFilter
public final java.lang.String getAlias(Element element)
Element
element
- the Element
to get the alias for
public final int getType()
SubsetFilter
getType
in interface SubsetFilter
public final void initialize()
SubsetFilter
initialize
in interface SubsetFilter
public final AliasFilterSetting getSettings()
SubsetFilter
getSettings
in interface SubsetFilter
public void filter(java.util.List<ElementNode> elements)
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 |