|
Protege 3.4.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protege.model.DefaultFrame
edu.stanford.smi.protege.model.DefaultInstance
public abstract class DefaultInstance
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.
Constructor Summary | |
---|---|
protected |
DefaultInstance()
|
Method Summary | |
---|---|
void |
addDirectType(Cls type)
|
void |
addInstanceListener(InstanceListener listener)
|
Frame |
copy(KnowledgeBase targetKB,
Map valueMap,
boolean isDeep)
|
Frame |
deepCopy(KnowledgeBase targetKB,
Map valueMap)
Create a "deep copy" of the frame. |
String |
getBrowserText()
|
Cls |
getDirectType()
return the "first" direct type |
Collection |
getDirectTypes()
|
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 |
moveDirectType(Cls type,
int index)
|
void |
removeDirectType(Cls type)
|
void |
removeInstanceListener(InstanceListener listener)
|
Instance |
setDirectType(Cls type)
|
Instance |
setDirectTypes(Collection types)
|
Frame |
shallowCopy(KnowledgeBase targetKB,
Map valueMap)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
protected DefaultInstance()
Method Detail |
---|
public void addInstanceListener(InstanceListener listener)
addInstanceListener
in interface Instance
public Frame deepCopy(KnowledgeBase targetKB, Map valueMap)
Frame
deepCopy
in interface Frame
public Frame shallowCopy(KnowledgeBase targetKB, Map valueMap)
shallowCopy
in interface Frame
public Frame copy(KnowledgeBase targetKB, Map valueMap, boolean isDeep)
copy
in interface Frame
copy
in class DefaultFrame
public String getBrowserText()
getBrowserText
in interface Frame
public Cls getDirectType()
Instance
getDirectType
in interface Instance
public Collection getDirectTypes()
getDirectTypes
in interface Instance
public Object getOwnFacetValue(Slot slot, Facet facet)
Frame
Frame
for a description of the return type
getOwnFacetValue
in interface Frame
public Collection getOwnFacetValues(Slot slot, Facet facet)
Frame
Frame
for a description of the return type
getOwnFacetValues
in interface Frame
public Collection getReachableSimpleInstances()
getReachableSimpleInstances
in interface Instance
public boolean hasDirectType(Cls cls)
hasDirectType
in interface Instance
public boolean hasType(Cls cls)
hasType
in interface Instance
public void removeInstanceListener(InstanceListener listener)
removeInstanceListener
in interface Instance
public Instance setDirectType(Cls type)
setDirectType
in interface Instance
public Instance setDirectTypes(Collection types)
setDirectTypes
in interface Instance
public void addDirectType(Cls type)
addDirectType
in interface Instance
public void removeDirectType(Cls type)
removeDirectType
in interface Instance
public void moveDirectType(Cls type, int index)
moveDirectType
in interface Instance
|
Protege 3.4.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |