Search in sources :

Example 1 with FilterCapabilities

use of org.n52.shetland.ogc.filter.FilterCapabilities in project arctic-sea by 52North.

the class CapabilitiesDecoder method decode.

@Override
@SuppressFBWarnings("NP_LOAD_OF_KNOWN_NULL_VALUE")
public SosCapabilities decode(Capabilities c) throws DecodingException {
    if (c != null) {
        OwsCapabilities owsCapabilities = parseCapabilitiesBaseType(SosConstants.SOS, c);
        FilterCapabilities filterCapabilities = parseFilterCapabilities(c.getFilterCapabilities());
        Collection<SosObservationOffering> contents = parseContents(c.getContents());
        return new SosCapabilities(owsCapabilities, filterCapabilities, contents);
    }
    throw new UnsupportedDecoderInputException(this, c);
}
Also used : FilterCapabilities(org.n52.shetland.ogc.filter.FilterCapabilities) SosCapabilities(org.n52.shetland.ogc.sos.SosCapabilities) OwsCapabilities(org.n52.shetland.ogc.ows.OwsCapabilities) SosObservationOffering(org.n52.shetland.ogc.sos.SosObservationOffering) UnsupportedDecoderInputException(org.n52.svalbard.decode.exception.UnsupportedDecoderInputException) SuppressFBWarnings(edu.umd.cs.findbugs.annotations.SuppressFBWarnings)

Example 2 with FilterCapabilities

use of org.n52.shetland.ogc.filter.FilterCapabilities in project arctic-sea by 52North.

the class CapabilitiesTypeDecoder method decode.

@Override
@SuppressFBWarnings("NP_LOAD_OF_KNOWN_NULL_VALUE")
public SosCapabilities decode(CapabilitiesType ct) throws DecodingException {
    if (ct != null) {
        OwsCapabilities owsCapabilities = parseCapabilitiesBaseType(SosConstants.SOS, ct);
        FilterCapabilities filterCapabilities = parseFilterCapabilities(ct.getFilterCapabilities());
        Collection<SosObservationOffering> contents = parseContents(ct.getContents());
        return new SosCapabilities(owsCapabilities, filterCapabilities, contents);
    }
    throw new UnsupportedDecoderInputException(this, ct);
}
Also used : FilterCapabilities(org.n52.shetland.ogc.filter.FilterCapabilities) SosCapabilities(org.n52.shetland.ogc.sos.SosCapabilities) OwsCapabilities(org.n52.shetland.ogc.ows.OwsCapabilities) SosObservationOffering(org.n52.shetland.ogc.sos.SosObservationOffering) UnsupportedDecoderInputException(org.n52.svalbard.decode.exception.UnsupportedDecoderInputException) SuppressFBWarnings(edu.umd.cs.findbugs.annotations.SuppressFBWarnings)

Aggregations

SuppressFBWarnings (edu.umd.cs.findbugs.annotations.SuppressFBWarnings)2 FilterCapabilities (org.n52.shetland.ogc.filter.FilterCapabilities)2 OwsCapabilities (org.n52.shetland.ogc.ows.OwsCapabilities)2 SosCapabilities (org.n52.shetland.ogc.sos.SosCapabilities)2 SosObservationOffering (org.n52.shetland.ogc.sos.SosObservationOffering)2 UnsupportedDecoderInputException (org.n52.svalbard.decode.exception.UnsupportedDecoderInputException)2