001/* 002 * Copyright 2021 Global Biodiversity Information Facility (GBIF) 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.gbif.dwc.terms; 017 018import java.io.Serializable; 019import java.net.URI; 020 021/** 022 * Darwin Core Archive terms with namespace http://rs.tdwg.org/dwc/text/. 023 */ 024public enum DwcaTerm implements Term, AlternativeNames, Serializable { 025 026 /** 027 * Archive internal (core) id column. 028 */ 029 ID; 030 031 private static final String PREFIX = "dwca"; 032 private static final String NS = "http://rs.tdwg.org/dwc/text/"; 033 private static final URI NS_URI = URI.create(NS); 034 035 036 @Override 037 public String prefix() { 038 return PREFIX; 039 } 040 041 @Override 042 public URI namespace() { 043 return NS_URI; 044 } 045 046 @Override 047 public String simpleName() { 048 return name(); 049 } 050 051 @Override 052 public String toString() { 053 return prefixedName(); 054 } 055 056 @Override 057 public String[] alternativeNames() { 058 return new String[]{}; 059 } 060 061 @Override 062 public boolean isClass() { 063 return false; 064 } 065 066}