|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
This interface describes the fundamental methods that need to be implemented
by all model and view objects in OME. These classes (this one, along with
OMEElement and OMELink) are useful in generalizing
the features of Objects (be they ViewObject or ModelObjects), but ideally
these should not be passed around. Generally a user of these classes should
know if they are working with model objects or view objects.
| Method Summary | |
void |
addLink(OMELink link)
Adds an OMELink to the object's collection of links. |
java.lang.String |
getComment()
Returns the comment of the object. |
int |
getID()
Returns the unique (within its view) integer ID of the object. |
java.util.Collection |
getLinks()
Returns a collection of OMELinks for this OMEObject. |
OMEModel |
getModel()
Returns which model this object is in. |
java.lang.String |
getName()
Returns the name or annotation of the object. |
java.lang.Object |
getType()
Returns this object's type. |
void |
setComment(java.lang.String newcomment)
Set the comment for the object. |
void |
setID(int id)
Set the id for this object. |
void |
setName(java.lang.String newname)
Set the name or annotation of this object. |
void |
setType(java.lang.Object type)
Set the type of this object. |
| Method Detail |
public java.lang.String getName()
public void setName(java.lang.String newname)
throws java.lang.Exception
newname - the name to be set for this object.public java.lang.String getComment()
public void setComment(java.lang.String newcomment)
public OMEModel getModel()
public java.lang.Object getType()
public void setType(java.lang.Object type)
throws java.lang.Exception
type - the type which this object should be set to.public int getID()
public java.util.Collection getLinks()
OMELinks for this OMEObject.
This collection is writable, but one should really use the addLink
method.addLink()public void addLink(OMELink link)
link - the OMELink to be added.public void setID(int id)
id - the id which we should set for this OMEObject.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||