Class KGCLTextTranslator

java.lang.Object
org.incenp.obofoundry.kgcl.ChangeVisitorBase<String>
org.incenp.obofoundry.kgcl.KGCLTextTranslator
All Implemented Interfaces:
IChangeVisitor<String>

public class KGCLTextTranslator extends ChangeVisitorBase<String>
A visitor to convert a list of KGCL Change objects into their textual representation in the KGCL language.

This class is primarily intended for internal use by KGCLWriter objects. However it may also be used directly by client code to obtain the string representation of a KGCL change without writing to a file or file-like object:

 Change change = ... ;
 KGCLTextTranslator visitor = new KGCLTextTranslator();
 String changeAsText = change.accept(visitor);