org.openrdf.elmo.codegen
Class CodeGenerator
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodeGenerator
public CodeGenerator()
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.