|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.io.gml.writer.internal.geometry.writers.AbstractPathMatcher
public abstract class AbstractPathMatcher
Abstract pattern based path matcher
Constructor Summary | |
---|---|
AbstractPathMatcher()
|
Method Summary | |
---|---|
void |
addBasePattern(String pattern)
Add a base pattern. |
void |
addVerificationPattern(Pattern pattern)
Add a verification pattern. |
void |
addVerificationPattern(String pattern)
Add a verification pattern. |
static Descent |
descend(XMLStreamWriter writer,
Pattern descendPattern,
TypeDefinition elementType,
QName elementName,
String defaultNs,
boolean unique)
Descend the given pattern |
DefinitionPath |
match(TypeDefinition type,
DefinitionPath basePath,
String defaultNs)
Matches the type against the encoding patterns. |
protected abstract boolean |
verifyEndPoint(TypeDefinition endPoint)
Verify the verification end point. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractPathMatcher()
Method Detail |
---|
public void addBasePattern(String pattern)
pattern
- the pattern stringPattern.parse(String)
public void addVerificationPattern(String pattern)
pattern
- the pattern stringverifyEndPoint(TypeDefinition)
,
Pattern.parse(String)
public void addVerificationPattern(Pattern pattern)
pattern
- the patternverifyEndPoint(TypeDefinition)
,
Pattern.parse(String)
public DefinitionPath match(TypeDefinition type, DefinitionPath basePath, String defaultNs)
type
- the type definitionbasePath
- the definition pathdefaultNs
- the default namespace for the patterns
null
otherwisepublic static Descent descend(XMLStreamWriter writer, Pattern descendPattern, TypeDefinition elementType, QName elementName, String defaultNs, boolean unique) throws XMLStreamException
writer
- the XML stream writerdescendPattern
- the pattern to descendelementType
- the type of the encompassing elementelementName
- the encompassing element namedefaultNs
- the pattern default namespaceunique
- if the path's start element cannot be repeated
XMLStreamException
- if an error occurs writing the coordinatesprotected abstract boolean verifyEndPoint(TypeDefinition endPoint)
TypeDefinition
of the end-point to assure the needed structure is
present (e.g. a DirectPositionListType element). If no verification
pattern is present the end-point of the matched base pattern will be
verified.
endPoint
- the end-point type definition
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |