eu.esdihumboldt.hale.io.gml.reader.internal.instance
Class StreamGmlHelper
java.lang.Object
eu.esdihumboldt.hale.io.gml.reader.internal.instance.StreamGmlHelper
public abstract class StreamGmlHelper
- extends Object
Utility methods for instances from XMLStreamReader
s
- 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 |
StreamGmlHelper
public StreamGmlHelper()
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 instancetype
- the definition of the instance typeindexInStream
- 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 pathssrsDimension
- 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 instancepropertyPath
- the property path down from the topmost instance, may
be null
- Returns:
- the parsed instance
- Throws:
XMLStreamException
- if parsing the instance failed
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d