org.objectweb.jac.ide
Class Role

java.lang.Object
  extended byorg.objectweb.jac.ide.ModelElement
      extended byorg.objectweb.jac.ide.Role
All Implemented Interfaces:
Element, Typed
Direct Known Subclasses:
RelationRole

public class Role
extends ModelElement
implements Typed


Constructor Summary
Role()
           
Role(Link link)
           
 
Method Summary
 ModelElement getEnd()
          Gets the model element on which the link ends.
 String getGenerationFullName()
          Gets full name to use for code generation.
 String getGenerationName()
          Gets name to use for code generation.
 Link getLink()
           
 ModelElement getStart()
          Gets the model element from which the link starts.
 boolean isEndRole()
           
 boolean isStartRole()
           
 Role oppositeRole()
           
 void setEnd(ModelElement end)
          Sets the value of the ending element.
 void setLink(Link link)
           
 void setStart(ModelElement start)
          Sets the value of the starting element.
 
Methods inherited from class org.objectweb.jac.ide.ModelElement
addConfigItem, addEndingLink, addLink, getConfigItems, getDescription, getEndingLinks, getFullName, getLinks, getName, getType, remove, removeEndingLink, removeLink, setDescription, setEndingLinks, setLinks, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.jac.ide.Typed
getType
 
Methods inherited from interface org.objectweb.jac.ide.Element
getName
 

Constructor Detail

Role

public Role(Link link)

Role

public Role()
Method Detail

getLink

public Link getLink()

setLink

public void setLink(Link link)

getEnd

public ModelElement getEnd()
Gets the model element on which the link ends.

Returns:
ending element

setEnd

public void setEnd(ModelElement end)
Sets the value of the ending element.


getStart

public ModelElement getStart()
Gets the model element from which the link starts.

Returns:
starting element

setStart

public void setStart(ModelElement start)
Sets the value of the starting element.


oppositeRole

public Role oppositeRole()

isStartRole

public boolean isStartRole()

isEndRole

public boolean isEndRole()

getGenerationName

public String getGenerationName()
Description copied from class: ModelElement
Gets name to use for code generation. Defaults to name.

Specified by:
getGenerationName in interface Element
Overrides:
getGenerationName in class ModelElement

getGenerationFullName

public String getGenerationFullName()
Description copied from class: ModelElement
Gets full name to use for code generation. Defaults to fullName.

Specified by:
getGenerationFullName in interface Element
Overrides:
getGenerationFullName in class ModelElement