de.xabsl.jxabslx.symbols
Class EnumeratedOutputSymbolImpl

java.lang.Object
  extended by de.xabsl.jxabslx.symbols.EnumeratedOutputSymbolImpl
All Implemented Interfaces:
EnumeratedOutputSymbol

public class EnumeratedOutputSymbolImpl
extends java.lang.Object
implements EnumeratedOutputSymbol

An implementation for an enumerated output symbol. Takes its values from an Input object, writes values via an Output object and converts via an EnumeratedConversion.


Constructor Summary
EnumeratedOutputSymbolImpl(Enumeration enumeration, Output output, Input input, EnumeratedConversion conversion, DebugMessages debug)
          Constructor
 
Method Summary
 Enumeration getEnumeration()
           
 java.lang.Object getValue()
           
 void setValue(java.lang.Object value)
          Sets the symbol's value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumeratedOutputSymbolImpl

public EnumeratedOutputSymbolImpl(Enumeration enumeration,
                                  Output output,
                                  Input input,
                                  EnumeratedConversion conversion,
                                  DebugMessages debug)
Constructor

Parameters:
enumeration - the enumeration which is the domain of this symbol
output - a value goes here
input - a value comes from here
conversion - is converted via this conversion
debug - for debugging output
Method Detail

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface EnumeratedOutputSymbol
Returns:
the symbol's value

setValue

public void setValue(java.lang.Object value)
Description copied from interface: EnumeratedOutputSymbol
Sets the symbol's value

Specified by:
setValue in interface EnumeratedOutputSymbol
Parameters:
value - the symbols new value

getEnumeration

public Enumeration getEnumeration()
Specified by:
getEnumeration in interface EnumeratedOutputSymbol
Returns:
the enumeration that is the domain of the symbol