ua.gradsoft.termware
Class TypeConversion.TermToObject

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

public abstract static class TypeConversion.TermToObject
extends Object


Constructor Summary
TypeConversion.TermToObject()
           
 
Method Summary
abstract  Object convert(Term t, TermWareInstance instance)
          convert t to object
 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.TermToObject

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

Throws:
ConversionException