ua.gradsoft.termware
Class TypeConversion.ObjectToTerm

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

public abstract class TypeConversion.ObjectToTerm
extends Object

callback class for object to term conversion.


Constructor Summary
TypeConversion.ObjectToTerm()
           
 
Method Summary
abstract  Term convert(Object o, TermWareInstance instance)
          convert object to term
 int possible(Object o, 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.ObjectToTerm

public TypeConversion.ObjectToTerm()
Method Detail

possible

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


convert

public abstract Term convert(Object o,
                             TermWareInstance instance)
                      throws ConversionException
convert object to term

Throws:
ConversionException