Protege-2000 1.7

edu.stanford.smi.protege.model
Class DefaultInstance

java.lang.Object
  |
  +--edu.stanford.smi.protege.model.DefaultFrame
        |
        +--edu.stanford.smi.protege.model.DefaultInstance
All Implemented Interfaces:
Comparable, Frame, Instance
Direct Known Subclasses:
DefaultCls, DefaultFacet, DefaultSimpleInstance, DefaultSlot

public abstract class DefaultInstance
extends DefaultFrame
implements Instance

Default implementation of Instance interface. Forwards all method calls to its DefaultKnowledgeBase. This is the base class of all of the concrete frame classes such as those for slot, class, etc.

Author:
Ray Fergerson

Method Summary
 void addInstanceListener(InstanceListener listener)
           
 Frame deepCopy(KnowledgeBase targetKB, Map valueMap)
           
 String getBrowserText()
           
 Cls getDirectType()
           
 Object getOwnFacetValue(Slot slot, Facet facet)
          see Frame for a description of the return type
 Collection getOwnFacetValues(Slot slot, Facet facet)
          see Frame for a description of the return type
 Collection getReachableSimpleInstances()
           
 boolean hasDirectType(Cls cls)
           
 boolean hasType(Cls cls)
           
 void removeInstanceListener(InstanceListener listener)
           
 Instance setDirectType(Cls type)
           
 String toString()
           
 
Methods inherited from class edu.stanford.smi.protege.model.DefaultFrame
addFrameListener, addOwnFacetValue, addOwnSlotValue, areValidOwnSlotValues, compareTo, delete, finalize, getDefaultKnowledgeBase, getDocumentation, getFrameID, getInvalidOwnSlotValuesText, getInvalidOwnSlotValueText, getKnowledgeBase, getName, getOwnSlotAllowsMultipleValues, getOwnSlotAndSubslotValues, getOwnSlotDefaultValues, getOwnSlotFacets, getOwnSlotFacetValues, getOwnSlots, getOwnSlotValue, getOwnSlotValueCount, getOwnSlotValues, getOwnSlotValueType, getProject, getReferences, getReferences, hasOwnSlot, isEditable, isIncluded, isSystem, isValid, isValidOwnSlotValue, isVisible, moveOwnSlotValue, removeFrameID, removeFrameListener, removeOwnSlotValue, setDocumentation, setDocumentation, setEditable, setIncluded, setName, setOwnFacetValue, setOwnFacetValues, setOwnSlotValue, setOwnSlotValues, setSystem, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.stanford.smi.protege.model.Frame
addFrameListener, addOwnFacetValue, addOwnSlotValue, areValidOwnSlotValues, delete, getDocumentation, getFrameID, getInvalidOwnSlotValuesText, getInvalidOwnSlotValueText, getKnowledgeBase, getName, 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)
Specified by:
addInstanceListener in interface Instance

deepCopy

public Frame deepCopy(KnowledgeBase targetKB,
                      Map valueMap)
Specified by:
deepCopy in interface Frame
Overrides:
deepCopy in class DefaultFrame

getBrowserText

public String getBrowserText()
Specified by:
getBrowserText in interface Frame
Overrides:
getBrowserText in class DefaultFrame

getDirectType

public Cls getDirectType()
Specified by:
getDirectType in interface Instance

getOwnFacetValue

public Object getOwnFacetValue(Slot slot,
                               Facet facet)
Description copied from interface: Frame
see Frame for a description of the return type
Specified by:
getOwnFacetValue in interface Frame

getOwnFacetValues

public Collection getOwnFacetValues(Slot slot,
                                    Facet facet)
Description copied from interface: Frame
see Frame for a description of the return type
Specified by:
getOwnFacetValues in interface Frame

getReachableSimpleInstances

public Collection getReachableSimpleInstances()
Specified by:
getReachableSimpleInstances in interface Instance

hasDirectType

public boolean hasDirectType(Cls cls)
Specified by:
hasDirectType in interface Instance

hasType

public boolean hasType(Cls cls)
Specified by:
hasType in interface Instance

removeInstanceListener

public void removeInstanceListener(InstanceListener listener)
Specified by:
removeInstanceListener in interface Instance

setDirectType

public Instance setDirectType(Cls type)
Specified by:
setDirectType in interface Instance

toString

public String toString()
Overrides:
toString in class DefaultFrame

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.