Search in sources :

Example 1 with CodeTypeJSONEncoder

use of org.n52.svalbard.encode.json.CodeTypeJSONEncoder in project arctic-sea by 52North.

the class AbstractEReportingHeaderCoding method getEncoder.

protected EReportingHeaderJSONEncoder getEncoder() {
    EncoderRepository encoderRepository = new EncoderRepository();
    EReportingHeaderJSONEncoder eReportingHeaderJSONEncoder = new EReportingHeaderJSONEncoder();
    eReportingHeaderJSONEncoder.setEncoderRepository(encoderRepository);
    EReportingChangeJSONEncoder eReportingChangeJSONEncoder = new EReportingChangeJSONEncoder();
    eReportingChangeJSONEncoder.setEncoderRepository(encoderRepository);
    InspireIDJSONEncoder inspireIDJSONEncoder = new InspireIDJSONEncoder();
    inspireIDJSONEncoder.setEncoderRepository(encoderRepository);
    NillableJSONEncoder nillableJSONEncoder = new NillableJSONEncoder();
    nillableJSONEncoder.setEncoderRepository(encoderRepository);
    IterableJSONEncoder iterableJSONEncoder = new IterableJSONEncoder();
    iterableJSONEncoder.setEncoderRepository(encoderRepository);
    RelatedPartyJSONEncoder relatedPartyJSONEncoder = new RelatedPartyJSONEncoder();
    relatedPartyJSONEncoder.setEncoderRepository(encoderRepository);
    ContactJSONEncoder contactJSONEncoder = new ContactJSONEncoder();
    contactJSONEncoder.setEncoderRepository(encoderRepository);
    AddressJSONEncoder addressJSONEncoder = new AddressJSONEncoder();
    addressJSONEncoder.setEncoderRepository(encoderRepository);
    GeographicNameJSONEncoder geographicNameJSONEncoder = new GeographicNameJSONEncoder();
    geographicNameJSONEncoder.setEncoderRepository(encoderRepository);
    CodeTypeJSONEncoder codeTypeJSONEncoder = new CodeTypeJSONEncoder();
    codeTypeJSONEncoder.setEncoderRepository(encoderRepository);
    StringJSONEncoder stringJSONEncoder = new StringJSONEncoder();
    stringJSONEncoder.setEncoderRepository(encoderRepository);
    PronunciationJSONEncoder pronunciationJSONEncoder = new PronunciationJSONEncoder();
    pronunciationJSONEncoder.setEncoderRepository(encoderRepository);
    URIJSONEncoder uriJSONEncoder = new URIJSONEncoder();
    uriJSONEncoder.setEncoderRepository(encoderRepository);
    SpellingJSONEncoder spellingJSONEncoder = new SpellingJSONEncoder();
    spellingJSONEncoder.setEncoderRepository(encoderRepository);
    ReferenceJSONEncoder referenceJSONEncoder = new ReferenceJSONEncoder();
    referenceJSONEncoder.setEncoderRepository(encoderRepository);
    PTFreeTextJSONEncoder ptFreeTextJSONEncoder = new PTFreeTextJSONEncoder();
    ptFreeTextJSONEncoder.setEncoderRepository(encoderRepository);
    ReferenceableJSONEncoder referenceableJSONEncoder = new ReferenceableJSONEncoder();
    referenceableJSONEncoder.setEncoderRepository(encoderRepository);
    TimeJSONEncoder timeJSONEncoder = new TimeJSONEncoder();
    timeJSONEncoder.setEncoderRepository(encoderRepository);
    encoderRepository.setEncoders(Arrays.asList(eReportingHeaderJSONEncoder, eReportingChangeJSONEncoder, inspireIDJSONEncoder, nillableJSONEncoder, iterableJSONEncoder, relatedPartyJSONEncoder, contactJSONEncoder, addressJSONEncoder, geographicNameJSONEncoder, codeTypeJSONEncoder, stringJSONEncoder, pronunciationJSONEncoder, uriJSONEncoder, spellingJSONEncoder, referenceJSONEncoder, ptFreeTextJSONEncoder, referenceableJSONEncoder, timeJSONEncoder));
    encoderRepository.init();
    return eReportingHeaderJSONEncoder;
}
Also used : IterableJSONEncoder(org.n52.svalbard.encode.json.IterableJSONEncoder) TimeJSONEncoder(org.n52.svalbard.encode.json.base.TimeJSONEncoder) InspireIDJSONEncoder(org.n52.svalbard.encode.json.InspireIDJSONEncoder) EReportingChangeJSONEncoder(org.n52.svalbard.encode.json.EReportingChangeJSONEncoder) ContactJSONEncoder(org.n52.svalbard.encode.json.ContactJSONEncoder) CodeTypeJSONEncoder(org.n52.svalbard.encode.json.CodeTypeJSONEncoder) RelatedPartyJSONEncoder(org.n52.svalbard.encode.json.RelatedPartyJSONEncoder) SpellingJSONEncoder(org.n52.svalbard.encode.json.SpellingJSONEncoder) EncoderRepository(org.n52.svalbard.encode.EncoderRepository) PTFreeTextJSONEncoder(org.n52.svalbard.encode.json.PTFreeTextJSONEncoder) GeographicNameJSONEncoder(org.n52.svalbard.encode.json.GeographicNameJSONEncoder) StringJSONEncoder(org.n52.svalbard.encode.json.base.StringJSONEncoder) AddressJSONEncoder(org.n52.svalbard.encode.json.AddressJSONEncoder) ReferenceableJSONEncoder(org.n52.svalbard.encode.json.ReferenceableJSONEncoder) EReportingHeaderJSONEncoder(org.n52.svalbard.encode.json.EReportingHeaderJSONEncoder) NillableJSONEncoder(org.n52.svalbard.encode.json.NillableJSONEncoder) PronunciationJSONEncoder(org.n52.svalbard.encode.json.PronunciationJSONEncoder) URIJSONEncoder(org.n52.svalbard.encode.json.base.URIJSONEncoder) ReferenceJSONEncoder(org.n52.svalbard.encode.json.ReferenceJSONEncoder)

