net.sourceforge.fluxion.datapublisher.owlgen
Class BeanIntrospector

java.lang.Object
  extended by net.sourceforge.fluxion.datapublisher.owlgen.BeanIntrospector

public class BeanIntrospector
extends java.lang.Object

Inspect annotations on a set of Beans. This allows creation of an OWL file representing the database. Usually, this class will be used by an OwlBeanModelMojo.

Version:
0.2
Author:
Tony Burdett

Constructor Summary
BeanIntrospector(java.util.Set<java.lang.Class> beans)
          Constructor for DatabaseBeanInspector.
 
Method Summary
 java.io.File createDatabaseOWL(java.net.URI owlURI, java.io.File owlFile)
          Create an owl file describing the concepts described by every bean in the set of beans describing a database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanIntrospector

public BeanIntrospector(java.util.Set<java.lang.Class> beans)
Constructor for DatabaseBeanInspector. Requires the set of bean classes and an output directory the beans will be written to.

Parameters:
beans - the set of classes to introspect
Method Detail

createDatabaseOWL

public java.io.File createDatabaseOWL(java.net.URI owlURI,
                                      java.io.File owlFile)
                               throws OWLGenerationException
Create an owl file describing the concepts described by every bean in the set of beans describing a database.

Parameters:
owlURI - the URI to set for this Ontology
owlFile - the actual location this OWL file will be written to
Returns:
the owl file describing the database
Throws:
OWLGenerationException - if the owl file could not be written correctly


Copyright © 2010. All Rights Reserved.