|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.jastor.inference.OntologyClass
public class OntologyClass
This class is a wrapper for an ontology class. Most of the time, the containing ontology class is a name classes but occasionally, instances are internally used as place holders for restrictions.
| Constructor Summary | |
|---|---|
OntologyClass(Class ontClass,
JastorContext ctx)
Construct an OntologyClass wrapper around the given org.openanzo.owl.Class. |
|
OntologyClass(JastorContext ctx)
Construct a new OntologyClass to represent a Thing. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
Restriction |
findCardinalityRestrictionInSubClassHierarchy(OntologyProperty prop)
Finds a cardinality restriction in sub-class hierarchy for the given property. |
OntologyComment |
getComment()
Get the comment for this class |
JastorContext |
getContext()
Get the context for this ontology |
java.lang.String |
getFactoryClassname()
Get the classname for this class's parent factory |
java.io.File |
getFactoryFile(java.io.File baseDir)
Get the file for this class's parent factory |
java.lang.String |
getFactoryFullClassname()
Get the full classname for this class's parent factory |
java.lang.String |
getImplClassname()
Get the classname for this class's implementation |
java.io.File |
getImplFile(java.io.File baseDir)
Get the file for this class's implementation |
java.lang.String |
getImplFullClassname()
Get the full classname for this class's implementation |
java.lang.String |
getIndividualIdentifierName(org.openrdf.model.Resource ind)
Get the identifier name for the given individual |
java.lang.String |
getInterfaceClassname()
Get the classname for this class's interface |
java.io.File |
getInterfaceFile(java.io.File baseDir)
Get the file for this class's interface |
java.lang.String |
getInterfaceFullClassname()
Get the full classname for this class's interface |
java.lang.String |
getListenerAdapterClassname()
Get the classname for this class's listener adapter |
java.io.File |
getListenerAdapterFile(java.io.File baseDir)
Get the file for this class's listener adapter |
java.lang.String |
getListenerAdapterFullClassname()
Get the full classname for this class's listener adapter |
java.lang.String |
getListenerClassname()
Get the classname for this class's listener |
java.io.File |
getListenerFile(java.io.File baseDir)
Get the file for this class's listener |
java.lang.String |
getListenerFullClassname()
Get the full classname for this class's listener |
java.lang.String |
getLocalName()
Get the local name of this classes uri |
Class |
getOntClass()
Get the Jastor Class bean for this class |
java.lang.String |
getPackageName()
Get the package name for the class |
org.openrdf.model.URI |
getURI()
Get the URI for this class |
java.lang.String |
getVariableName()
Return a string that can be used to represent one of these as an instance variable |
boolean |
isAncestor(OntologyClass oc)
Get whether or not the given class is an ancestor of this class. |
boolean |
isEnumeratedClass()
Is this an enumerated class |
java.util.List<OntologyClass> |
listAllExtensionClasses()
Get a deep listing of all named extension classes. |
java.util.List<OntologyClass> |
listImmediateExtensionClasses()
Get a list of immediate extension classes derived from subClassOf, intersectionOf and unionOf |
java.util.List<org.openrdf.model.Resource> |
listIndividuals()
List all individuals for this type |
java.util.List<org.openrdf.model.Resource> |
listOneOfClasses()
Return the oneOf classes |
java.util.List<OntologyProperty> |
listProperties(boolean includeExtensionClasses)
Get list of OntologyProperties for the class |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OntologyClass(JastorContext ctx)
ctx - parent context for this class
public OntologyClass(Class ontClass,
JastorContext ctx)
ontClass - Jastor class beanctx - parent context for this class| Method Detail |
|---|
public JastorContext getContext()
public Class getOntClass()
public org.openrdf.model.URI getURI()
public java.lang.String getLocalName()
public OntologyComment getComment()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String getVariableName()
public java.lang.String getInterfaceFullClassname()
public java.lang.String getImplFullClassname()
public java.lang.String getListenerFullClassname()
public java.lang.String getListenerAdapterFullClassname()
public java.io.File getInterfaceFile(java.io.File baseDir)
baseDir - directory where file is to be created
public java.io.File getImplFile(java.io.File baseDir)
baseDir - directory where file is to be created
public java.io.File getListenerFile(java.io.File baseDir)
baseDir - directory where file is to be created
public java.io.File getListenerAdapterFile(java.io.File baseDir)
baseDir - directory where file is to be created
public java.lang.String getInterfaceClassname()
public java.lang.String getImplClassname()
public java.lang.String getListenerClassname()
public java.lang.String getListenerAdapterClassname()
public java.lang.String getPackageName()
public java.lang.String getFactoryFullClassname()
public java.lang.String getFactoryClassname()
public java.io.File getFactoryFile(java.io.File baseDir)
baseDir - directory where file is to be created
public boolean isAncestor(OntologyClass oc)
oc - class to check ancestorial status
public java.util.List<OntologyProperty> listProperties(boolean includeExtensionClasses)
includeExtensionClasses - whether or not to include properties in extensions from subClassOf, interesectionOf, and unionOf
public java.util.List<OntologyClass> listAllExtensionClasses()
public java.util.List<OntologyClass> listImmediateExtensionClasses()
public Restriction findCardinalityRestrictionInSubClassHierarchy(OntologyProperty prop)
throws JastorException
prop - property to check
JastorExceptionpublic java.util.List<org.openrdf.model.Resource> listIndividuals()
public java.lang.String getIndividualIdentifierName(org.openrdf.model.Resource ind)
ind - resource of individual
public boolean isEnumeratedClass()
public java.util.List<org.openrdf.model.Resource> listOneOfClasses()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||