OME
Interface ModelObject

All Known Subinterfaces:
ModelElement, ModelLink

public interface ModelObject
extends OMEObject

ModelObjects provide access to some of the objects in the kb. ModelLinks to the links in the kb, ModelElements to the elements. This interface defines an intersection of some of their functionality. This class also provides us with the ability to speak of links and elements in a general way. Each ModelObject has an analogous, unique object within its kb.

See Also:
OMEObject, ModelElement, ModelLink, ViewObject

Method Summary
 ModelAttribute getAttribute(java.lang.String name)
          Returns the attribute with the given name.
 java.util.Iterator getAttributes()
          Returns an iterator over the objects attributes.
 ModelValueAttribute getValueAttribute(java.lang.String name)
          Returns the value attribute with the given name.
 java.util.Iterator getValueAttributes()
          Returns an iterator over the objects value attributes.
 ModelValueAttribute updateValueAttribute(java.lang.String name, java.lang.String newname)
          Updates the label of value attribute from "name" to "newname" .
 
Methods inherited from interface OME.OMEObject
addLink, getComment, getID, getLinks, getModel, getName, getType, setComment, setID, setName, setType
 

Method Detail

getAttribute

public ModelAttribute getAttribute(java.lang.String name)
Returns the attribute with the given name. The attribute can then be manipulated through the OMEAttribute interface.
Parameters:
name - the name of the attribute we want.

getAttributes

public java.util.Iterator getAttributes()
Returns an iterator over the objects attributes.

getValueAttribute

public ModelValueAttribute getValueAttribute(java.lang.String name)
Returns the value attribute with the given name. The attribute can then be manipulated through the OMEValueAttribute interface.
Parameters:
name - the name of the value attribute we want.

updateValueAttribute

public ModelValueAttribute updateValueAttribute(java.lang.String name,
                                                java.lang.String newname)
Updates the label of value attribute from "name" to "newname" . The attribute can then be manipulated through the OMEValueAttribute interface.
Parameters:
name - the oldname of the value attribute we want to change.
newname - the newname of the value attribute we want to change.

getValueAttributes

public java.util.Iterator getValueAttributes()
Returns an iterator over the objects value attributes.