|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.fluxion.datasource.utils.BeanUtils
public class BeanUtils
A utility class, containing methods for manipulating owl in tems of the underlying javabean model. Static methods exist in this class to look for various annotations, and work out whether a bean can be queried directly, and so on.
QueryUtils| Constructor Summary | |
|---|---|
BeanUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getBeanInstanceUniqueId(java.lang.Object beanInstance)
Get the Unique Id for a given beanInstance. |
static java.lang.Class<?> |
getClassFromFilter(java.lang.Class<? extends Filter> filterClass)
|
static java.lang.Class<? extends Filter> |
getFilterFromClass(java.lang.Class<?> beanClass)
Get the filter paired to this bean class. |
static java.lang.Class |
getRelatedBeanClass(org.semanticweb.owl.model.OWLClass owlClass,
org.semanticweb.owl.model.OWLOntology ontology)
Looks for the value of the RelatedBean annotation on the given OWL class. |
static java.lang.reflect.Method |
getRelatedBeanMethod(java.lang.Class beanClass,
org.semanticweb.owl.model.OWLProperty owlProperty,
org.semanticweb.owl.model.OWLOntology ontology)
Looks up the value of the relatedMethod annotation on the given OWL property. |
static boolean |
isBeanClass(org.semanticweb.owl.model.OWLClass owlClass,
org.semanticweb.owl.model.OWLOntology ontology)
Checks whether the passed class has a "RelatedBean" annotation. |
static boolean |
isBeanMethod(org.semanticweb.owl.model.OWLProperty owlProperty,
org.semanticweb.owl.model.OWLOntology ontology)
Checks whether the given property has a "relatedMethod" annotation attached |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanUtils()
| Method Detail |
|---|
public static java.lang.String getBeanInstanceUniqueId(java.lang.Object beanInstance)
throws MissingElementException
beanInstance - the bean instance we want a unique id for
MissingElementException - if there is a problem with the beanInstance
supplied
public static boolean isBeanClass(org.semanticweb.owl.model.OWLClass owlClass,
org.semanticweb.owl.model.OWLOntology ontology)
owlClass - the owlClass being assessedontology - the ontology to search against
public static java.lang.Class getRelatedBeanClass(org.semanticweb.owl.model.OWLClass owlClass,
org.semanticweb.owl.model.OWLOntology ontology)
throws OWLTransformationException,
MissingElementException
owlClass - the owlClass we want the bean forontology - the ontology that contains the OWLClass we're retrieving
the bean class for
OWLTransformationException - if there was a problem with loading class
specified by the RelatedBean annotation
MissingElementException - if there is no RelatedBean annotationon the
class
public static boolean isBeanMethod(org.semanticweb.owl.model.OWLProperty owlProperty,
org.semanticweb.owl.model.OWLOntology ontology)
owlProperty - the owl property being inspectedontology - the ontology containing this OWLProperty
public static java.lang.reflect.Method getRelatedBeanMethod(java.lang.Class beanClass,
org.semanticweb.owl.model.OWLProperty owlProperty,
org.semanticweb.owl.model.OWLOntology ontology)
throws OWLTransformationException,
MissingElementException
beanClass - the bean we're looking up methods onowlProperty - the property we want to look up the relatedMethod forontology - the ontology containing this OWLProperty
OWLTransformationException - if there is a problem accessing the owl
MissingElementException - if the relatedMethod annotation
public static java.lang.Class<? extends Filter> getFilterFromClass(java.lang.Class<?> beanClass)
throws OWLTransformationException,
MissingElementException
beanClass - the bean class being inspected for associated filters
OWLTransformationException - if the filter cannot be found, or if the
value of the annotation points to a
class which is not a Filter
MissingElementException - if there is no FilterAnn present on the
given bean class
public static java.lang.Class<?> getClassFromFilter(java.lang.Class<? extends Filter> filterClass)
throws MissingElementException,
java.lang.ClassNotFoundException
MissingElementException
java.lang.ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||