package edu.calpoly.cpe205.fetter; import javax.swing.*; import java.util.*; import java.io.*; import java.lang.reflect.*; import java.lang.*; import java.awt.*; import javax.swing.event.*; import java.awt.event.*; /** * Classes that want to provide information about a field (type, name, value) * to other ETA classes or allow other ETA classes to change the value of a * field must implement this interface. */ // author: Phillip Hansen // Version History: // Nov 20, 2000 - comments/pseudocode added // Nov 30, 2000 - (Michael Hebron) changed class description public interface FieldDataInterface { /** * sets the value of the Field object *

* Pre-conditions: none
* Post-conditions: none * @param data ParameterDataInterface to be used in setting the field */ public void setValue(ParameterDataInterface data); /** * updates the value of the field *

* Pre-conditions: none
* Post-conditions: none */ public void updateValue(); /** * creates a primitive object and adds it to the parameter data pool *

* Pre-conditions: val is a primitive
* Post-conditions: none * @param val value to be created and added to the parameter data pool */ public void createPrimitive(String val); /** * returns the name of the class that this field is declared in *

* Pre-conditions: none
* Post-conditions: none * @return String containing the name of the class the field is declared in */ public String getDeclaringClass(); /** * returns the type of field *

* Pre-conditions: none
* Post-conditions: none * @return String containing the type of field */ public String getType(); /** * returns the modifiers of the field *

* Pre-conditions: none
* Post-conditions: none * @return int containing the modifiers */ public int getModifiers(); /** * returns the name of the field *

* Pre-conditions: none
* Post-conditions: none * @return String containing the name of the field */ public String getName(); }