001/*
002 * Copyright 2024 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 * All Adobe EXIF terms with namespace http://ns.adobe.com/exif/1.0/.
023 */
024public enum ExifTerm implements Term, AlternativeNames, Serializable {
025  PixelXDimension,
026  PixelYDimension;
027
028  private static final String PREFIX = "exif";
029  private static final String NS = "http://ns.adobe.com/exif/1.0/";
030  private static final URI NS_URI = URI.create(NS);
031  public final String[] alternatives;
032
033  @Override
034  public String toString() {
035    return prefixedName();
036  }
037
038  @Override
039  public String simpleName() {
040    return name();
041  }
042
043  @Override
044  public String[] alternativeNames() {
045    return alternatives;
046  }
047
048  @Override
049  public boolean isClass() {
050    return false;
051  }
052
053  @Override
054  public String prefix() {
055    return PREFIX;
056  }
057
058  @Override
059  public URI namespace() {
060    return NS_URI;
061  }
062
063  ExifTerm(String... alternatives) {
064    this.alternatives = alternatives;
065  }
066}