Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.io.gml.writer.internal.geometry
Class AbstractTypeMatcher<T>

java.lang.Object
  extended by eu.esdihumboldt.hale.io.gml.writer.internal.geometry.AbstractTypeMatcher<T>
Type Parameters:
T - the match parameter type
Direct Known Subclasses:
StreamGeometryWriter

public abstract class AbstractTypeMatcher<T>
extends Object

Abstract type matcher. Finds candidates matching a custom parameter.

Author:
Simon Templer
Partner:
01 / Fraunhofer Institute for Computer Graphics Research

Constructor Summary
AbstractTypeMatcher()
           
 
Method Summary
 List<DefinitionPath> findCandidates(TypeDefinition elementType, QName elementName, boolean unique, T matchParam)
          Find candidates for a possible path
protected abstract  DefinitionPath matchPath(TypeDefinition type, T matchParam, DefinitionPath path)
          Determines if a type definition is compatible with the match parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTypeMatcher

public AbstractTypeMatcher()
Method Detail

findCandidates

public List<DefinitionPath> findCandidates(TypeDefinition elementType,
                                           QName elementName,
                                           boolean unique,
                                           T matchParam)
Find candidates for a possible path

Parameters:
elementType - the start element type
elementName - the start element name
unique - if the start element cannot be repeated
matchParam - the match parameter
Returns:
the path candidates

matchPath

protected abstract DefinitionPath matchPath(TypeDefinition type,
                                            T matchParam,
                                            DefinitionPath path)
Determines if a type definition is compatible with the match parameter

Parameters:
type - the type definition
matchParam - the match parameter
path - the current definition path
Returns:
the (eventually updated) definition path if a match is found, otherwise null

Humboldt Alignment Editor 2.5.0

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