|
Algernon Software | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This defines an interface for an Algernon Frame.
Method Summary | |
void |
addRelationValue(AlgernonRelation relation,
Object value)
Adds the given value to the relation on this Frame. |
void |
deleteAllRelationValues(AlgernonRelation relation)
Deletes all values on the given slot for this frame. |
void |
deleteRelationValue(AlgernonRelation relation,
Object value)
Deletes one value of a relation on this frame. |
void |
deleteRelationValues(AlgernonRelation relation,
Collection values)
Calls deleteRelationValue for each value in the Collection. |
String |
getDisplayName()
Returns the display name of this Frame, or the name if the display name relation is not defined. |
Object |
getImplementation()
Returns the KBMS-specific object implementing this interface. |
AlgernonKB |
getKB()
Returns the KB this Frame belongs to. |
String |
getName()
Returns the name of this Frame. |
Collection |
getOwnRelationValues(AlgernonRelation slot)
Returns a collection of the values in the given slot. |
List |
getParents()
Returns a List of the parents of this frame. |
Collection |
getPossibleRelationValues(AlgernonRelation relation)
Returns the list of existing instances that could fill the given relation on this frame. |
Collection |
getRelationValues(AlgernonRelation relation)
Returns the relation values. |
Collection |
getRootClasses()
Returns a collection of root classes of this class. |
Collection |
getSuperclasses()
Returns the superclass(es) of a class or the class(es) of an instance. |
boolean |
hasParent(AlgernonFrame parent)
Returns true if the argument is a parent of this frame. |
boolean |
hasRootClass(AlgernonClass root)
Returns true if root is a root class of this class. |
boolean |
hasSuperclass(AlgernonClass theClass)
Returns true if this class includes superclass
as one of its superclasses, direct or indirect. |
void |
setDisplayName(String newName)
Sets this frame's display name (that is, a pretty name) to the given string. |
void |
setName(String newName)
Sets the name (:NAME) of this frame. |
Methods inherited from interface org.algernon.io.Displayable |
display |
Method Detail |
public Object getImplementation()
public String getName()
public String getDisplayName() throws AlgernonDataException, AlgernonException
AlgernonDataException
AlgernonException
public AlgernonKB getKB()
public void addRelationValue(AlgernonRelation relation, Object value)
public List getParents()
public Collection getPossibleRelationValues(AlgernonRelation relation) throws AlgernonDataException
AlgernonDataException
public Collection getRelationValues(AlgernonRelation relation) throws AlgernonDataException, AlgernonException
AlgernonDataException
AlgernonException
public Collection getSuperclasses()
public void deleteRelationValue(AlgernonRelation relation, Object value)
public void deleteRelationValues(AlgernonRelation relation, Collection values)
deleteRelationValue(org.algernon.kb.AlgernonRelation, java.lang.Object)
public void deleteAllRelationValues(AlgernonRelation relation)
deleteRelationValue(org.algernon.kb.AlgernonRelation, java.lang.Object)
public boolean hasRootClass(AlgernonClass root)
root
is a root class of this class.
public Collection getRootClasses()
public boolean hasSuperclass(AlgernonClass theClass)
superclass
as one of its superclasses, direct or indirect.
theClass
- the superclass to check
public boolean hasParent(AlgernonFrame parent)
public void setDisplayName(String newName) throws AlgernonDataException, AlgernonException
newName
-
AlgernonDataException
AlgernonException
public void setName(String newName)
public Collection getOwnRelationValues(AlgernonRelation slot) throws AlgernonException
AlgernonException
|
Algernon Software | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |