Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.align.model.condition.impl
Class GeometryCondition

java.lang.Object
  extended by eu.esdihumboldt.hale.common.align.model.condition.impl.GeometryCondition
All Implemented Interfaces:
EntityCondition<Type>, TypeCondition

public class GeometryCondition
extends Object
implements TypeCondition

Type condition that checks if it's geometry and optionally for certain geometry types.

Author:
Simon Templer

Constructor Summary
GeometryCondition()
          Default constructor
GeometryCondition(Collection<Class<? extends com.vividsolutions.jts.geom.Geometry>> bindings, boolean allowConversion, boolean allowCollection)
          Create a geometry condition that checks for certain geometry types.
 
Method Summary
 boolean accept(Type entity)
          Determines if the given entity matches the constraint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeometryCondition

public GeometryCondition()
Default constructor


GeometryCondition

public GeometryCondition(Collection<Class<? extends com.vividsolutions.jts.geom.Geometry>> bindings,
                         boolean allowConversion,
                         boolean allowCollection)
Create a geometry condition that checks for certain geometry types.

Parameters:
bindings - the allowed geometry bindings, null for any
allowConversion - if conversion is allowed regarding the geometry binding check (only applicable if bindings is not null)
allowCollection - if a collection of geometries is allowed regarding the geometry binding check (only applicable if bindings is not null)
Method Detail

accept

public boolean accept(Type entity)
Description copied from interface: EntityCondition
Determines if the given entity matches the constraint

Specified by:
accept in interface EntityCondition<Type>
Parameters:
entity - the entity
Returns:
if the entity matches the constraint
See Also:
EntityCondition.accept(Entity)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d