org.deegree.gml.geometry.validation
Class GML3GeometryValidator

java.lang.Object
  extended by org.deegree.commons.xml.XMLAdapter
      extended by org.deegree.gml.geometry.validation.GML3GeometryValidator

public class GML3GeometryValidator
extends XMLAdapter

Takes an XML stream as input (which should provide a GML geometry, GML feature or feature collection document) and validates all contained gml:_Geometry elements (at all levels of the document).

The validator's reaction on topological issues can be customized by providing a GMLValidationEventHandler which is also suitable for generating validation reports.

Version:
$Revision:$, $Date:$
Author:
Markus Schneider , last edited by: $Author:$

Field Summary
 
Fields inherited from class org.deegree.commons.xml.XMLAdapter
DEFAULT_URL, nsContext, rootElement, XLN_NS
 
Constructor Summary
GML3GeometryValidator(GMLVersion version, XMLStreamReaderWrapper xmlStream, GMLValidationEventHandler gmlErrorHandler, int defaultCoordDim)
           
 
Method Summary
 void validateGeometries()
           
 
Methods inherited from class org.deegree.commons.xml.XMLAdapter
evaluateXPath, getElement, getElements, getNamespaceContext, getNode, getNodeAsBigInt, getNodeAsBoolean, getNodeAsDouble, getNodeAsFloat, getNodeAsInt, getNodeAsQName, getNodeAsString, getNodeAsURL, getNodeAsVersion, getNodes, getNodesAsQNames, getNodesAsStrings, getRequiredElement, getRequiredElements, getRequiredNode, getRequiredNodeAsBoolean, getRequiredNodeAsDouble, getRequiredNodeAsFloat, getRequiredNodeAsInteger, getRequiredNodeAsQName, getRequiredNodeAsString, getRequiredNodeAsURL, getRequiredNodeAsVersion, getRequiredNodes, getRootElement, getSchemas, getSystemId, hasSchemas, load, load, load, load, load, load, load, maybeWriteElement, maybeWriteElementNS, parseBoolean, parseDouble, parseFloat, parseInt, parseQName, parseSimpleLink, parseURL, resolve, setRootElement, setSystemId, toString, writeElement, writeElement, writeElement, writeElement, writeElement, writeOptionalAttribute, writeOptionalElement, writeOptionalNSAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GML3GeometryValidator

public GML3GeometryValidator(GMLVersion version,
                             XMLStreamReaderWrapper xmlStream,
                             GMLValidationEventHandler gmlErrorHandler,
                             int defaultCoordDim)
Parameters:
version - either GMLVersion.GML_30, GMLVersion.GML_31 or GMLVersion.GML_32
xmlStream -
gmlErrorHandler -
defaultCoordDim - defaultValue for coordinate dimension, only used when a posList is parsed and no dimension information from CRS is available (unknown CRS)
Method Detail

validateGeometries

public void validateGeometries()
                        throws XMLStreamException,
                               UnknownCRSException
Throws:
XMLStreamException
UnknownCRSException


Copyright © 2011. All Rights Reserved.