Protege-2000 1.7

edu.stanford.smi.protege.model
Class DefaultFrame

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

public abstract class DefaultFrame
extends Object
implements Frame

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

Author:
Ray Fergerson

Method Summary
 void addFrameListener(FrameListener listener)
           
 boolean addOwnFacetValue(Slot slot, Facet facet, Object value)
           
 void addOwnSlotValue(Slot slot, Object value)
           
 boolean areValidOwnSlotValues(Slot slot, Collection c)
           
 int compareTo(Object o)
           
 Frame deepCopy(KnowledgeBase kb, Map valueMap)
           
 void delete()
           
 void finalize()
           
 String getBrowserText()
           
protected  DefaultKnowledgeBase getDefaultKnowledgeBase()
           
 Collection getDocumentation()
           
 FrameID getFrameID()
           
 String getInvalidOwnSlotValuesText(Slot slot, Collection c)
           
 String getInvalidOwnSlotValueText(Slot slot, Object o)
           
 KnowledgeBase getKnowledgeBase()
           
 String getName()
           
 boolean getOwnSlotAllowsMultipleValues(Slot slot)
           
 Collection getOwnSlotAndSubslotValues(Slot slot)
          Returns the own slot values for this slot and all of its subslots.
 Collection getOwnSlotDefaultValues(Slot slot)
          see Frame for a description of the return type
 Collection getOwnSlotFacets(Slot slot)
           
 Collection getOwnSlotFacetValues(Slot slot, Facet facet)
           
 Collection getOwnSlots()
           
 Object getOwnSlotValue(Slot slot)
          see Frame for a description of the return type
 int getOwnSlotValueCount(Slot slot)
           
 Collection getOwnSlotValues(Slot slot)
          see Frame for a description of the return type
 ValueType getOwnSlotValueType(Slot slot)
           
 Project getProject()
           
 Collection getReferences()
           
 Collection getReferences(int maxReferences)
           
 boolean hasOwnSlot(Slot slot)
           
 boolean isEditable()
           
 boolean isIncluded()
           
 boolean isSystem()
           
 boolean isValid()
           
 boolean isValidOwnSlotValue(Slot slot, Object o)
           
 boolean isVisible()
           
 void moveOwnSlotValue(Slot slot, int fromIndex, int toIndex)
           
 void removeFrameID()
           
 void removeFrameListener(FrameListener listener)
           
 void removeOwnSlotValue(Slot slot, Object value)
          remove _all_ occurrances of this value
 void setDocumentation(Collection documentation)
           
 void setDocumentation(String documentation)
           
 void setEditable(boolean b)
           
 void setIncluded(boolean b)
           
 void setName(String newName)
           
 void setOwnFacetValue(Slot slot, Facet facet, Object value)
          see Frame for a description of the value type
 void setOwnFacetValues(Slot slot, Facet facet, Collection values)
          see Frame for a description of the value type
 void setOwnSlotValue(Slot slot, Object value)
          see Frame for a description of the value type This method set the value of an own slot at a frame to a single value.
 void setOwnSlotValues(Slot slot, Collection values)
          see Frame for a description of the value type This method set the value of an own slot at a frame to a collection of values.
 void setSystem(boolean b)
           
 void setVisible(boolean v)
           
 String toString()
           
 
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
getOwnFacetValue, getOwnFacetValues
 

Method Detail

addFrameListener

public void addFrameListener(FrameListener listener)
Specified by:
addFrameListener in interface Frame

addOwnFacetValue

public boolean addOwnFacetValue(Slot slot,
                                Facet facet,
                                Object value)
Specified by:
addOwnFacetValue in interface Frame

addOwnSlotValue

public void addOwnSlotValue(Slot slot,
                            Object value)
Specified by:
addOwnSlotValue in interface Frame

areValidOwnSlotValues

public boolean areValidOwnSlotValues(Slot slot,
                                     Collection c)
Specified by:
areValidOwnSlotValues in interface Frame

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

deepCopy

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

delete

public void delete()
Specified by:
delete in interface Frame

finalize

public void finalize()
Overrides:
finalize in class Object

getBrowserText

public String getBrowserText()
Specified by:
getBrowserText in interface Frame

getDefaultKnowledgeBase

protected DefaultKnowledgeBase getDefaultKnowledgeBase()

getDocumentation

public Collection getDocumentation()
Specified by:
getDocumentation in interface Frame

getFrameID

public final FrameID getFrameID()
Specified by:
getFrameID in interface Frame

getInvalidOwnSlotValuesText

public String getInvalidOwnSlotValuesText(Slot slot,
                                          Collection c)
Specified by:
getInvalidOwnSlotValuesText in interface Frame

getInvalidOwnSlotValueText

