|
Protege 2.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protege.model.DefaultFrame
Default implementation of Frame interface. Forwards all method calls to its DefaultKnowledgeBase.
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 |
copy(KnowledgeBase kb,
Map valueMap,
boolean isDeep)
|
void |
delete()
|
boolean |
equals(Object o)
|
static boolean |
equals(Object o1,
Object o2)
|
protected KnowledgeBase |
getDefaultKnowledgeBase()
|
URI |
getDefiningProjectURI()
|
Object |
getDirectOwnSlotValue(Slot slot)
see Frame for a description of the return type |
List |
getDirectOwnSlotValues(Slot slot)
See Frame for a description of the return type. |
Collection |
getDocumentation()
|
FrameID |
getFrameID()
|
Icon |
getIcon()
|
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()
Gets the collection of own slots for a frame. |
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)
|
int |
hashCode()
|
boolean |
hasOwnSlot(Slot slot)
|
boolean |
isDeleted()
|
boolean |
isEditable()
|
boolean |
isIncluded()
|
boolean |
isSystem()
|
boolean |
isValid()
Deprecated. |
boolean |
isValidOwnSlotValue(Slot slot,
Object o)
|
boolean |
isVisible()
|
void |
markDeleted(boolean deleted)
|
void |
moveOwnSlotValue(Slot slot,
int fromIndex,
int toIndex)
|
void |
removeFrameListener(FrameListener listener)
|
void |
removeOwnSlotValue(Slot slot,
Object value)
Remove _all_ occurrences of this value. |
void |
setDirectOwnSlotValue(Slot slot,
Object value)
Same as #setOwnSlotValue(Slot, Object) |
void |
setDirectOwnSlotValues(Slot slot,
Collection values)
Same as #setOwnSlotValues(Slot, Collection) |
void |
setDocumentation(Collection documentation)
|
void |
setDocumentation(String documentation)
|
void |
setEditable(boolean b)
|
void |
setIncluded(boolean b)
|
void |
setKnowledgeBase(KnowledgeBase kb)
|
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. |
void |
setOwnSlotValues(Slot slot,
Collection values)
See Frame for a description of the value type. |
void |
setSystem(boolean b)
|
void |
setVisible(boolean v)
|
abstract String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.stanford.smi.protege.model.Frame |
deepCopy, getBrowserText, getOwnFacetValue, getOwnFacetValues, shallowCopy |
Method Detail |
public FrameID getFrameID()
getFrameID
in interface Frame
public boolean isDeleted()
isDeleted
in interface Frame
public void markDeleted(boolean deleted)
markDeleted
in interface Frame
public boolean isValid()
isValid
in interface Frame
public boolean equals(Object o)
public final int hashCode()
public void addFrameListener(FrameListener listener)
addFrameListener
in interface Frame
public boolean addOwnFacetValue(Slot slot, Facet facet, Object value)
addOwnFacetValue
in interface Frame
public void addOwnSlotValue(Slot slot, Object value)
addOwnSlotValue
in interface Frame
public boolean areValidOwnSlotValues(Slot slot, Collection c)
areValidOwnSlotValues
in interface Frame
public int compareTo(Object o)
compareTo
in interface Comparable
public static boolean equals(Object o1, Object o2)
public Frame copy(KnowledgeBase kb, Map valueMap, boolean isDeep)
copy
in interface Frame
public void delete()
delete
in interface Frame
protected KnowledgeBase getDefaultKnowledgeBase()
public Collection getDocumentation()
getDocumentation
in interface Frame
public String getInvalidOwnSlotValuesText(Slot slot, Collection c)
getInvalidOwnSlotValuesText
in interface Frame
public String getInvalidOwnSlotValueText(Slot slot, Object o)
getInvalidOwnSlotValueText
in interface Frame
public final KnowledgeBase getKnowledgeBase()
getKnowledgeBase
in interface Frame
public void setKnowledgeBase(KnowledgeBase kb)
public String getName()
getName
in interface Frame
public boolean getOwnSlotAllowsMultipleValues(Slot slot)
getOwnSlotAllowsMultipleValues
in interface Frame
public Collection getOwnSlotAndSubslotValues(Slot slot)
Frame
Frame
for a description of the return type
getOwnSlotAndSubslotValues
in interface Frame
public Collection getOwnSlotDefaultValues(Slot slot)
Frame
Frame
for a description of the return type
getOwnSlotDefaultValues
in interface Frame
public Collection getOwnSlotFacets(Slot slot)
getOwnSlotFacets
in interface Frame
public Collection getOwnSlotFacetValues(Slot slot, Facet facet)
getOwnSlotFacetValues
in interface Frame
public Collection getOwnSlots()
Frame
getOwnSlots
in interface Frame
public Object getDirectOwnSlotValue(Slot slot)
Frame
Frame
for a description of the return type
getDirectOwnSlotValue
in interface Frame
public List getDirectOwnSlotValues(Slot slot)
Frame
Frame
for a description of the return type.
getDirectOwnSlotValues
in interface Frame
public Object getOwnSlotValue(Slot slot)
Frame
Frame
for a description of the return type
getOwnSlotValue
in interface Frame
public int getOwnSlotValueCount(Slot slot)
getOwnSlotValueCount
in interface Frame
public Collection getOwnSlotValues(Slot slot)
Frame
Frame
for a description of the return type
getOwnSlotValues
in interface Frame
public ValueType getOwnSlotValueType(Slot slot)
getOwnSlotValueType
in interface Frame
public Project getProject()
getProject
in interface Frame
public Collection getReferences()
getReferences
in interface Frame
public Collection getReferences(int maxReferences)
getReferences
in interface Frame
public boolean hasOwnSlot(Slot slot)
hasOwnSlot
in interface Frame
public boolean isEditable()
isEditable
in interface Frame
public boolean isIncluded()
isIncluded
in interface Frame
public URI getDefiningProjectURI()
getDefiningProjectURI
in interface Frame
public boolean isSystem()
isSystem
in interface Frame
public boolean isValidOwnSlotValue(Slot slot, Object o)
isValidOwnSlotValue
in interface Frame
public boolean isVisible()
isVisible
in interface Frame
public void moveOwnSlotValue(Slot slot, int fromIndex, int toIndex)
moveOwnSlotValue
in interface Frame
public void removeFrameListener(FrameListener listener)
removeFrameListener
in interface Frame
public void removeOwnSlotValue(Slot slot, Object value)
Frame
removeOwnSlotValue
in interface Frame
public void setDocumentation(String documentation)
setDocumentation
in interface Frame
public void setDocumentation(Collection documentation)
setDocumentation
in interface Frame
public void setEditable(boolean b)
setEditable
in interface Frame
public void setIncluded(boolean b)
setIncluded
in interface Frame
public void setName(String newName)
setName
in interface Frame
public void setOwnFacetValue(Slot slot, Facet facet, Object value)
Frame
Frame
for a description of the value type.
setOwnFacetValue
in interface Frame
public void setOwnFacetValues(Slot slot, Facet facet, Collection values)
Frame
Frame
for a description of the value type.
setOwnFacetValues
in interface Frame
public void setOwnSlotValue(Slot slot, Object value)
Frame
Frame
for a description of the value type.
This method sets 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 Frame.setOwnSlotValues(Slot, Collection)
(note the final "s").
This method can be called for
either cardinality-single slots or cardinality-multiple slots.
setOwnSlotValue
in interface Frame
public void setDirectOwnSlotValue(Slot slot, Object value)
Frame
setDirectOwnSlotValue
in interface Frame
public void setDirectOwnSlotValues(Slot slot, Collection values)
Frame
setDirectOwnSlotValues
in interface Frame
public void setOwnSlotValues(Slot slot, Collection values)
Frame
Frame
for a description of the value type.
This method sets 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 have no more than one element.
setOwnSlotValues
in interface Frame
public void setSystem(boolean b)
public void setVisible(boolean v)
setVisible
in interface Frame
public abstract String toString()
public Icon getIcon()
getIcon
in interface Frame
|
Protege 2.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |