Search in sources :

Example 1 with ContactJSONDecoder

use of org.n52.svalbard.decode.json.ContactJSONDecoder 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)1 AddressJSONDecoder (org.n52.svalbard.decode.json.AddressJSONDecoder)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 GeographicalNameJSONDecoder (org.n52.svalbard.decode.json.GeographicalNameJSONDecoder)1 InspireIDJSONDecoder (org.n52.svalbard.decode.json.InspireIDJSONDecoder)1 PronunciationJSONDecoder (org.n52.svalbard.decode.json.PronunciationJSONDecoder)1 RelatedPartyJSONDecoder (org.n52.svalbard.decode.json.RelatedPartyJSONDecoder)1 SpellingJSONDecoder (org.n52.svalbard.decode.json.SpellingJSONDecoder)1