org.openrdf.elmo.codegen
Class FileSourceCodeHandler

java.lang.Object
  extended by org.openrdf.elmo.codegen.FileSourceCodeHandler
All Implemented Interfaces:
SourceCodeHandler

public class FileSourceCodeHandler
extends Object
implements SourceCodeHandler

Saves the generated source code from CodeGenerator to disk.

Author:
James Leigh

Constructor Summary
FileSourceCodeHandler()
           
FileSourceCodeHandler(File target)
           
 
Method Summary
 List<String> getAbstractClasses()
           
 List<String> getAnnotatedClasses()
           
 List<String> getClasses()
           
 List<String> getConcreteClasses()
           
 File getTarget()
           
 void handleSource(File file)
           
 void handleSource(String code)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSourceCodeHandler

public FileSourceCodeHandler()
                      throws IOException
Throws:
IOException

FileSourceCodeHandler

public FileSourceCodeHandler(File target)
Method Detail

getTarget

public File getTarget()

getConcreteClasses

public List<String> getConcreteClasses()

getAbstractClasses

public List<String> getAbstractClasses()

getAnnotatedClasses

public List<String> getAnnotatedClasses()

getClasses

public List<String> getClasses()

handleSource

public void handleSource(String code)
                  throws IOException
Specified by:
handleSource in interface SourceCodeHandler
Throws:
IOException

handleSource

public void handleSource(File file)
                  throws IOException
Throws:
IOException


Copyright © 2004-2008 Aduna. All Rights Reserved.