Protege-2000 1.7

edu.stanford.smi.protege.model
Class DefaultSlot

java.lang.Object
  |
  +--edu.stanford.smi.protege.model.DefaultFrame
        |
        +--edu.stanford.smi.protege.model.DefaultInstance
              |
              +--edu.stanford.smi.protege.model.DefaultSlot
All Implemented Interfaces:
Comparable, Frame, Instance, Slot

public class DefaultSlot
extends DefaultInstance
implements Slot

Default implementation of Slot interface. Forwards all method calls to its DefaultKnowledgeBase.

Author:
Ray Fergerson

Constructor Summary
DefaultSlot(KnowledgeBase kb, FrameID id)
           
 
Method Summary
 void addDirectSuperslot(Slot superslot)
           
 void addSlotListener(SlotListener listener)
           
 Frame deepCopy(KnowledgeBase kb, Map valueMap)
           
 Collection getAllowedClses()
           
 Collection getAllowedParents()
           
 Collection getAllowedValues()
           
 boolean getAllowsMultipleValues()
           
 Facet getAssociatedFacet()
           
 Collection getDefaultValues()
           
 int getDirectSubslotCount()
           
 Collection getDirectSubslots()
           
 int getDirectSuperslotCount()
           
 Collection getDirectSuperslots()
           
 Collection getDocumentation()
           
 Slot getInverseSlot()
           
 int getMaximumCardinality()
           
 Number getMaximumValue()
           
 int getMinimumCardinality()
           
 Number getMinimumValue()
           
 Collection getSubslots()
           
 Collection getSuperslots()
           
 Collection getTemplateSlotClses()
           
 Collection getValues()
           
 ValueType getValueType()
           
 boolean hasValueAtSomeFrame()
           
 void removeDirectSuperslot(Slot superslot)
           
 void removeSlotListener(SlotListener listener)
           
 void setAllowedClses(Collection c)
           
 void setAllowedParents(Collection c)
           
 void setAllowedValues(Collection c)
           
 void setAllowsMultipleValues(boolean b)
           
 void setAssociatedFacet(Facet facet)
           
 void setDefaultValues(Collection values)
           
 void setDirectTypeOfSubslots(Cls cls)
           
 void setDocumentation(String doc)
           
 void setInverseSlot(Slot slot)
           
 void setMaximumCardinality(int max)
           
 void setMaximumValue(Number n)
           
 void setMinimumCardinality(int min)
           
 void setMinimumValue(Number n)
           
 void setValues(Collection values)
           
 void setValueType(ValueType type)
           
 String toString()
           
 
Methods inherited from class edu.stanford.smi.protege.model.DefaultInstance
addInstanceListener, getBrowserText, getDirectType, getOwnFacetValue, getOwnFacetValues, getReachableSimpleInstances, hasDirectType, hasType, removeInstanceListener, setDirectType
 
Methods inherited from class edu.stanford.smi.protege.model.DefaultFrame
addFrameListener, addOwnFacetValue, addOwnSlotValue, areValidOwnSlotValues, compareTo, delete, finalize, getDefaultKnowledgeBase, 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, 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.Instance
addInstanceListener, getDirectType, getReachableSimpleInstances, hasDirectType, hasType, removeInstanceListener, setDirectType
 
Methods inherited from interface edu.stanford.smi.protege.model.Frame
addFrameListener, addOwnFacetValue, addOwnSlotValue, areValidOwnSlotValues, delete, getBrowserText, 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, setEditable, setIncluded, setName, setOwnFacetValue, setOwnFacetValues, setOwnSlotValue, setOwnSlotValues, setVisible
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

DefaultSlot

public DefaultSlot(KnowledgeBase kb,
                   FrameID id)
Method Detail

addDirectSuperslot

public void addDirectSuperslot(Slot superslot)
Specified by:
addDirectSuperslot in interface Slot

addSlotListener

public void addSlotListener(SlotListener listener)
Specified by:
addSlotListener in interface Slot

deepCopy

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

getAllowedClses

public Collection getAllowedClses()
Specified by:
getAllowedClses in interface Slot

getAllowedParents

public Collection getAllowedParents()
Specified by:
getAllowedParents in interface Slot

getAllowedValues

public Collection getAllowedValues()
Specified by:
getAllowedValues in interface Slot

