001package org.gbif.dwc.terms.jackson;
002
003import org.gbif.dwc.terms.Term;
004
005import org.codehaus.jackson.Version;
006import org.codehaus.jackson.map.module.SimpleModule;
007
008/**
009 *
010 */
011public class DwcModule extends SimpleModule {
012
013  public DwcModule() {
014    super("Dwc API", new Version(1,0,0,null));
015    addSerializer(Term.class, new TermSerializer());
016    addDeserializer(Term.class, new TermDeserializer());
017    addKeySerializer(Term.class, new TermKeySerializer());
018    addKeyDeserializer(Term.class, new TermKeyDeserializer());
019  }
020}