use of org.n52.svalbard.decode.json.AddressJSONDecoder 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;
}
Aggregations