public abstract class AbstractOmV20XmlStreamWriter extends XmlStreamWriter<org.n52.shetland.ogc.om.OmObservation>
XmlStreamWriter for writing
OmObservations to streamXML_FRAGMENT| Constructor and Description |
|---|
AbstractOmV20XmlStreamWriter(EncodingContext context,
OutputStream outputStream,
org.n52.shetland.ogc.om.OmObservation element) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkAndWriteDescription() |
protected void |
checkAndWriteIdentifier() |
protected void |
checkAndWriteName() |
protected abstract Optional<String> |
getDefaultFeatureEncodingNamespace() |
protected EncodingContext |
getDocumentAdditionalHelperValues()
Get additional values map with document helper value
|
protected QName |
getDocumentName() |
protected String |
getTimeString(org.n52.shetland.ogc.gml.time.Time time)
Parses the ITime object to a time representation as String
|
void |
write()
Encode and write element to the
OutputStream. |
protected abstract void |
writeAddtitionalNamespaces() |
protected void |
writeDescription(String description)
Write description as gml:descritpion to stream
|
protected void |
writeFeatureOfIntererst()
Write om:featureOfInterest encoded or as xlink:href to stream
|
protected void |
writeIdentifier(org.n52.shetland.ogc.gml.CodeWithAuthority identifier)
Write
CodeWithAuthority as gml:identifier to stream |
protected void |
writeMetadata(Map<String,org.n52.shetland.ogc.om.NamedValue<?>> map,
QName element)
Write extension information
|
protected void |
writeMetaDataProperty(List<org.n52.shetland.ogc.gml.AbstractMetaData> metaDataProperty) |
protected void |
writeName(org.n52.shetland.ogc.gml.CodeType name) |
protected void |
writeObservableProperty()
Write om:observedProperty to stream
|
protected void |
writeObservation(org.n52.shetland.ogc.om.OmObservation observation)
Write
OmObservation XML encoded to stream |
protected void |
writeObservationType(String observationType)
Write observation typ as om:type to stream
|
protected void |
writeParameter()
Write om:parameter to stream
|
protected void |
writePhenomenonTime(org.n52.shetland.ogc.gml.time.Time time)
Write
Time as om:phenomenonTime to stream |
protected void |
writeProcedure()
Write om:procedure encoded or as xlink:href to stream
|
protected void |
writeResult()
write om:result to stream
|
protected void |
writeResultTime()
Write om:resultTime to stream
|
protected void |
writeValidTime(org.n52.shetland.ogc.gml.time.TimePeriod validTime) |
addXlinkHrefAttr, addXlinkTitleAttr, attr, attr, attr, chars, chars, empty, end, end, endInline, finish, flush, getContext, getElement, getEncodeNamespace, getEncoder, getEncoder, getEncoder, getOutputStream, getReplacement, getXmlOptions, isAddSchemaLocation, namespace, rawText, schemaLocation, start, start, time, time, tryGetEncoder, writeXmlObject, writeXmlObjectpublic AbstractOmV20XmlStreamWriter(EncodingContext context, OutputStream outputStream, org.n52.shetland.ogc.om.OmObservation element) throws XMLStreamException
XMLStreamExceptionprotected abstract void writeAddtitionalNamespaces()
throws XMLStreamException
XMLStreamExceptionpublic void write()
throws XMLStreamException,
EncodingException
XmlStreamWriterOutputStream.write in class XmlStreamWriter<org.n52.shetland.ogc.om.OmObservation>XMLStreamException - If an error occurs when writing to OutputStreamEncodingException - If an encoding error occursprotected void writeObservation(org.n52.shetland.ogc.om.OmObservation observation)
throws XMLStreamException,
EncodingException
OmObservation XML encoded to streamobservation - the observationXMLStreamException - If an error occurs when writing to streamEncodingException - If an error occurs when creating elements to be written If an error occurs when
creating elements to be writtenprotected void checkAndWriteIdentifier()
throws XMLStreamException,
EncodingException
XMLStreamExceptionEncodingExceptionprotected void checkAndWriteName()
throws XMLStreamException,
EncodingException
XMLStreamExceptionEncodingExceptionprotected void checkAndWriteDescription()
throws XMLStreamException
XMLStreamExceptionprotected void writeIdentifier(org.n52.shetland.ogc.gml.CodeWithAuthority identifier)
throws EncodingException,
XMLStreamException
CodeWithAuthority as gml:identifier to streamidentifier - CodeWithAuthority to writeEncodingException - If an error occurs when creating elements to be writtenXMLStreamException - If an error occurs when writing to streamprotected void writeName(org.n52.shetland.ogc.gml.CodeType name)
throws XMLStreamException,
EncodingException
XMLStreamExceptionEncodingExceptionprotected void writeDescription(String description) throws XMLStreamException
description - Description to writeXMLStreamException - If an error occurs when writing to streamprotected void writeMetadata(Map<String,org.n52.shetland.ogc.om.NamedValue<?>> map, QName element) throws XMLStreamException, EncodingException
map - Map with valueselement - element nameXMLStreamException - If an error occurs when writing to streamEncodingException - If an error occurs when creating elements to be writtenprotected void writeMetaDataProperty(List<org.n52.shetland.ogc.gml.AbstractMetaData> metaDataProperty) throws XMLStreamException, EncodingException
XMLStreamExceptionEncodingExceptionprotected void writeObservationType(String observationType) throws XMLStreamException
observationType - Observation type to writeXMLStreamException - If an error occurs when writing to streamprotected void writePhenomenonTime(org.n52.shetland.ogc.gml.time.Time time)
throws EncodingException,
XMLStreamException
Time as om:phenomenonTime to streamtime - Time to write as om:phenomenonTime to streamEncodingException - If an error occurs when creating elements to be writtenXMLStreamException - If an error occurs when writing to streamprotected void writeValidTime(org.n52.shetland.ogc.gml.time.TimePeriod validTime)
throws EncodingException,
XMLStreamException
EncodingExceptionXMLStreamExceptionprotected void writeResultTime()
throws XMLStreamException,
EncodingException
XMLStreamException - If an error occurs when writing to streamEncodingException - If an error occurs when creating elements to be writtenprotected void writeProcedure()
throws XMLStreamException,
EncodingException
XMLStreamException - If an error occurs when writing to streamUnsupportedEncoderInputException - If the procedure could not be encodedEncodingException - If an error occurs when creating elements to be writtenprotected void writeParameter()
throws XMLStreamException,
EncodingException
XMLStreamException - If an error occurs when writing to streamEncodingException - If an error occurs when creating elements to be writtenprotected void writeObservableProperty()
throws XMLStreamException
XMLStreamException - If an error occurs when writing to streamprotected void writeFeatureOfIntererst()
throws XMLStreamException,
EncodingException
XMLStreamException - If an error occurs when writing to streamEncodingException - If an error occurs when creating elements to be writtenprotected abstract Optional<String> getDefaultFeatureEncodingNamespace()
protected void writeResult()
throws XMLStreamException,
EncodingException
XMLStreamException - If an error occurs when writing to streamEncodingException - If an error occurs when creating elements to be writtenprotected EncodingContext getDocumentAdditionalHelperValues()
protected String getTimeString(org.n52.shetland.ogc.gml.time.Time time) throws org.n52.shetland.util.DateTimeFormatException
time - SOS ITime objectorg.n52.shetland.util.DateTimeFormatException - If a formatting error occursprotected QName getDocumentName()
Copyright © 2016–2017 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.