Class AttributeTypeFilter
- java.lang.Object
-
- com.vividsolutions.jump.workbench.ui.AttributeTypeFilter
-
public class AttributeTypeFilter extends Object
Filter to select attributes or layers based on their attribute types.
-
-
Field Summary
Fields Modifier and Type Field Description static AttributeTypeFilterALL_FILTERAttribute filter includes NUMERIC attributes.static intBOOLEANstatic AttributeTypeFilterBOOLEAN_FILTERAttribute filter includes BOOLEAN attributes.static intDATEstatic AttributeTypeFilterDATE_FILTERAttribute filter includes DATE attributes.static intDOUBLEstatic AttributeTypeFilterDOUBLE_FILTERAttribute filter includes DOUBLE attributes.static intGEOMETRYstatic AttributeTypeFilterGEOMETRY_FILTERAttribute filter includes GEOMETRY attributes.static intINTEGERstatic AttributeTypeFilterINTEGER_FILTERAttribute filter includes INTEGER attributes.static intLONGstatic AttributeTypeFilterLONG_FILTERAttribute filter includes LONG attributes.static AttributeTypeFilterNO_GEOMETRY_FILTERAttribute filter includes NON GEOMETRIC attributes.static AttributeTypeFilterNUMERIC_FILTERAttribute filter includes NUMERIC attributes.static AttributeTypeFilterNUMSTRING_FILTERAttribute filter includes NUMERIC and STRING attributes.static intOBJECTstatic AttributeTypeFilterOBJECT_FILTERAttribute filter includes OBJECT attributes.static intSTRINGstatic AttributeTypeFilterSTRING_FILTERAttribute filter includes STRING attributes.
-
Constructor Summary
Constructors Constructor Description AttributeTypeFilter(int filterType)Create a new Filter filtering objects according to the filter type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>filter(FeatureSchema schema)Filter attributes of a FeatureSchema according to their AttributeType.List<String>filter(Layer layer)List<Layer>filter(LayerManager layerManager)Filter layers from a LayerManager according to AttributeType of their attributes.List<Layer>filter(Collection<Layer> layers)Filter layers from a LayerManager according to AttributeType of their attributes.AttributeTypeFiltergetInverseFilter()Inverse the filter.StringtoString()
-
-
-
Field Detail
-
GEOMETRY
public static final int GEOMETRY
- See Also:
- Constant Field Values
-
STRING
public static final int STRING
- See Also:
- Constant Field Values
-
INTEGER
public static final int INTEGER
- See Also:
- Constant Field Values
-
DOUBLE
public static final int DOUBLE
- See Also:
- Constant Field Values
-
DATE
public static final int DATE
- See Also:
- Constant Field Values
-
OBJECT
public static final int OBJECT
- See Also:
- Constant Field Values
-
BOOLEAN
public static final int BOOLEAN
- See Also:
- Constant Field Values
-
LONG
public static final int LONG
- See Also:
- Constant Field Values
-
GEOMETRY_FILTER
public static final AttributeTypeFilter GEOMETRY_FILTER
Attribute filter includes GEOMETRY attributes.
-
STRING_FILTER
public static final AttributeTypeFilter STRING_FILTER
Attribute filter includes STRING attributes.
-
INTEGER_FILTER
public static final AttributeTypeFilter INTEGER_FILTER
Attribute filter includes INTEGER attributes.
-
DOUBLE_FILTER
public static final AttributeTypeFilter DOUBLE_FILTER
Attribute filter includes DOUBLE attributes.
-
DATE_FILTER
public static final AttributeTypeFilter DATE_FILTER
Attribute filter includes DATE attributes.
-
OBJECT_FILTER
public static final AttributeTypeFilter OBJECT_FILTER
Attribute filter includes OBJECT attributes.
-
BOOLEAN_FILTER
public static final AttributeTypeFilter BOOLEAN_FILTER
Attribute filter includes BOOLEAN attributes.
-
LONG_FILTER
public static final AttributeTypeFilter LONG_FILTER
Attribute filter includes LONG attributes.
-
NO_GEOMETRY_FILTER
public static final AttributeTypeFilter NO_GEOMETRY_FILTER
Attribute filter includes NON GEOMETRIC attributes.
-
NUMERIC_FILTER
public static final AttributeTypeFilter NUMERIC_FILTER
Attribute filter includes NUMERIC attributes.
-
NUMSTRING_FILTER
public static final AttributeTypeFilter NUMSTRING_FILTER
Attribute filter includes NUMERIC and STRING attributes.
-
ALL_FILTER
public static final AttributeTypeFilter ALL_FILTER
Attribute filter includes NUMERIC attributes.
-
-
Method Detail
-
getInverseFilter
public AttributeTypeFilter getInverseFilter()
Inverse the filter.
-
filter
public List<Layer> filter(LayerManager layerManager)
Filter layers from a LayerManager according to AttributeType of their attributes.- Parameters:
layerManager- the Layer Manager to filter- Returns:
- a List of Layers
-
filter
public List<Layer> filter(Collection<Layer> layers)
Filter layers from a LayerManager according to AttributeType of their attributes.- Parameters:
layers- candidate layers to filter- Returns:
- a List of Layers
-
filter
public List<String> filter(FeatureSchema schema)
Filter attributes of a FeatureSchema according to their AttributeType.- Parameters:
schema- the FeatureSchema to Filter- Returns:
- a List of attributes matching the filter criteria
-
-