Aggregations

EncoderRepository (org.n52.svalbard.encode.EncoderRepository)1 AddressJSONEncoder (org.n52.svalbard.encode.json.AddressJSONEncoder)1 CodeTypeJSONEncoder (org.n52.svalbard.encode.json.CodeTypeJSONEncoder)1 ContactJSONEncoder (org.n52.svalbard.encode.json.ContactJSONEncoder)1 EReportingChangeJSONEncoder (org.n52.svalbard.encode.json.EReportingChangeJSONEncoder)1 EReportingHeaderJSONEncoder (org.n52.svalbard.encode.json.EReportingHeaderJSONEncoder)1 GeographicNameJSONEncoder (org.n52.svalbard.encode.json.GeographicNameJSONEncoder)1 InspireIDJSONEncoder (org.n52.svalbard.encode.json.InspireIDJSONEncoder)1 IterableJSONEncoder (org.n52.svalbard.encode.json.IterableJSONEncoder)1 NillableJSONEncoder (org.n52.svalbard.encode.json.NillableJSONEncoder)1 PTFreeTextJSONEncoder (org.n52.svalbard.encode.json.PTFreeTextJSONEncoder)1 PronunciationJSONEncoder (org.n52.svalbard.encode.json.PronunciationJSONEncoder)1 ReferenceJSONEncoder (org.n52.svalbard.encode.json.ReferenceJSONEncoder)1 ReferenceableJSONEncoder (org.n52.svalbard.encode.json.ReferenceableJSONEncoder)1 RelatedPartyJSONEncoder (org.n52.svalbard.encode.json.RelatedPartyJSONEncoder)1 SpellingJSONEncoder (org.n52.svalbard.encode.json.SpellingJSONEncoder)1 StringJSONEncoder (org.n52.svalbard.encode.json.base.StringJSONEncoder)1 TimeJSONEncoder (org.n52.svalbard.encode.json.base.TimeJSONEncoder)1 URIJSONEncoder (org.n52.svalbard.encode.json.base.URIJSONEncoder)1