package step.core; import java.io.*; public abstract class StepGenericInstance implements StepObject { public String toString() { return toString(""); } public abstract String toString(String tab); public String toString(StepAbstractRepository repo) throws Exception { StringWriter sw = new StringWriter(); StepGenericWriter stepWriter = new StepGenericWriter(repo, new BufferedWriter(sw)); this.accept(stepWriter); return sw.toString(); } public abstract int size(); public abstract void accept(StepAbstractRepositoryVisitor visitor) throws Exception ; }