public class WmlTVPEncoderv20XmlStreamWriter extends AbstractOmV20XmlStreamWriter
AbstractOmV20XmlStreamWriter
to write WaterML 2.0
encoded OmObservation
s to streamindent, out, XML_FRAGMENT, XML_VERSION
Constructor and Description |
---|
WmlTVPEncoderv20XmlStreamWriter()
constructor
|
WmlTVPEncoderv20XmlStreamWriter(OmObservation observation)
constructor
|
Modifier and Type | Method and Description |
---|---|
private void |
close()
Close written wml:MeasurementTimeseries and om:result tags
|
private String |
getValue(Value<?> value)
|
private void |
writeDefaultPointMetadata(String unit)
Write wml:defaultPointMetadata to stream
|
private void |
writeInterpolationType()
Write wml:interpolationType to stream
|
private void |
writeMeasurementTimeseriesMetadata(String id)
Write timeseries metadata to stream
|
private void |
writeMeasurementTVP(String time,
String value)
Write wml:MeasurementTVP to stream
|
private void |
writePoint(String time,
String value)
Write wml:point to stream
|
protected void |
writeResult(OmObservation observation,
EncodingValues encodingValues)
write om:result to stream
|
private void |
writeTime(String time)
Write wml:time to stream
|
private void |
writeUOM(String code)
Write UOM attribute to stream
|
private void |
writeValue(String value)
Write wml:value to stream
|
private void |
writeValueMetadata()
Write missing value metadata to stream
|
getDocumentAdditionalHelperValues, getTimeString, write, write, write, write, writeDescription, writeFeatureOfIntererst, writeIdentifier, writeObservableProperty, writeObservationType, writeOmObservationDoc, writeParameter, writePhenomenonTime, writeProcedure, writeResultTime
attr, attr, attr, chars, chars, empty, end, end, endInline, finish, flush, getXmlWriter, init, namespace, start, start
addXlinkHrefAttr, addXlinkTitleAttr, getOutputStream, getReplacement, getXmlOutputFactory, init, init, init, rawText, schemaLocation, time, time, writeIndent, writeNewLine, writeXmlObject
public WmlTVPEncoderv20XmlStreamWriter()
public WmlTVPEncoderv20XmlStreamWriter(OmObservation observation)
observation
- OmObservation
to write to streamprotected void writeResult(OmObservation observation, EncodingValues encodingValues) throws XMLStreamException, OwsExceptionReport
AbstractOmV20XmlStreamWriter
writeResult
in class AbstractOmV20XmlStreamWriter
observation
- OmObservation
with the result to writeencodingValues
- EncodingValues
contains the result element namespaceXMLStreamException
- If an error occurs when writing to streamOwsExceptionReport
- If an error occurs when creating elements to be writtenprivate void close() throws XMLStreamException
XMLStreamException
- If an error occurs when writing to streamprivate void writeMeasurementTimeseriesMetadata(String id) throws XMLStreamException
id
- Observation idXMLStreamException
- If an error occurs when writing to streamprivate void writeDefaultPointMetadata(String unit) throws XMLStreamException
unit
- XMLStreamException
- If an error occurs when writing to streamprivate void writeUOM(String code) throws XMLStreamException
code
- UOM codeXMLStreamException
- If an error occurs when writing to streamprivate void writeInterpolationType() throws XMLStreamException
XMLStreamException
- If an error occurs when writing to streamprivate void writePoint(String time, String value) throws XMLStreamException
time
- time as String
value
- value as String
XMLStreamException
- If an error occurs when writing to streamprivate void writeMeasurementTVP(String time, String value) throws XMLStreamException
time
- time as String
value
- value as String
XMLStreamException
- If an error occurs when writing to streamprivate void writeTime(String time) throws XMLStreamException
time
- time to writeXMLStreamException
- If an error occurs when writing to streamprivate void writeValue(String value) throws XMLStreamException
value
- value to writeXMLStreamException
- If an error occurs when writing to streamprivate void writeValueMetadata() throws XMLStreamException
XMLStreamException
- If an error occurs when writing to streamCopyright © 2012-2015 52north.org. All Rights Reserved.