|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OntologyModificationListener
Objects wishing to listen to various ontology events, must implement this interface (using implements java keyword) and the methods of this interface. They must get registered themselves with the respective ontology by using the ontology.addOntologyModificationListener(OntologyModificationListener) method.
Method Summary | |
---|---|
void |
ontologyReset(Ontology ontology)
This method is called whenever ontology is reset. |
void |
resourceAdded(Ontology ontology,
OResource resource)
This method is invoked whenever a resource (class/property/instance) is added to the ontology. |
void |
resourcePropertyValueChanged(Ontology ontology,
OResource resource,
RDFProperty property,
Object value,
int eventType)
This method should be invoked when a property value is added or removed (specified by the event type). |
void |
resourceRelationChanged(Ontology ontology,
OResource resource1,
OResource resource2,
int eventType)
This method is invoked whenever a relation between two objects of the same class (e.g. |
void |
resourcesRemoved(Ontology ontology,
String[] resources)
This method is invoked whenever a resource (class/property/instance) is removed from the ontology. |
Method Detail |
---|
void resourceRelationChanged(Ontology ontology, OResource resource1, OResource resource2, int eventType)
ontology
- the source of the eventresource1
- the affected OResourceresource2
- the affected OResourceeventType
- the type of an event (@see OConstants) for more
detailsvoid resourcePropertyValueChanged(Ontology ontology, OResource resource, RDFProperty property, Object value, int eventType)
ontology
- the source of the eventresource
- the affected resource whose property value is added or removedproperty
- the property whose value has been added or removedvalue
- the actual value that is added or removed. If the value is null - it indicates all the values related to the property are deleted.eventType
- type of the event (@see OConstants) for more detailsvoid resourcesRemoved(Ontology ontology, String[] resources)
ontology
- the source of the eventresources
- an array of URIs of resources which were deleted
(including the resource which was asked to be deleted).void resourceAdded(Ontology ontology, OResource resource)
ontology
- the source of the eventresource
- an instance of OResource, which was created as a
result of addition of a resource.void ontologyReset(Ontology ontology)
ontology
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |