eu.esdihumboldt.hale.io.gml.writer.internal.geometry
Class AbstractTypeMatcher<T>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTypeMatcher
public AbstractTypeMatcher()
findCandidates
public List<DefinitionPath> findCandidates(TypeDefinition elementType,
QName elementName,
boolean unique,
T matchParam)
- Find candidates for a possible path
- Parameters:
elementType
- the start element typeelementName
- the start element nameunique
- if the start element cannot be repeatedmatchParam
- 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 definitionmatchParam
- the match parameterpath
- the current definition path
- Returns:
- the (eventually updated) definition path if a match is found,
otherwise
null
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d