org.objectweb.jac.ide
Class ModelElement

java.lang.Object
  |
  +--org.objectweb.jac.ide.ModelElement
Direct Known Subclasses:
Application, AspectConfiguration, Diagram, Group, Link, Package, Project, Role, Type, TypedElement

public abstract class ModelElement
extends Object

This is the root class of all the model elements.


Constructor Summary
ModelElement()
          Builds an unamed model element.
ModelElement(String name)
          Builds a named model element.
 
Method Summary
 void addConfigItem(ConfigItem config)
          add a new ConfigItem on this Element
 void addEndingLink(Role l)
          Adds a link that ends on this element.
 void addLink(Role l)
          Adds a link that ends on this element.
 List getConfigItems()
           
 String getDescription()
          Gets the description of this element.
 List getEndingLinks()
          Gets the list of the links that end on this model element.
 String getFullName()
          Defines a redefinable method to get the full name.
 String getGenerationFullName()
          Gets full name to use for code generation.
 String getGenerationName()
          Gets name to use for code generation.
 List getLinks()
          Gets the list of the links that start from this model element.
 String getName()
          Gets the model element name.
 Type getType()
          Get the type of the model element.
 void remove(ConfigItem config)
          remove an ConfigItem
 void removeEndingLink(Role l)
          Removes an ending link.
 void removeLink(Role l)
          Removes an ending link.
 void setDescription(String v)
          Set the value of description.
 void setEndingLinks(List l)
          Sets the ending links list.
 void setLinks(List l)
          Sets the ending links list.
 void setName(String name)
          Sets the model element name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelElement

public ModelElement()
Builds an unamed model element.


ModelElement

public ModelElement(String name)
Builds a named model element.

Method Detail

setName

public void setName(String name)
Sets the model element name.


getFullName

public String getFullName()
Defines a redefinable method to get the full name. Here it is equivalent to the getName() method.


getName

public String getName()
Gets the model element name.


getGenerationName

public String getGenerationName()
Gets name to use for code generation. Defaults to name.


getGenerationFullName

public String getGenerationFullName()
Gets full name to use for code generation. Defaults to fullName.


getType

public Type getType()
Get the type of the model element.

Returns:
the void type (by default, element are not typed)

getEndingLinks

public List getEndingLinks()
Gets the list of the links that end on this model element.

Returns:
value of endingLinks.
See Also:
Link

setEndingLinks

public void setEndingLinks(List l)
Sets the ending links list.


addEndingLink

public void addEndingLink(Role l)
Adds a link that ends on this element.


removeEndingLink

public void removeEndingLink(Role l)
Removes an ending link.


getLinks

public List getLinks()
Gets the list of the links that start from this model element.

Returns:
value of links.
See Also:
Link

setLinks

public void setLinks(List l)
Sets the ending links list.


addLink

public void addLink(Role l)
Adds a link that ends on this element.


removeLink

public void removeLink(Role l)
Removes an ending link.


getDescription

public String getDescription()
Gets the description of this element. All the model elements have a description for documentation.

Returns:
value of description.

setDescription

public void setDescription(String v)
Set the value of description.

Parameters:
v - Value to assign to description.

addConfigItem

public void addConfigItem(ConfigItem config)
add a new ConfigItem on this Element

Parameters:
config - the new ConfigItem

remove

public void remove(ConfigItem config)
remove an ConfigItem

Parameters:
config - the ConfigItem

getConfigItems

public List getConfigItems()