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.net.URI; 019 020public enum IucnTerm implements Term, AlternativeNames { 021 022 /** 023 * @deprecated this terms has been deprecated in favor of iucnRedListCategory. 024 */ 025 @Deprecated 026 threatStatus, 027 028 /** 029 * IUCN Red List Category or conservation status. 030 **/ 031 iucnRedListCategory; 032 033 private static final String PREFIX = "iucn"; 034 private static final String NS = "http://iucn.org/terms/"; 035 private static final URI NS_URI = URI.create(NS); 036 037 public final String[] normAlts; 038 039 IucnTerm(String... alternatives) { 040 normAlts = alternatives; 041 } 042 043 @Override 044 public String simpleName() { 045 return name(); 046 } 047 048 @Override 049 public String[] alternativeNames() { 050 return normAlts; 051 } 052 053 @Override 054 public String toString() { 055 return prefixedName(); 056 } 057 058 @Override 059 public String prefix() { 060 return PREFIX; 061 } 062 063 @Override 064 public URI namespace() { 065 return NS_URI; 066 } 067 068 @Override 069 public boolean isClass() { 070 return false; 071 } 072 073}