package org.gbif.api.vocabulary;

/*
 * Copyright 2013 Global Biodiversity Information Facility (GBIF)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import org.gbif.api.util.VocabularyUtils;

/**
 * Enumeration for all endpoint types.
 */
public enum EndpointType {
  /**
   * A single <a href="http://knb.ecoinformatics.org/software/eml/">EML metadata document</a> in any EML version.
   */
  EML,
  /**
   * Syndication feeds like RSS or ATOM of various flavors.
   * The feeds can serve very different purpose, for example if attached to an organisation it can be news items.
   * Attached to a technical installation like the IPT it should return the latest dataset resources.
   */
  FEED,
  /**
   * An OGC Web Feature Service.
   */
  WFS,
  /**
   * An OGC Web Map Service.
   */
  WMS,
  /**
   * Taxon Concept data given as RDF
   * based on the <a href="http://rs.tdwg.org/ontology/voc/TaxonConcept.rdf">TDWG ontology</a>.
   */
  TCS_RDF,
  /**
   * A Taxon Concept Schema document.
   * @see <a href="http://www.tdwg.org/standards/117/">TDWG TCS Standard</a>.
   */
  TCS_XML,
  /**
   * A Darwin Core Archive as defined by the <a href="http://rs.tdwg.org/dwc/terms/guides/text/index.htm">Darwin Core Text Guidelines</a>.
   */
  DWC_ARCHIVE,
  /**
   * A <a href="http://digir.sourceforge.net/">DiGIR</a> service endpoint.
   */
  DIGIR,
  /**
   * A DiGIR service slightly modified for the MANIS network.
   */
  DIGIR_MANIS,
  /**
   * A <a href="http://www.tdwg.org/dav/subgroups/tapir/1.0/docs/">TAPIR</a> service.
   */
  TAPIR,
  /**
   * A <a href="http://www.biocase.org/products/protocols/index.shtml">BioCASe</a> protocl compliant service.
   */
  BIOCASE,
  /**
   * The Open Archives Initiative Protocol for Metadata Harvesting.
   * A <a href="http://www.openarchives.org/OAI/openarchivesprotocol.html">OAI-PMH</a> compliant data provider service.
   */
  OAI_PMH,
  /**
   * Any other service not covered by this enum so far.
   */
  OTHER;

  /**
   * @return the matching EndpointType or null
   */
  public static EndpointType fromString(String endpointType) {
    return (EndpointType) VocabularyUtils.lookupEnum(endpointType, EndpointType.class);
  }

}

@@ -1705,17 +1705,8 @@
 ext/
-index.htm
 %22%3EDa
@@ -2117,19 +2117,8 @@
 ols/
-index.shtml
 %22%3EBi
@@ -2133,16 +2133,17 @@
 %3E protoc
+o
 l compli
@@ -2174,24 +2174,242 @@
 CASE,%0A  /**%0A
+   * A %3Ca href=%22http://www.biocase.org/products/protocols/%22%3EBioCASe%3C/a%3E XML Archive, as explained by the%0A   * %3Ca href=%22http://wiki.bgbm.org/bps/index.php/Archiving%22%3EBioCASe wiki%3C/a%3E.%0A   */%0A  BIOCASE_XML_ARCHIVE,%0A  /**%0A
    * The Ope
@@ -2815,23 +2815,8 @@
 turn
- (EndpointType)
  Voc

Add additional endpoint type, BIOCASE_XML_ARCHIVE.