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
020/**
021 * All Audubon Core terms with namespace http://rs.tdwg.org/ac/terms/.
022 * See
023 * <ul>
024 *   <li>http://terms.tdwg.org/wiki/Audubon_Core_Term_List</li>
025 *   <li>http://terms.tdwg.org/wiki/Audubon_Core</li>
026 * </ul>
027 */
028public enum AcTerm implements Term, AlternativeNames {
029
030  accessURI,
031  associatedObservationReference,
032  associatedSpecimenReference,
033  attributionLinkURL,
034  attributionLogoURL,
035  caption,
036  captureDevice,
037  commenter,
038  commenterLiteral,
039  comments,
040  derivedFrom,
041  digitizationDate,
042  fundingAttribution,
043  furtherInformationURL,
044  hasServiceAccessPoint,
045  hashFunction,
046  hashValue,
047  IDofContainingCollection,
048  licenseLogoURL,
049  licensingException,
050  metadataCreator,
051  metadataCreatorLiteral,
052  metadataLanguage,
053  metadataLanguageLiteral,
054  metadataProvider,
055  metadataProviderLiteral,
056  otherScientificName,
057  physicalSetting,
058  provider,
059  providerID,
060  providerLiteral,
061  providerManagedID,
062// we leave this AC term out as the simple name exists already in DwC!
063//  relatedResourceID,
064  resourceCreationTechnique,
065  reviewer,
066  reviewerComments,
067  reviewerLiteral,
068  serviceExpectation,
069  subjectCategoryVocabulary,
070  subjectOrientation,
071  subjectPart,
072  subtype,
073  subtypeLiteral,
074  tag,
075  taxonCount,
076  taxonCoverage,
077  timeOfDay,
078  variant,
079  variantDescription,
080  variantLiteral;
081
082  private static final String PREFIX = "ac";
083  private static final String NS = "http://rs.tdwg.org/ac/terms/";
084  private static final URI NS_URI = URI.create(NS);
085
086  @Override
087  public String toString() {
088    return prefixedName();
089  }
090
091  @Override
092  public String simpleName() {
093    return name();
094  }
095
096  @Override
097  public String[] alternativeNames() {
098    return new String[]{};
099  }
100
101  @Override
102  public boolean isClass() {
103    return false;
104  }
105
106  @Override
107  public String prefix() {
108    return PREFIX;
109  }
110
111  @Override
112  public URI namespace() {
113    return NS_URI;
114  }
115}