public abstract class StreamGmlHelper extends Object
XMLStreamReader
sConstructor and Description |
---|
StreamGmlHelper() |
Modifier and Type | Method and Description |
---|---|
static Instance |
parseInstance(XMLStreamReader reader,
TypeDefinition type,
Integer indexInStream,
boolean strict,
Integer srsDimension,
CRSProvider crsProvider,
TypeDefinition parentType,
List<QName> propertyPath,
boolean allowNull)
Parses an instance with the given type from the given XML stream reader.
|
public static Instance parseInstance(XMLStreamReader reader, TypeDefinition type, Integer indexInStream, boolean strict, Integer srsDimension, CRSProvider crsProvider, TypeDefinition parentType, List<QName> propertyPath, boolean allowNull) throws XMLStreamException
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
allowNull
- if a null
result is allowednull
if allowNull is
true
XMLStreamException
- if parsing the instance failedBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a