skrueger
Class AttributeMetaDataAttributeTypeFilter

java.lang.Object
  extended by 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

Field Summary
protected  AttributeMetadataMap attrMetaDataMap
          The meta data of a set of attributes
 
Fields inherited from interface schmitzm.geotools.feature.AttributeTypeFilter
ALL, NO_GEOMETRY
 
Constructor Summary
AttributeMetaDataAttributeTypeFilter(AttributeMetadata[] attrMetaData)
          Creates a new filter.
AttributeMetaDataAttributeTypeFilter(AttributeMetadataMap attrMetaData)
          Creates a new filter.
 
Method Summary
 boolean accept(AttributeDescriptor type)
          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
 

Field Detail

attrMetaDataMap

protected AttributeMetadataMap attrMetaDataMap
The meta data of a set of attributes

Constructor Detail

AttributeMetaDataAttributeTypeFilter

public AttributeMetaDataAttributeTypeFilter(AttributeMetadata[] attrMetaData)
Creates a new filter.

Parameters:
attrMetaData - the meta data of some attributes

AttributeMetaDataAttributeTypeFilter

public AttributeMetaDataAttributeTypeFilter(AttributeMetadataMap attrMetaData)
Creates a new filter.

Parameters:
attrMetaData - the meta data of some attributes
Method Detail

accept

public boolean accept(AttributeDescriptor type)
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-Typ