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 Details

    • GEOMETRY

      public static final int GEOMETRY
      See Also:
    • STRING

      public static final int STRING
      See Also:
    • INTEGER

      public static final int INTEGER
      See Also:
    • DOUBLE

      public static final int DOUBLE
      See Also:
    • DATE

      public static final int DATE
      See Also:
    • OBJECT

      public static final int OBJECT
      See Also:
    • BOOLEAN

      public static final int BOOLEAN
      See Also:
    • LONG

      public static final int LONG
      See Also:
    • 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.
  • Constructor Details

    • AttributeTypeFilter

      public AttributeTypeFilter(int filterType)
      Create a new Filter filtering objects according to the filter type.
  • Method Details

    • 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
    • filter

      public List<String> filter(Layer layer)
    • toString

      public String toString()
      Overrides:
      toString in class Object