public String getInvalidOwnSlotValueText(Slot slot,
                                         Object o)
Specified by:
getInvalidOwnSlotValueText in interface Frame

getKnowledgeBase

public final KnowledgeBase getKnowledgeBase()
Specified by:
getKnowledgeBase in interface Frame

getName

public String getName()
Specified by:
getName in interface Frame

getOwnSlotAllowsMultipleValues

public boolean getOwnSlotAllowsMultipleValues(Slot slot)
Specified by:
getOwnSlotAllowsMultipleValues in interface Frame

getOwnSlotAndSubslotValues

public Collection getOwnSlotAndSubslotValues(Slot slot)
Description copied from interface: Frame
Returns the own slot values for this slot and all of its subslots. see Frame for a description of the return type
Specified by:
getOwnSlotAndSubslotValues in interface Frame

getOwnSlotDefaultValues

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

getOwnSlotFacets

public Collection getOwnSlotFacets(Slot slot)
Specified by:
getOwnSlotFacets in interface Frame

getOwnSlotFacetValues

public Collection getOwnSlotFacetValues(Slot slot,
                                        Facet facet)
Specified by:
getOwnSlotFacetValues in interface Frame

getOwnSlots

public Collection getOwnSlots()
Specified by:
getOwnSlots in interface Frame

getOwnSlotValue

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

getOwnSlotValueCount

public int getOwnSlotValueCount(Slot slot)
Specified by:
getOwnSlotValueCount in interface Frame

getOwnSlotValues

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

getOwnSlotValueType

public ValueType getOwnSlotValueType(Slot slot)
Specified by:
getOwnSlotValueType in interface Frame

getProject

public Project getProject()
Specified by:
getProject in interface Frame

getReferences

public Collection getReferences()
Specified by:
getReferences in interface Frame

getReferences

public Collection getReferences(int maxReferences)
Specified by:
getReferences in interface Frame

hasOwnSlot

public boolean hasOwnSlot(Slot slot)
Specified by:
hasOwnSlot in interface Frame

isEditable

public boolean isEditable()
Specified by:
isEditable in interface Frame

isIncluded

public boolean isIncluded()
Specified by:
isIncluded in interface Frame

isSystem

public boolean isSystem()
Specified by:
isSystem in interface Frame

isValid

public boolean isValid()
Specified by:
isValid in interface Frame

isValidOwnSlotValue

public boolean isValidOwnSlotValue(Slot slot,
                                   Object o)
Specified by:
isValidOwnSlotValue in interface Frame

isVisible

public boolean isVisible()
Specified by:
isVisible in interface Frame

moveOwnSlotValue

public void moveOwnSlotValue(Slot slot,
                             int fromIndex,
                             int toIndex)
Specified by:
moveOwnSlotValue in interface Frame

removeFrameID

public void removeFrameID()

removeFrameListener

public void removeFrameListener(FrameListener listener)
Specified by:
removeFrameListener in interface Frame

removeOwnSlotValue

public void removeOwnSlotValue(Slot slot,
                               Object value)
Description copied from interface: Frame
remove _all_ occurrances of this value
Specified by:
removeOwnSlotValue in interface Frame

setDocumentation

public void setDocumentation(String documentation)
Specified by:
setDocumentation in interface Frame

setDocumentation

public void setDocumentation(Collection documentation)
Specified by:
setDocumentation in interface Frame

setEditable

public void setEditable(boolean b)
Specified by:
setEditable in interface Frame

setIncluded

public void setIncluded(boolean b)
Specified by:
setIncluded in interface Frame

setName

public void setName(String newName)
Specified by:
setName in interface Frame

setOwnFacetValue

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

setOwnFacetValues

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

setOwnSlotValue

public void setOwnSlotValue(Slot slot,
                            Object value)
Description copied from interface: Frame
see Frame for a description of the value type This method set the value of an own slot at a frame to a single value. The value passed in cannot be a Collection. To pass in a collection instead use #setOwnSlotValues (note the final "s"). This method can be called for either cardinality-single slots or cardinality-multiple slots. For a cardinality multiple slot the result is a collection with a single element.
Specified by:
setOwnSlotValue in interface Frame

setOwnSlotValues

public void setOwnSlotValues(Slot slot,
                             Collection values)
Description copied from interface: Frame
see Frame for a description of the value type This method set the value of an own slot at a frame to a collection of values. This method can be called for either cardinality-single slots or cardinality-multiple slots. For a cardinality single slot the collection passed in must be have no more than one element.
Specified by:
setOwnSlotValues in interface Frame

setSystem

public void setSystem(boolean b)

setVisible

public void setVisible(boolean v)
Specified by:
setVisible in interface Frame

toString

public String toString()
Overrides:
toString in class Object

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.