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 * Terms defined in the DNA extension.
023 *
024 * They aren't using the versioned namespace, which ought to be corrected in a future edition of the extension.
025 */
026public enum GbifMiqeTerm implements Term, AlternativeNames, Serializable {
027  ampliconSize,
028  amplificationReactionVolume,
029  amplificationReactionVolumeUnit,
030  annealingTemp,
031  annealingTempUnit,
032  automaticBaselineValue,
033  automaticThresholdQuantificationCycle,
034  baselineValue,
035  contaminationAssessment,
036  estimatedNumberOfCopies,
037  experimentalVariance,
038  partitionVolume,
039  partitionVolumeUnit,
040  pcr_analysis_software,
041  pcr_primer_lod,
042  pcr_primer_loq,
043  probeQuencher,
044  probeReporter,
045  quantificationCycle,
046  thresholdQuantificationCycle;
047
048  private static final String PREFIX = "gbifmiqe";
049  private static final String NS = "http://rs.gbif.org/terms/miqe/";
050  private static final URI NS_URI = URI.create(NS);
051  public final String[] alternatives;
052
053  @Override
054  public String toString() {
055    return prefixedName();
056  }
057
058  @Override
059  public String simpleName() {
060    return name();
061  }
062
063  @Override
064  public String[] alternativeNames() {
065    return alternatives;
066  }
067
068  @Override
069  public boolean isClass() {
070    return false;
071  }
072
073  @Override
074  public String prefix() {
075    return PREFIX;
076  }
077
078  @Override
079  public URI namespace() {
080    return NS_URI;
081  }
082
083  GbifMiqeTerm(String... alternatives) {
084    this.alternatives = alternatives;
085  }
086}