Protege-2000 1.7

edu.stanford.smi.protege.model
Interface Instance

All Superinterfaces:
Comparable, Frame
All Known Subinterfaces:
Cls, Facet, SimpleInstance, Slot
All Known Implementing Classes:
DefaultInstance

public interface Instance
extends Frame

An instance of a class. The class is refered to as the direct type. An instance can only have one direct type. Note that classes and slots are also instances and implement this interface. "Simple Instances" are instances which are not classes, slots, or facets. They have their own interface SimpleInstance.

Author:
Ray Fergerson

Method Summary
 void addInstanceListener(InstanceListener listener)
           
 Cls getDirectType()
           
 Collection getReachableSimpleInstances()
           
 boolean hasDirectType(Cls cls)
           
 boolean hasType(Cls cls)
           
 void removeInstanceListener(InstanceListener listener)
           
 Instance setDirectType(Cls cls)
           
 
Methods inherited from interface edu.stanford.smi.protege.model.Frame
addFrameListener, addOwnFacetValue, addOwnSlotValue, areValidOwnSlotValues, deepCopy, delete, getBrowserText, getDocumentation, getFrameID, getInvalidOwnSlotValuesText, getInvalidOwnSlotValueText, getKnowledgeBase, getName, getOwnFacetValue, getOwnFacetValues, getOwnSlotAllowsMultipleValues, getOwnSlotAndSubslotValues, getOwnSlotDefaultValues, getOwnSlotFacets, getOwnSlotFacetValues, getOwnSlots, getOwnSlotValue, getOwnSlotValueCount, getOwnSlotValues, getOwnSlotValueType, getProject, getReferences, getReferences, hasOwnSlot, isEditable, isIncluded, isSystem, isValid, isValidOwnSlotValue, isVisible, moveOwnSlotValue, removeFrameListener, removeOwnSlotValue, setDocumentation, setDocumentation, setEditable, setIncluded, setName, setOwnFacetValue, setOwnFacetValues, setOwnSlotValue, setOwnSlotValues, setVisible
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

addInstanceListener

public void addInstanceListener(InstanceListener listener)

getDirectType

public Cls getDirectType()

getReachableSimpleInstances

public Collection getReachableSimpleInstances()

hasDirectType

public boolean hasDirectType(Cls cls)

hasType

public boolean hasType(Cls cls)

removeInstanceListener

public void removeInstanceListener(InstanceListener listener)

setDirectType

public Instance setDirectType(Cls cls)

Protege-2000 1.7

Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.