Search in sources :

Example 1 with EnvironmentalMonitoringFacilityPropertyType

use of eu.europa.ec.inspire.schemas.ef.x40.EnvironmentalMonitoringFacilityPropertyType in project arctic-sea by 52North.

the class EnvironmentalMonitoringFaciltityPropertyTypeEncoder method encode.

@Override
public XmlObject encode(AbstractFeature abstractFeature, EncodingContext context) throws EncodingException {
    if (abstractFeature instanceof EnvironmentalMonitoringFacility) {
        EnvironmentalMonitoringFacilityPropertyType emfpt = EnvironmentalMonitoringFacilityPropertyType.Factory.newInstance();
        emfpt.setEnvironmentalMonitoringFacility(createEnvironmentalMonitoringFaciltityType((EnvironmentalMonitoringFacility) abstractFeature));
        return emfpt;
    }
    throw new UnsupportedEncoderInputException(this, abstractFeature);
}
Also used : EnvironmentalMonitoringFacility(org.n52.shetland.inspire.ef.EnvironmentalMonitoringFacility) EnvironmentalMonitoringFacilityPropertyType(eu.europa.ec.inspire.schemas.ef.x40.EnvironmentalMonitoringFacilityPropertyType) UnsupportedEncoderInputException(org.n52.svalbard.encode.exception.UnsupportedEncoderInputException)

Aggregations

EnvironmentalMonitoringFacilityPropertyType (eu.europa.ec.inspire.schemas.ef.x40.EnvironmentalMonitoringFacilityPropertyType)1 EnvironmentalMonitoringFacility (org.n52.shetland.inspire.ef.EnvironmentalMonitoringFacility)1 UnsupportedEncoderInputException (org.n52.svalbard.encode.exception.UnsupportedEncoderInputException)1