ua.gradsoft.termware
Class TypeConversion.TermToBoolean

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

public abstract static class TypeConversion.TermToBoolean
extends Object


Constructor Summary
TypeConversion.TermToBoolean()
           
 
Method Summary
abstract  boolean 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.TermToBoolean

public TypeConversion.TermToBoolean()
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 boolean convert(Term t,
                                TermWareInstance instance)
                         throws ConversionException
convert t to boolean

Throws:
ConversionException