Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.io.gml.reader.internal.instance
Class StreamGmlHelper

java.lang.Object
  extended by eu.esdihumboldt.hale.io.gml.reader.internal.instance.StreamGmlHelper

public abstract class StreamGmlHelper
extends Object

Utility methods for instances from XMLStreamReaders

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

Constructor Summary
StreamGmlHelper()
           
 
Method Summary
static Instance parseInstance(XMLStreamReader reader, TypeDefinition type, Integer indexInStream, boolean strict, Integer srsDimension, CRSProvider crsProvider, TypeDefinition parentType, List<QName> propertyPath)
          Parses an instance with the given type from the given XML stream reader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamGmlHelper

public StreamGmlHelper()
Method Detail

parseInstance

public static Instance parseInstance(XMLStreamReader reader,
                                     TypeDefinition type,
                                     Integer indexInStream,
                                     boolean strict,
                                     Integer srsDimension,
                                     CRSProvider crsProvider,
                                     TypeDefinition parentType,
                                     List<QName> propertyPath)
                              throws XMLStreamException
Parses an instance with the given type from the given XML stream reader.

Parameters:
reader - the XML stream reader, the current event must be the start element of the instance
type - the definition of the instance type
indexInStream - the index of the instance in the stream or null
strict - if associating elements with properties should be done strictly according to the schema, otherwise a fall-back is used trying to populate values also on invalid property paths
srsDimension - the dimension of the instance or null
crsProvider - CRS provider in case no CRS is specified, may be null
parentType - the type of the topmost instance
propertyPath - the property path down from the topmost instance, may be null
Returns:
the parsed instance
Throws:
XMLStreamException - if parsing the instance failed

Humboldt Alignment Editor 2.5.0

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