/*
 * MIT License
 *
 * Copyright (c) 2016 Andrew Michael Teller(https://github.com/AndrewMiTe)
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

package client;

/**
 *
 * @author Andrew M. Teller(https://github.com/AndrewMiTe)
 */
public abstract class DataItem {
  
  /**
   * @see #setRequirement
   */
private String requirement = null;

  /**
   * Returns the required input that this data item satisfies. Returns a null
   * value if it fulfills no required input.
   * @return the required input that the item satisfies.
   */
  public RequiredInput getRequirement() {
    return RequiredInput.valueOf(requirement);
  }
  
  /**
   * @param requirement requirement that the text fulfills.
   * @return this data item.
   */
  public DataItem setRequirement(RequiredInput requirement) {
    this.requirement = requirement.name();
    return this;
  }
  
}

@@ -1269,110 +1269,31 @@
 lic 
-abstract class DataItem %7B%0A  %0A  /**%0A   * @see #setRequirement%0A   */%0Aprivate String requirement = null;%0A
+interface DataItem %7B%0A  
 %0A  /
@@ -1524,61 +1524,9 @@
 nt()
- %7B%0A    return RequiredInput.valueOf(requirement);%0A  %7D
+;
 %0A  %0A
@@ -1689,74 +1689,9 @@
 ent)
- %7B%0A    this.requirement = requirement.name();%0A    return this;%0A  %7D
+;
 %0A  %0A

Revert "DataItem from interface to abstract class."