ua.gradsoft.termware
Class TypeConversion.TermToString

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

public abstract static class TypeConversion.TermToString
extends Object


Constructor Summary
TypeConversion.TermToString()
           
 
Method Summary
abstract  String convert(Term t, TermWareInstance instance)
          convert t to string
 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.TermToString

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

Throws:
ConversionException