org.openrdf.elmo.codegen
Class CodeGenerator

java.lang.Object
  extended by org.openrdf.elmo.codegen.CodeGenerator
All Implemented Interfaces:
groovy.util.ResourceConnector

public class CodeGenerator
extends Object
implements groovy.util.ResourceConnector

Converts OWL ontologies into JavaBeans. This class can be used to create Elmo concepts or other JavaBean interfaces or classes.

Author:
James Leigh

Constructor Summary
CodeGenerator()
           
 
Method Summary
 void addOntologyPackage(URI ontology, String pkgName)
           
 void exportSourceCode(SourceCodeHandler handler)
           
 Class<?>[] getBaseClasses()
           
 URLConnection getResourceConnection(String name)
           
 void init()
           
 boolean isPropertyNamesPrefixed()
           
 void setBaseClasses(Class<?>[] baseClasses)
           
 void setGroovyScriptEngine(groovy.util.GroovyScriptEngine engine)
           
 void setPropertyNamesPrefixed(boolean prefixPropertyNames)
           
 void setRepository(Repository repository)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeGenerator

public CodeGenerator()
Method Detail

getBaseClasses

public Class<?>[] getBaseClasses()

setBaseClasses

public void setBaseClasses(Class<?>[] baseClasses)

isPropertyNamesPrefixed

public boolean isPropertyNamesPrefixed()

setPropertyNamesPrefixed

public void setPropertyNamesPrefixed(boolean prefixPropertyNames)

addOntologyPackage

public void addOntologyPackage(URI ontology,
                               String pkgName)

getResourceConnection

public URLConnection getResourceConnection(String name)
                                    throws groovy.util.ResourceException
Specified by:
getResourceConnection in interface groovy.util.ResourceConnector
Throws:
groovy.util.ResourceException

setRepository

public void setRepository(Repository repository)

setGroovyScriptEngine

public void setGroovyScriptEngine(groovy.util.GroovyScriptEngine engine)

init

public void init()
          throws Exception
Throws:
Exception

exportSourceCode

public void exportSourceCode(SourceCodeHandler handler)
                      throws Exception
Throws:
Exception


Copyright © 2004-2007. All Rights Reserved.