Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Interface OME.OMELink

Subinterfaces:
ViewLink

public abstract interface OMELink
OMELink encapsulates links within OME. Links are between two elements and have an optional name. Links to other links are not currently supported.


Method Summary
OMEElement getFrom()
          Returns the source of this link.
int getID()
          Returns the unique (within its view) integer ID of the link.
java.lang.String getName()
          Returns the name or annotation of the link.
OMEElement getTo()
          Returns the destination of this link.
java.lang.Object getType()
          Returns the links' type.
void setFrom(OMEElement e)
          SEt the source for this link.
void setID(int id)
          Set the id for this link.
void setName(java.lang.String newname)
          Set the annotation of this link.
void setTo(OMEElement e)
          Set the destination for this link.
void setType(java.lang.Object type)
          Set the type of this link.
 

Method Detail

getName

public java.lang.String getName()
Returns the name or annotation of the link. This may return null.

setName

public void setName(java.lang.String newname)
Set the annotation of this link.

getType

public java.lang.Object getType()
Returns the links' type.

setType

public void setType(java.lang.Object type)
Set the type of this link.

getID

public int getID()
Returns the unique (within its view) integer ID of the link. The annotation/name of a link is optional, so this serves to identify the link when iterating.

setID

public void setID(int id)
Set the id for this link.

getTo

public OMEElement getTo()
Returns the destination of this link.

setTo

public void setTo(OMEElement e)
Set the destination for this link.

getFrom

public OMEElement getFrom()
Returns the source of this link.

setFrom

public void setFrom(OMEElement e)
SEt the source for this link.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD