Search in sources :

Example 6 with DecoderRepository

use of org.n52.svalbard.decode.DecoderRepository in project arctic-sea by 52North.

the class AbstractEReportingHeaderCoding method getDecoder.

protected EReportingHeaderJSONDecoder getDecoder() {
    DecoderRepository decoderRepository = new DecoderRepository();
    EReportingHeaderJSONDecoder eReportingHeaderJSONDecoder = new EReportingHeaderJSONDecoder();
    eReportingHeaderJSONDecoder.setDecoderRepository(decoderRepository);
    EReportingChangeJSONDecoder eReportingChangeJSONDecoder = new EReportingChangeJSONDecoder();
    eReportingChangeJSONDecoder.setDecoderRepository(decoderRepository);
    InspireIDJSONDecoder inspireIDJSONDecoder = new InspireIDJSONDecoder();
    inspireIDJSONDecoder.setDecoderRepository(decoderRepository);
    RelatedPartyJSONDecoder relatedPartyJSONDecoder = new RelatedPartyJSONDecoder();
    relatedPartyJSONDecoder.setDecoderRepository(decoderRepository);
    ContactJSONDecoder contactJSONDecoder = new ContactJSONDecoder();
    contactJSONDecoder.setDecoderRepository(decoderRepository);
    AddressJSONDecoder addressJSONDecoder = new AddressJSONDecoder();
    addressJSONDecoder.setDecoderRepository(decoderRepository);
    PronunciationJSONDecoder pronunciationJSONDecoder = new PronunciationJSONDecoder();
    pronunciationJSONDecoder.setDecoderRepository(decoderRepository);
    SpellingJSONDecoder spellingJSONDecoder = new SpellingJSONDecoder();
    spellingJSONDecoder.setDecoderRepository(decoderRepository);
    GeographicalNameJSONDecoder gographicalNameJSONDecoder = new GeographicalNameJSONDecoder();
    gographicalNameJSONDecoder.setDecoderRepository(decoderRepository);
    decoderRepository.setDecoders(Arrays.asList(eReportingHeaderJSONDecoder, eReportingChangeJSONDecoder, inspireIDJSONDecoder, relatedPartyJSONDecoder, contactJSONDecoder, addressJSONDecoder, pronunciationJSONDecoder, gographicalNameJSONDecoder, spellingJSONDecoder));
    decoderRepository.init();
    return eReportingHeaderJSONDecoder;
}
Also used : PronunciationJSONDecoder(org.n52.svalbard.decode.json.PronunciationJSONDecoder) GeographicalNameJSONDecoder(org.n52.svalbard.decode.json.GeographicalNameJSONDecoder) AddressJSONDecoder(org.n52.svalbard.decode.json.AddressJSONDecoder) SpellingJSONDecoder(org.n52.svalbard.decode.json.SpellingJSONDecoder) DecoderRepository(org.n52.svalbard.decode.DecoderRepository) EReportingHeaderJSONDecoder(org.n52.svalbard.decode.json.EReportingHeaderJSONDecoder) ContactJSONDecoder(org.n52.svalbard.decode.json.ContactJSONDecoder) InspireIDJSONDecoder(org.n52.svalbard.decode.json.InspireIDJSONDecoder) RelatedPartyJSONDecoder(org.n52.svalbard.decode.json.RelatedPartyJSONDecoder) EReportingChangeJSONDecoder(org.n52.svalbard.decode.json.EReportingChangeJSONDecoder)

Aggregations

DecoderRepository (org.n52.svalbard.decode.DecoderRepository)6 Before (org.junit.Before)5 XmlOptions (org.apache.xmlbeans.XmlOptions)2 GmlDecoderv311 (org.n52.svalbard.decode.GmlDecoderv311)2 SensorMLDecoderV101 (org.n52.svalbard.decode.SensorMLDecoderV101)2 SweCommonDecoderV101 (org.n52.svalbard.decode.SweCommonDecoderV101)2 FieldDecoder (org.n52.svalbard.decode.json.FieldDecoder)2 InsertObservationRequestDecoder (org.n52.svalbard.decode.json.InsertObservationRequestDecoder)2 InsertResultTemplateRequestDecoder (org.n52.svalbard.decode.json.InsertResultTemplateRequestDecoder)2 InsertSensorRequestDecoder (org.n52.svalbard.decode.json.InsertSensorRequestDecoder)2 ObservationDecoder (org.n52.svalbard.decode.json.ObservationDecoder)2 JsonNode (com.fasterxml.jackson.databind.JsonNode)1 AddressJSONDecoder (org.n52.svalbard.decode.json.AddressJSONDecoder)1 BatchRequestDecoder (org.n52.svalbard.decode.json.BatchRequestDecoder)1 ContactJSONDecoder (org.n52.svalbard.decode.json.ContactJSONDecoder)1 EReportingChangeJSONDecoder (org.n52.svalbard.decode.json.EReportingChangeJSONDecoder)1 EReportingHeaderJSONDecoder (org.n52.svalbard.decode.json.EReportingHeaderJSONDecoder)1 GeoJSONDecoder (org.n52.svalbard.decode.json.GeoJSONDecoder)1 GeographicalNameJSONDecoder (org.n52.svalbard.decode.json.GeographicalNameJSONDecoder)1 GetObservationRequestDecoder (org.n52.svalbard.decode.json.GetObservationRequestDecoder)1