ua.gradsoft.termware
Class TypeConversion.TermToChar

java.lang.Object
  extended by ua.gradsoft.termware.TypeConversion.TermToChar
Enclosing class:
TypeConversion

public abstract static class TypeConversion.TermToChar
extends Object

user can set subclass of this class to receive default mapping from terms to chars.


Constructor Summary
TypeConversion.TermToChar()
           
 
Method Summary
abstract  char convert(Term t, TermWareInstance instance)
          convert t to boolean
 int possible(Term t, TermWareInstance instance)
          must return one from POSSIBLE, NOT_POSSIBLE, MAYBE_POSSIBLE user can override this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeConversion.TermToChar

public TypeConversion.TermToChar()
Method Detail

possible

public int possible(Term t,
                    TermWareInstance instance)
must return one from POSSIBLE, NOT_POSSIBLE, MAYBE_POSSIBLE user can override this method. default implementation return MAYBE_POSSIBLE


convert

public abstract char convert(Term t,
                             TermWareInstance instance)
                      throws ConversionException
convert t to boolean

Throws:
ConversionException