|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.semanticweb.owl.impl.model.OWLObjectImpl
A top level class for the kinds of things that are found in Ontologies. Each OWLObject knows about the OWLDataFactory that was used to create it. OWLObjects also accept visits from OWLObjectVisitor.
The use of the Visitor pattern (see Design
Patterns, Gamma et. al. p.331) allows us to extend the functionality of the data structures without having to alter the underlying implementation.
| Constructor Summary | |
OWLObjectImpl(OWLDataFactoryImpl factory)
|
|
| Method Summary | |
abstract void |
accept(OWLObjectVisitor visitor)
Accept a visit from a visitor |
Object |
clone()
|
Set |
getAnnotations()
Returns annotations on the object. |
Set |
getAnnotations(OWLOntology o)
Returns the annotatsion in the given ontology. |
OWLObject[] |
getContainedObjects()
Return any objects which are contained within this object. |
Map |
getMetadata()
Return the generic metadata structure. |
OWLConnection |
getOWLConnection()
Returns the Connection of this object |
OWLDataFactory |
getOWLDataFactory()
Returns an OWLDataFactory |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OWLObjectImpl(OWLDataFactoryImpl factory)
| Method Detail |
public OWLObject[] getContainedObjects()
getContainedObjects in interface OWLObjectOWLObject[], or null.public OWLDataFactory getOWLDataFactory()
getOWLDataFactory in interface OWLObjectpublic Object clone()
clone in interface OWLObjectclone in class Object
public abstract void accept(OWLObjectVisitor visitor)
throws OWLException
accept in interface OWLObjectOWLExceptionpublic Map getMetadata()
getMetadata in interface OWLObjectpublic OWLConnection getOWLConnection()
OWLObject
getOWLConnection in interface OWLObjectpublic Set getAnnotations(OWLOntology o)
getAnnotations in interface OWLObjectpublic Set getAnnotations()
getAnnotations in interface OWLObject
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||