getAllowsMultipleValues

public boolean getAllowsMultipleValues()
Specified by:
getAllowsMultipleValues in interface Slot

getAssociatedFacet

public Facet getAssociatedFacet()
Specified by:
getAssociatedFacet in interface Slot

getDefaultValues

public Collection getDefaultValues()
Specified by:
getDefaultValues in interface Slot

getDirectSubslotCount

public int getDirectSubslotCount()
Specified by:
getDirectSubslotCount in interface Slot

getDirectSubslots

public Collection getDirectSubslots()
Specified by:
getDirectSubslots in interface Slot

getDirectSuperslotCount

public int getDirectSuperslotCount()
Specified by:
getDirectSuperslotCount in interface Slot

getDirectSuperslots

public Collection getDirectSuperslots()
Specified by:
getDirectSuperslots in interface Slot

getDocumentation

public Collection getDocumentation()
Specified by:
getDocumentation in interface Slot
Overrides:
getDocumentation in class DefaultFrame

getInverseSlot

public Slot getInverseSlot()
Specified by:
getInverseSlot in interface Slot

getMaximumCardinality

public int getMaximumCardinality()
Specified by:
getMaximumCardinality in interface Slot

getMaximumValue

public Number getMaximumValue()
Specified by:
getMaximumValue in interface Slot

getMinimumCardinality

public int getMinimumCardinality()
Specified by:
getMinimumCardinality in interface Slot

getMinimumValue

public Number getMinimumValue()
Specified by:
getMinimumValue in interface Slot

getSubslots

public Collection getSubslots()
Specified by:
getSubslots in interface Slot

getSuperslots

public Collection getSuperslots()
Specified by:
getSuperslots in interface Slot

getTemplateSlotClses

public Collection getTemplateSlotClses()
Specified by:
getTemplateSlotClses in interface Slot

getValues

public Collection getValues()
Specified by:
getValues in interface Slot

getValueType

public ValueType getValueType()
Specified by:
getValueType in interface Slot

hasValueAtSomeFrame

public boolean hasValueAtSomeFrame()
Specified by:
hasValueAtSomeFrame in interface Slot

removeDirectSuperslot

public void removeDirectSuperslot(Slot superslot)
Specified by:
removeDirectSuperslot in interface Slot

removeSlotListener

public void removeSlotListener(SlotListener listener)
Specified by:
removeSlotListener in interface Slot

setAllowedClses

public void setAllowedClses(Collection c)
Specified by:
setAllowedClses in interface Slot

setAllowedParents

public void setAllowedParents(Collection c)
Specified by:
setAllowedParents in interface Slot

setAllowedValues

public void setAllowedValues(Collection c)
Specified by:
setAllowedValues in interface Slot

setAllowsMultipleValues

public void setAllowsMultipleValues(boolean b)
Specified by:
setAllowsMultipleValues in interface Slot

setAssociatedFacet

public void setAssociatedFacet(Facet facet)
Specified by:
setAssociatedFacet in interface Slot

setDefaultValues

public void setDefaultValues(Collection values)
Specified by:
setDefaultValues in interface Slot

setDirectTypeOfSubslots

public void setDirectTypeOfSubslots(Cls cls)
Specified by:
setDirectTypeOfSubslots in interface Slot

setDocumentation

public void setDocumentation(String doc)
Specified by:
setDocumentation in interface Slot
Overrides:
setDocumentation in class DefaultFrame

setInverseSlot

public void setInverseSlot(Slot slot)
Specified by:
setInverseSlot in interface Slot

setMaximumCardinality

public void setMaximumCardinality(int max)
Specified by:
setMaximumCardinality in interface Slot

setMaximumValue

public void setMaximumValue(Number n)
Specified by:
setMaximumValue in interface Slot

setMinimumCardinality

public void setMinimumCardinality(int min)
Specified by:
setMinimumCardinality in interface Slot

setMinimumValue

public void setMinimumValue(Number n)
Specified by:
setMinimumValue in interface Slot

setValues

public void setValues(Collection values)
Specified by:
setValues in interface Slot

setValueType

public void setValueType(ValueType type)
Specified by:
setValueType in interface Slot

toString

public String toString()
Overrides:
toString in class DefaultInstance

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.