skrueger
Class AttributeMetaDataAttributeTypeFilter
java.lang.Object
skrueger.AttributeMetaDataAttributeTypeFilter
- All Implemented Interfaces:
- AttributeTypeFilter
public class AttributeMetaDataAttributeTypeFilter
- extends Object
- implements AttributeTypeFilter
Implements an AttributeTypeFilter
using the
visible-property of an
AttributeMetaData
map (or array).
If this filter is created from a null
map or null
array,
the filter accepts ALL attributes except geometries.
- Version:
- 1.0
- Author:
- Martin Schmitz (University of Bonn/Germany)
- See Also:
AttributeTypeFilter.NO_GEOMETRY
Method Summary |
boolean |
accept(AttributeType type,
int idx)
Returns true if the attribute meta data at index idx is
visible and the attribute is no geometry at all. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
attrMetaDataMap
protected Map<Integer,AttributeMetaData> attrMetaDataMap
- The meta data of a set of attributes
AttributeMetaDataAttributeTypeFilter
public AttributeMetaDataAttributeTypeFilter(AttributeMetaData[] attrMetaData)
- Creates a new filter.
- Parameters:
attrMetaData
- the meta data of some attributes
AttributeMetaDataAttributeTypeFilter
public AttributeMetaDataAttributeTypeFilter(Map<Integer,AttributeMetaData> attrMetaData)
- Creates a new filter.
- Parameters:
attrMetaData
- the meta data of some attributes
accept
public boolean accept(AttributeType type,
int idx)
- Returns
true
if the attribute meta data at index idx
is
visible and the attribute is no geometry at all.
- Specified by:
accept
in interface AttributeTypeFilter
- Parameters:
type
- ein Attribut-Typidx
- der Index des Attributs