org.objectweb.jac.ide
Class ConfigItem

java.lang.Object
  |
  +--org.objectweb.jac.ide.ConfigItem

public class ConfigItem
extends Object

this is a class that represent the call of an aspect Method by a ModelElement

Author:
gregoire Waymel

Constructor Summary
ConfigItem()
          default constructor
 
Method Summary
 void addParam(String param)
           
 AspectConfiguration getAspectConfiguration()
           
static Collection getAvailableAspects(ConfigItem item)
          Gets available aspect configurations
 MethodItem getMethod()
           
 ModelElement getModelElement()
           
 List getParam()
           
static Collection getValidMethods(ConfigItem item)
          search the aspect method that can be call by the ModelElement.
 void removeParam(String param)
           
 void setAspectConfiguration(AspectConfiguration aspectConfiguration)
           
 void setMethod(MethodItem newMethod)
           
 void setModelElement(ModelElement modelElement)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigItem

public ConfigItem()
default constructor

Method Detail

getAspectConfiguration

public AspectConfiguration getAspectConfiguration()

getModelElement

public ModelElement getModelElement()

getParam

public List getParam()

getMethod

public MethodItem getMethod()

setAspectConfiguration

public void setAspectConfiguration(AspectConfiguration aspectConfiguration)
Parameters:
aspectConfiguration - the new Aspect for this ConfigItem

addParam

public void addParam(String param)

removeParam

public void removeParam(String param)

setModelElement

public void setModelElement(ModelElement modelElement)

setMethod

public void setMethod(MethodItem newMethod)

toString

public String toString()
Overrides:
toString in class Object

getAvailableAspects

public static Collection getAvailableAspects(ConfigItem item)
Gets available aspect configurations


getValidMethods

public static final Collection getValidMethods(ConfigItem item)
                                        throws Exception
search the aspect method that can be call by the ModelElement.

Parameters:
item - the ConfigItem that should have a valid ModelElement and a valid AspectConfiguration.
Returns:
the method name that can be call by the item ModelElement.
Exception