/* 
 * Copyright 2014 Key Bridge Global LLC.
 *
 * 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 us.gov.dod.standard.ssrf._3_1.metadata.lists;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
import us.gov.dod.standard.ssrf._3_1.toa.Variance;

/**
 * Enumerated values for fields using the ListCAV type.
 * <p>
 * Used in {@link Variance}
 * <p>
 * @author Jesse Caulfield
 * @version SSRF 3.1.0, 10/01/2014
 */
@XmlType(name = "ListCAV")
@XmlEnum
public enum ListCAV {

  @XmlEnumValue("Additional")
  ADDITIONAL("Additional"),
  @XmlEnumValue("Different")
  DIFFERENT("Different");
  private final String value;

  ListCAV(String v) {
    value = v;
  }

  public String value() {
    return value;
  }

  public static ListCAV fromValue(String v) {
    for (ListCAV c : ListCAV.values()) {
      if (c.value.equals(v)) {
        return c;
      }
    }
    throw new IllegalArgumentException(v);
  }

}

@@ -906,16 +906,68 @@
 %0A * %3Cp%3E%0A
+ * This is used to identify a Variance TYPE.%0A * %3Cp%3E%0A
  * Used 
@@ -1124,118 +1124,564 @@
 %0A%0A  
-@XmlEnumValue(%22Additional%22)%0A  ADDITIONAL(%22Additional%22),%0A  @XmlEnumValue(%22Different%22)%0A  DIFFERENT(%22Different%22);
+/**%0A   * Addition. Indicates that this variance service type extends (e.g.%0A   * supplements) the parent allocation.%0A   */%0A  @XmlEnumValue(%22Additional%22)%0A  ADDITIONAL(%22Additional%22),%0A  /**%0A   * Modification. Indicates that this variance service type changes (e.g.%0A   * modifies) the parent allocation.%0A   */%0A  @XmlEnumValue(%22Different%22)%0A  DIFFERENT(%22Different%22);%0A  /**%0A   * Exclude. (Unofficial). Indicates that this variance service type is NOT%0A   * allowed (e.g. excluded) from the parent allocation.%0A   */%0A//  @XmlEnumValue(%22Exclude%22)  EXCLUDE(%22Exclude%22);%0A
 %0A  p

add list entry documentation and placeholder for possible (future) "EXCLUDE" variance type