org.progeeks.geo
Class LayerFilter

java.lang.Object
  extended by org.progeeks.geo.LayerFilter
All Implemented Interfaces:
java.io.Serializable, org.apache.commons.collections.Predicate, TargetedFilter

public class LayerFilter
extends java.lang.Object
implements org.apache.commons.collections.Predicate, TargetedFilter, java.io.Serializable

NodeFilter implementation that returns all GeoFilters that match a certain layer name pattern as defined by a regex expression.

Version:
$Revision: 1.3 $
Author:
Paul Speed
See Also:
Serialized Form

Constructor Summary
LayerFilter()
          Creates a filter that will return all layers.
LayerFilter(java.lang.String regex)
          Creates a filter that will return layers with names matching the specified regex.
 
Method Summary
 boolean evaluate(java.lang.Object node)
          Returns true if the specified object is GeoShape and if its boundary intersects with our query boundary.
 boolean supportsGraph(com.phoenixst.plexus.Graph graph)
          Returns true for any GeospatialGraph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayerFilter

public LayerFilter()
Creates a filter that will return all layers.


LayerFilter

public LayerFilter(java.lang.String regex)
Creates a filter that will return layers with names matching the specified regex.

Method Detail

supportsGraph

public boolean supportsGraph(com.phoenixst.plexus.Graph graph)
Returns true for any GeospatialGraph.

Specified by:
supportsGraph in interface TargetedFilter

evaluate

public boolean evaluate(java.lang.Object node)
Returns true if the specified object is GeoShape and if its boundary intersects with our query boundary.

Specified by:
evaluate in interface org.apache.commons.collections.Predicate


Copyright © 2002-2003 Paul Speed. All Rights Reserved.