Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
CarstenHollmann committed Jul 13, 2022
1 parent 9dc468b commit 83b28ec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,9 @@
import org.n52.shetland.ogc.sos.Sos2Constants;
import org.n52.shetland.ogc.sos.SosConstants;
import org.n52.shetland.ogc.sos.response.GetObservationResponse;
import org.n52.shetland.ogc.swe.simpleType.SweCategory;
import org.n52.shetland.ogc.swe.simpleType.SweQuality;
import org.n52.shetland.ogc.swe.simpleType.SweQualityHolder;
import org.n52.shetland.ogc.swe.simpleType.SweQuantity;
import org.n52.shetland.ogc.swe.simpleType.SweQuantityRange;
import org.n52.shetland.ogc.swe.simpleType.SweText;
import org.n52.shetland.util.CollectionHelper;
import org.n52.shetland.w3c.SchemaLocation;
import org.n52.svalbard.encode.exception.EncodingException;
Expand Down Expand Up @@ -472,18 +469,18 @@ private void addValuesToMeasurementTVP(MeasurementTVPType measurementTVP, String
}
}

private void addValuesToMeasurementTVP(MeasurementTVPType measurementTVPType, String time, CountValue value) {
addValuesToMeasurementTVP(measurementTVPType, time,
value.isSetValue() ? Integer.toString(value.getValue()) : null);
}

private boolean checkQuality(SweQualityHolder quality) {
if (quality.isSetQuality()) {
return quality.getQuality().stream().filter(q -> q instanceof SweQuantity).findFirst().isPresent();
}
return false;
}

private void addValuesToMeasurementTVP(MeasurementTVPType measurementTVPType, String time, CountValue value) {
addValuesToMeasurementTVP(measurementTVPType, time,
value.isSetValue() ? Integer.toString(value.getValue()) : null);
}

private void addMeasurmentMetadataMissing(PointMetadataType metadata) {
metadata.addNewNilReason().setNilReason("missing");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ private void writePoint(String time, String string) throws XMLStreamException, E
* @throws XMLStreamException
* If an error occurs when writing to stream
* @throws EncodingException
* If an error occurs when encoding quality
*/
private void writePoint(String time, String value, SweQualityHolder qualityHolder)
throws XMLStreamException, EncodingException {
Expand Down Expand Up @@ -368,7 +369,7 @@ private void writeMeasurementTVP(String time, String value, SweQualityHolder qua
writeValue(value);
end(TimeseriesMLConstants.QN_MEASUREMENT_TVP);
}

private boolean checkQuality(SweQualityHolder quality) {
if (quality.isSetQuality()) {
return quality.getQuality().stream().filter(q -> q instanceof SweQuantity).findFirst().isPresent();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ private void writePoint(String time, String string) throws XMLStreamException, E
* @throws XMLStreamException
* If an error occurs when writing to stream
* @throws EncodingException
* If an error occurs when encoding quality
*/
private void writePoint(String time, String value, SweQualityHolder qualityHolder)
throws XMLStreamException, EncodingException {
Expand Down

0 comments on commit 83b28ec

Please sign in to comment.