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 AttributeTypeFilter
ALL_FILTER
Attribute filter includes NUMERIC attributes.static int
BOOLEAN
static AttributeTypeFilter
BOOLEAN_FILTER
Attribute filter includes BOOLEAN attributes.static int
DATE
static AttributeTypeFilter
DATE_FILTER
Attribute filter includes DATE attributes.static int
DOUBLE
static AttributeTypeFilter
DOUBLE_FILTER
Attribute filter includes DOUBLE attributes.static int
GEOMETRY
static AttributeTypeFilter
GEOMETRY_FILTER
Attribute filter includes GEOMETRY attributes.static int
INTEGER
static AttributeTypeFilter
INTEGER_FILTER
Attribute filter includes INTEGER attributes.static int
LONG
static AttributeTypeFilter
LONG_FILTER
Attribute filter includes LONG attributes.static AttributeTypeFilter
NO_GEOMETRY_FILTER
Attribute filter includes NON GEOMETRIC attributes.static AttributeTypeFilter
NUMERIC_FILTER
Attribute filter includes NUMERIC attributes.static AttributeTypeFilter
NUMSTRING_FILTER
Attribute filter includes NUMERIC and STRING attributes.static int
OBJECT
static AttributeTypeFilter
OBJECT_FILTER
Attribute filter includes OBJECT attributes.static int
STRING
static AttributeTypeFilter
STRING_FILTER
Attribute 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.AttributeTypeFilter
getInverseFilter()
Inverse the filter.String
toString()
-
-
-
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
-
-