public abstract class AbstractOmV20XmlStreamWriter extends XmlStreamWriter<OmObservation>
XmlStreamWriter for writing
OmObservations to streamXML_FRAGMENT| Constructor and Description |
|---|
AbstractOmV20XmlStreamWriter(EncodingContext context,
java.io.OutputStream outputStream,
OmObservation element) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkAndWriteDescription() |
protected void |
checkAndWriteIdentifier() |
protected void |
checkAndWriteName() |
protected abstract java.util.Optional<java.lang.String> |
getDefaultFeatureEncodingNamespace() |
protected EncodingContext |
getDocumentAdditionalHelperValues()
Get additional values map with document helper value
|
protected javax.xml.namespace.QName |
getDocumentName() |
protected java.lang.String |
getTimeString(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(java.lang.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(CodeWithAuthority identifier)
Write
CodeWithAuthority as gml:identifier to stream |
protected void |
writeMetadata(java.util.Map<java.lang.String,NamedValue<?>> map,
javax.xml.namespace.QName element)
Write extension information
|
protected void |
writeMetaDataProperty(java.util.List<AbstractMetaData> metaDataProperty) |
protected void |
writeName(CodeType name) |
protected void |
writeObservableProperty()
Write om:observedProperty to stream
|
protected void |
writeObservation(OmObservation observation)
Write
OmObservation XML encoded to stream |
protected void |
writeObservationType(java.lang.String observationType)
Write observation typ as om:type to stream
|
protected void |
writeParameter()
Write om:parameter to stream
|
protected void |
writePhenomenonTime(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(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, java.io.OutputStream outputStream, OmObservation element) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionprotected abstract void writeAddtitionalNamespaces()
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionpublic void write()
throws javax.xml.stream.XMLStreamException,
EncodingException
XmlStreamWriterOutputStream.write in class XmlStreamWriter<OmObservation>javax.xml.stream.XMLStreamException - If an error occurs when writing to OutputStreamEncodingException - If an encoding error occursprotected void writeObservation(OmObservation observation) throws javax.xml.stream.XMLStreamException, EncodingException
OmObservation XML encoded to streamobservation - the observationjavax.xml.stream.XMLStreamException - 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 javax.xml.stream.XMLStreamException,
EncodingException
javax.xml.stream.XMLStreamExceptionEncodingExceptionprotected void checkAndWriteName()
throws javax.xml.stream.XMLStreamException,
EncodingException
javax.xml.stream.XMLStreamExceptionEncodingExceptionprotected void checkAndWriteDescription()
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionprotected void writeIdentifier(CodeWithAuthority identifier) throws EncodingException, javax.xml.stream.XMLStreamException
CodeWithAuthority as gml:identifier to streamidentifier - CodeWithAuthority to writeEncodingException - If an error occurs when creating elements to be writtenjavax.xml.stream.XMLStreamException - If an error occurs when writing to streamprotected void writeName(CodeType name) throws javax.xml.stream.XMLStreamException, EncodingException
javax.xml.stream.XMLStreamExceptionEncodingExceptionprotected void writeDescription(java.lang.String description)
throws javax.xml.stream.XMLStreamException
description - Description to writejavax.xml.stream.XMLStreamException - If an error occurs when writing to streamprotected void writeMetadata(java.util.Map<java.lang.String,NamedValue<?>> map, javax.xml.namespace.QName element) throws javax.xml.stream.XMLStreamException, EncodingException
map - Map with valueselement - element namejavax.xml.stream.XMLStreamException - If an error occurs when writing to streamEncodingException - If an error occurs when creating elements to be writtenprotected void writeMetaDataProperty(java.util.List<AbstractMetaData> metaDataProperty) throws javax.xml.stream.XMLStreamException, EncodingException
javax.xml.stream.XMLStreamExceptionEncodingExceptionprotected void writeObservationType(java.lang.String observationType)
throws javax.xml.stream.XMLStreamException
observationType - Observation type to writejavax.xml.stream.XMLStreamException - If an error occurs when writing to streamprotected void writePhenomenonTime(Time time) throws EncodingException, javax.xml.stream.XMLStreamException
Time as om:phenomenonTime to streamtime - Time to write as om:phenomenonTime to streamEncodingException - If an error occurs when creating elements to be writtenjavax.xml.stream.XMLStreamException - If an error occurs when writing to streamprotected void writeValidTime(TimePeriod validTime) throws EncodingException, javax.xml.stream.XMLStreamException
EncodingExceptionjavax.xml.stream.XMLStreamExceptionprotected void writeResultTime()
throws javax.xml.stream.XMLStreamException,
EncodingException
javax.xml.stream.XMLStreamException - If an error occurs when writing to streamEncodingException - If an error occurs when creating elements to be writtenprotected void writeProcedure()
throws javax.xml.stream.XMLStreamException,
EncodingException
javax.xml.stream.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 javax.xml.stream.XMLStreamException,
EncodingException
javax.xml.stream.XMLStreamException - If an error occurs when writing to streamEncodingException - If an error occurs when creating elements to be writtenprotected void writeObservableProperty()
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException - If an error occurs when writing to streamprotected void writeFeatureOfIntererst()
throws javax.xml.stream.XMLStreamException,
EncodingException
javax.xml.stream.XMLStreamException - If an error occurs when writing to streamEncodingException - If an error occurs when creating elements to be writtenprotected abstract java.util.Optional<java.lang.String> getDefaultFeatureEncodingNamespace()
protected void writeResult()
throws javax.xml.stream.XMLStreamException,
EncodingException
javax.xml.stream.XMLStreamException - If an error occurs when writing to streamEncodingException - If an error occurs when creating elements to be writtenprotected EncodingContext getDocumentAdditionalHelperValues()
protected java.lang.String getTimeString(Time time) throws DateTimeFormatException
time - SOS ITime objectDateTimeFormatException - If a formatting error occursprotected javax.xml.namespace.QName getDocumentName()
Copyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.