Protege 2.1

edu.stanford.smi.protege.model
Interface Instance

All Superinterfaces:
Comparable, Frame, Serializable
All Known Subinterfaces:
Cls, Facet, SimpleInstance, Slot
All Known Implementing Classes:
DefaultCls, DefaultFacet, DefaultInstance, DefaultSimpleInstance, DefaultSlot

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, in Protege, all Frames are Instances so we could have actually combined these two interfaces. We choose not to. 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 addDirectType(Cls cls)
           
 void addInstanceListener(InstanceListener listener)
           
 Cls getDirectType()
          return the "first" direct type
 Collection getDirectTypes()
           
 Collection getReachableSimpleInstances()
           
 boolean hasDirectType(Cls cls)
           
 boolean hasType(Cls cls)
           
 void removeDirectType(Cls cls)
           
 void removeInstanceListener(InstanceListener listener)
           
 Instance setDirectType(Cls cls)
           
 
Methods inherited from interface edu.stanford.smi.protege.model.Frame
addFrameListener, addOwnFacetValue, addOwnSlotValue, areValidOwnSlotValues, copy, deepCopy, delete, getBrowserText, getDefiningProjectURI, getDirectOwnSlotValue, getDirectOwnSlotValues, getDocumentation, getFrameID, getIcon, getInvalidOwnSlotValuesText, getInvalidOwnSlotValueText, getKnowledgeBase, getName, getOwnFacetValue, getOwnFacetValues, getOwnSlotAllowsMultipleValues, getOwnSlotAndSubslotValues, getOwnSlotDefaultValues, getOwnSlotFacets, getOwnSlotFacetValues, getOwnSlots, getOwnSlotValue, getOwnSlotValueCount, getOwnSlotValues, getOwnSlotValueType, getProject, getReferences, getReferences, hasOwnSlot, isDeleted, isEditable, isIncluded, isSystem, isValid, isValidOwnSlotValue, isVisible, markDeleted, moveOwnSlotValue, removeFrameListener, removeOwnSlotValue, setDirectOwnSlotValue, setDirectOwnSlotValues, setDocumentation, setDocumentation, setEditable, setIncluded, setName, setOwnFacetValue, setOwnFacetValues, setOwnSlotValue, setOwnSlotValues, setVisible, shallowCopy
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

addInstanceListener

public void addInstanceListener(InstanceListener listener)

getDirectType

public Cls getDirectType()
return the "first" direct type


getDirectTypes

public Collection getDirectTypes()

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)

addDirectType

public void addDirectType(Cls cls)

removeDirectType

public void removeDirectType(Cls cls)

Protege 2.1

Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2004 Stanford University.