Search in sources :

Example 1 with ReportObligation

use of org.n52.shetland.aqd.ReportObligation in project arctic-sea by 52North.

the class ReportObligationJSONDecoder method decodeJSON.

@Override
public ReportObligation decodeJSON(JsonNode node, boolean validate) throws DecodingException {
    ReportObligation reportObligation = new ReportObligation();
    reportObligation.setChange(decodeJsonToObject(node.path(AQDJSONConstants.CHANGE), EReportingChange.class));
    reportObligation.setInspireID(decodeJsonToObject(node.path(AQDJSONConstants.INSPIRE_ID), Identifier.class));
    reportObligation.setReportingPeriod(parseReferenceableTime(node.path(AQDJSONConstants.REPORTING_PERIOD)));
    return reportObligation;
}
Also used : Identifier(org.n52.shetland.inspire.base.Identifier) ReportObligation(org.n52.shetland.aqd.ReportObligation) EReportingChange(org.n52.shetland.aqd.EReportingChange)

Aggregations

EReportingChange (org.n52.shetland.aqd.EReportingChange)1 ReportObligation (org.n52.shetland.aqd.ReportObligation)1 Identifier (org.n52.shetland.inspire.base.Identifier)1