001/* 002 * Licensed under the Apache License, Version 2.0 (the "License"); 003 * you may not use this file except in compliance with the License. 004 * You may obtain a copy of the License at 005 * 006 * http://www.apache.org/licenses/LICENSE-2.0 007 * 008 * Unless required by applicable law or agreed to in writing, software 009 * distributed under the License is distributed on an "AS IS" BASIS, 010 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 011 * See the License for the specific language governing permissions and 012 * limitations under the License. 013 */ 014package org.gbif.api.model.pipelines; 015 016/** Enum to represent the pipelines step names. */ 017public enum StepType { 018 019 // Interpretaion 020 TO_VERBATIM("toVerbatim"), 021 DWCA_TO_VERBATIM("dwcaToVerbatim"), 022 XML_TO_VERBATIM("xmlToVerbatim"), 023 ABCD_TO_VERBATIM("abcdToVerbatim"), 024 VERBATIM_TO_IDENTIFIER("verbatimToIdentifier"), 025 VERBATIM_TO_INTERPRETED("verbatimToInterpreted"), 026 INTERPRETED_TO_INDEX("interpretedToIndex"), 027 HDFS_VIEW("hdfsView"), 028 FRAGMENTER("fragmenter"), 029 EVENTS_VERBATIM_TO_INTERPRETED("eventsVerbatimToInterpreted"), 030 EVENTS_INTERPRETED_TO_INDEX("eventsInterpretedToIndex"), 031 EVENTS_HDFS_VIEW("eventsHdfsView"), 032 033 // Validator 034 VALIDATOR_UPLOAD_ARCHIVE("validatorUploadArchive"), 035 VALIDATOR_VALIDATE_ARCHIVE("validatorValidateArchive"), 036 VALIDATOR_DWCA_TO_VERBATIM("validatorDwcaToVerbatim"), 037 VALIDATOR_XML_TO_VERBATIM("validatorXmlToVerbatim"), 038 VALIDATOR_ABCD_TO_VERBATIM("validatorAbcdToVerbatim"), 039 VALIDATOR_TABULAR_TO_VERBATIM("validatorTabularToVerbatim"), 040 VALIDATOR_VERBATIM_TO_INTERPRETED("validatorVerbatimToInterpreted"), 041 VALIDATOR_INTERPRETED_TO_INDEX("validatorInterpretedToIndex"), 042 VALIDATOR_COLLECT_METRICS("validatorCollectMetrics"); 043 044 StepType(String label) { 045 this.label = label; 046 } 047 048 private String label; 049 050 public String getLabel() { 051 return label; 052 } 053}