package org.gbif.dwc.terms;

import java.net.URI;

public enum GadmTerm implements Term, AlternativeNames {
  level0Gid(DwcTerm.GROUP_LOCATION),
  level1Gid(DwcTerm.GROUP_LOCATION),
  level2Gid(DwcTerm.GROUP_LOCATION),
  level3Gid(DwcTerm.GROUP_LOCATION);

  private static final String PREFIX = "gadm";
  private static final String NS = "http://gadm.org/terms/";
  private static final URI NS_URI = URI.create(NS);

  public final String[] normAlts;

  GadmTerm(String... alternatives) {
    normAlts = alternatives;
  }

  @Override
  public String simpleName() {
    return name();
  }

  @Override
  public String[] alternativeNames() {
    return normAlts;
  }

  @Override
  public String toString() {
    return prefixedName();
  }

  @Override
  public String prefix() {
    return PREFIX;
  }

  @Override
  public URI namespace() {
    return NS_URI;
  }

  @Override
  public boolean isClass() {
    return false;
  }

}

@@ -149,86 +149,238 @@
 evel
-1Gid(DwcTerm.GROUP_LOCATION),%0A  level2Gid(DwcTerm.GROUP_LOCATION),%0A  level3Gid
+0Name(DwcTerm.GROUP_LOCATION),%0A  level1Gid(DwcTerm.GROUP_LOCATION),%0A  level1Name(DwcTerm.GROUP_LOCATION),%0A  level2Gid(DwcTerm.GROUP_LOCATION),%0A  level2Name(DwcTerm.GROUP_LOCATION),%0A  level3Gid(DwcTerm.GROUP_LOCATION),%0A  level3Name
 (Dwc
@@ -1075,11 +1075,10 @@
 se;%0A  %7D%0A
-%0A
 %7D%0A

Add GADM name terms.