/*
 * Copyright 2014 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.
 */
package org.gbif.api.vocabulary;

/**
 * The taxonomic status of a taxon.
 * For synonyms more detailed status values are provided which "subclass" synonym.
 *
 * @see <a href="http://rs.gbif.org/vocabulary/gbif/taxonomic_status.xml">rs.gbif.org vocabulary</a>
 */
public enum TaxonomicStatus {

  ACCEPTED,

  /**
   * Treated as accepted, but doubtful whether this is correct.
   */
  DOUBTFUL,

  /**
   * A general synonym, the exact type is unknown.
   */
  SYNONYM,

  /**
   * More specific subclass of SYNONYM.
   */
  HETEROTYPIC_SYNONYM,

  /**
   * More specific subclass of SYNONYM.
   */
  HOMOTYPIC_SYNONYM,

  /**
   * More specific subclass of SYNONYM.
   */
  PROPARTE_SYNONYM,

  /**
   * More specific subclass of SYNONYM.
   */
  MISAPPLIED,

  /**
   * Used in nub only.
   */
  @Deprecated
  INTERMEDIATE_RANK_SYNONYM,

  /**
   * Used for unknown child taxa referred to via spec, ssp, ...
   */
  @Deprecated
  DETERMINATION_SYNONYM;

  public boolean isSynonym() {
    return this != ACCEPTED && this != DOUBTFUL;
  }

}

@@ -1613,16 +1613,79 @@
 nym() %7B%0A
+    return !isAccepted();%0A  %7D%0A%0A  public boolean isAccepted() %7B%0A
     retu
@@ -1692,17 +1692,17 @@
 rn this 
-!
+=
 = ACCEPT
@@ -1708,17 +1708,17 @@
 TED 
-&&
+%7C%7C
  this 
-!
+=
 = DO
@@ -1729,11 +1729,10 @@
 UL;%0A  %7D%0A
-%0A
 %7D%0A

Add isAccepted() convenience method