/* 
 * Copyright 2015 Key Bridge 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.assignment;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import us.gov.dod.standard.ssrf._3_1.AsgnFreqBase;
import us.gov.dod.standard.ssrf._3_1.metadata.domains.*;
import us.gov.dod.standard.ssrf._3_1.metadata.lists.ListCAU;

/**
 * FreqOld indicates a previously assigned single frequency or range of
 * frequencies.
 * <p>
 * Element of {@link Assigned}
 * <p>
 * @author Key Bridge LLC <developer@keybridge.ch>
 * @version 3.1.0, 03/30/2015
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "FreqOld")
public class FreqOld extends AsgnFreqBase {

  /**
   * Set the nominal frequency or minimum value of the frequency range.
   * <p>
   * @param value An instances of type {@link Double}.
   * @return The current FreqOld object instance.
   * @since 3.1.0
   */
  @Override
  public FreqOld withFreqMin(Double value) {
    setFreqMin(new FreqM(value));
    return this;
  }

  /**
   * Set the maximum value of the frequencies in the range.
   * <p>
   * [XSL ERR MINMAX] If FreqMax is used, it MUST be greater than FreqMin.
   * <p>
   * @param value An instances of type {@link Double}.
   * @return The current FreqOld object instance.
   * @since 3.1.0
   */
  @Override
  public FreqOld withFreqMax(Double value) {
    setFreqMax(new FreqM(value));
    return this;
  }

  /**
   * Set the reference frequency of a suppressed or reduced carrier sideband.
   * This item only applies to a single frequency and should not be used with a
   * range.
   * <p>
   * @param value An instances of type {@link Double}.
   * @return The current FreqOld object instance.
   * @since 3.1.0
   */
  @Override
  public FreqOld withRefFreq(Double value) {
    setRefFreq(new FreqM(value));
    return this;
  }

  /**
   * Set the intended usage of the frequency: transmit, receive or both.
   * <p>
   * @param value An instances of type {@link ListCAU}.
   * @return The current FreqOld object instance.
   * @since 3.1.0
   */
  @Override
  public FreqOld withFreqUse(ListCAU value) {
    setFreqUse(new TString(value.value()));
    return this;
  }

  /**
   * Get a string representation of this FreqOld instance configuration.
   * <p>
   * @return The current object instance configuration as a non-null String
   */
  @Override
  public String toString() {
    return "FreqOld {" + super.toString() + "}";
  }

  /**
   * Determine if the required fields in this SSRF data type instance are set.
   * <p>
   * {@link FreqOld} has no configuration requirements.
   * <p>
   * @return TRUE
   */
  @Override
  public boolean isSet() {
    return true;
  }

}

@@ -1,11 +1,10 @@
 /*
- 
 %0A * Copy
@@ -838,126 +838,8 @@
 ase;
-%0Aimport us.gov.dod.standard.ssrf._3_1.metadata.domains.*;%0Aimport us.gov.dod.standard.ssrf._3_1.metadata.lists.ListCAU;
 %0A%0A/*
@@ -1168,1680 +1168,20 @@
 Base
- %7B%0A%0A  /**%0A   * Set the nominal frequency or minimum value of the frequency range.%0A   * %3Cp%3E%0A   * @param value An instances of type %7B@link Double%7D.%0A   * @return The current FreqOld object instance.%0A   * @since 3.1.0%0A   */%0A  @Override%0A  public FreqOld withFreqMin(Double value) %7B%0A    setFreqMin(new FreqM(value));%0A    return this;%0A  %7D%0A%0A  /**%0A   * Set the maximum value of the frequencies in the range.%0A   * %3Cp%3E%0A   * %5BXSL ERR MINMAX%5D If FreqMax is used, it MUST be greater than FreqMin.%0A   * %3Cp%3E%0A   * @param value An instances of type %7B@link Double%7D.%0A   * @return The current FreqOld object instance.%0A   * @since 3.1.0%0A   */%0A  @Override%0A  public FreqOld withFreqMax(Double value) %7B%0A    setFreqMax(new FreqM(value));%0A    return this;%0A  %7D%0A%0A  /**%0A   * Set the reference frequency of a suppressed or reduced carrier sideband.%0A   * This item only applies to a single frequency and should not be used with a%0A   * range.%0A   * %3Cp%3E%0A   * @param value An instances of type %7B@link Double%7D.%0A   * @return The current FreqOld object instance.%0A   * @since 3.1.0%0A   */%0A  @Override%0A  public FreqOld withRefFreq(Double value) %7B%0A    setRefFreq(new FreqM(value));%0A    return this;%0A  %7D%0A%0A  /**%0A   * Set the intended usage of the frequency: transmit, receive or both.%0A   * %3Cp%3E%0A   * @param value An instances of type %7B@link ListCAU%7D.%0A   * @return The current FreqOld object instance.%0A   * @since 3.1.0%0A   */%0A  @Override%0A  public FreqOld withFreqUse(ListCAU value) %7B%0A    setFreqUse(new TString(value.value()));%0A    return this;%0A  %7D%0A%0A  /**%0A   * Get a string representation of this FreqOld instance configuration.%0A   * %3Cp%3E%0A   * @return The current object instance configuration as a non-null String%0A   */
+%3CFreqOld%3E %7B%0A
 %0A  @
@@ -1237,17 +1237,16 @@
 %22FreqOld
- 
 %7B%22 + sup
@@ -1265,255 +1265,11 @@
 ) + 
-%22%7D%22;%0A  %7D%0A%0A  /**%0A   * Determine if the required fields in this SSRF data type instance are set.%0A   * %3Cp%3E%0A   * %7B@link FreqOld%7D has no configuration requirements.%0A   * %3Cp%3E%0A   * @return TRUE%0A   */%0A  @Override%0A  public boolean isSet() %7B%0A    return true
+'%7D'
 ;%0A  

update to extend base class, remove duplicate Overrides