cuba.util
Class GeneratorResult

java.lang.Object
  extended by cuba.util.GeneratorResult

public class GeneratorResult
extends java.lang.Object

Transferobject for embedded calls (IDE-Plugins). Returns a list of file locations and a list of messages.

Author:
dbt

Constructor Summary
GeneratorResult()
           
 
Method Summary
 void addFile(GeneratedFile code)
           
 void addInfo(java.lang.String info)
           
 void addMessage(GeneratedMessage message)
           
 void dump()
          Dump the complete generator result by writing all messages to either standard out or standard err and writing all generated output to the file system.
 GeneratedMessage[] getMessages()
           
 GeneratedFile[] getOutput()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratorResult

public GeneratorResult()
Method Detail

getMessages

public GeneratedMessage[] getMessages()

getOutput

public GeneratedFile[] getOutput()

addFile

public void addFile(GeneratedFile code)

addMessage

public void addMessage(GeneratedMessage message)

addInfo

public void addInfo(java.lang.String info)

dump

public void dump()
          throws GeneratorException
Dump the complete generator result by writing all messages to either standard out or standard err and writing all generated output to the file system. This function is of interest for command line variants of the generators

Throws:
GeneratorException