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 * Terms for Adobe XMP have URIs that are not resolvable. Instead, visit
022 * <a href="http://www.adobe.com/content/dam/Adobe/en/devnet/xmp/pdfs/XMPSpecificationPart1.pdf">XMP Specification Part 1, Sec 8.4 </a>
023 * for further documentation.
024 *
025 * These terms are used by the Audubon Core standard.
026 */
027public enum XmpRightsTerm implements Term, AlternativeNames {
028
029  Owner,
030  UsageTerms,
031  WebStatement;
032
033  private static final String PREFIX = "xmp";
034  private static final String NS = "http://ns.adobe.com/xap/1.0/rights/";
035  private static final URI NS_URI = URI.create(NS);
036
037
038  @Override
039  public String simpleName() {
040    return name();
041  }
042
043  @Override
044  public String[] alternativeNames() {
045    return new String[]{};
046  }
047
048  @Override
049  public String toString() {
050    return prefixedName();
051  }
052
053  @Override
054  public boolean isClass() {
055    return false;
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}