edu.stanford.smi.protege.model
Interface Instance
- All Superinterfaces:
- Comparable, Frame
- 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
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, isBeingDeleted, isDeleted, isEditable, isIncluded, isSystem, isValid, isValidOwnSlotValue, isVisible, markDeleted, markDeleting, moveOwnSlotValue, removeFrameListener, removeOwnSlotValue, setDirectOwnSlotValue, setDirectOwnSlotValues, setDocumentation, setDocumentation, setEditable, setIncluded, setName, setOwnFacetValue, setOwnFacetValues, setOwnSlotValue, setOwnSlotValues, setVisible, shallowCopy |
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)
setDirectTypes
public Instance setDirectTypes(Collection types)
addDirectType
public void addDirectType(Cls cls)
removeDirectType
public void removeDirectType(Cls cls)
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2005 Stanford University.