org.ow2.jasmine.jade.fractal.julia.control.genericattribute
Class GenericCompositeAttributeControllerMixin

java.lang.Object
  extended by org.ow2.jasmine.jade.fractal.julia.control.genericattribute.GenericCompositeAttributeControllerMixin
All Implemented Interfaces:
org.objectweb.fractal.api.control.AttributeController, org.objectweb.fractal.julia.Controller, GenericAttributeController

public abstract class GenericCompositeAttributeControllerMixin
extends java.lang.Object
implements org.objectweb.fractal.julia.Controller, GenericAttributeController

Provide a basic implementation of the GenericAttributeController interface. This mixin is used for composite component. Attributes are stored in an hashtable

Author:
Noel de palma, Julien Legrand

Field Summary
 org.objectweb.fractal.api.control.ContentController _this_weaveableCC
           
 
Method Summary
abstract  void _super_initFcController(org.objectweb.fractal.julia.InitializationContext ic)
           
 java.lang.String getAttribute(java.lang.String name)
          retrieve an attribute identified by its name.
 void initFcController(org.objectweb.fractal.julia.InitializationContext ic)
           
 java.lang.String[] listFcAtt()
          Returns the names of the attribute of the component to which this interface belongs.
 void setAttribute(java.lang.String name, java.lang.String value)
          set the value of an attribute identified by its name and notify the update to the metalevel (resp. the exec level).
 void setAttributeNotification(java.lang.String name, java.lang.String value)
          Set the value of an attribute identified by its name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_this_weaveableCC

public org.objectweb.fractal.api.control.ContentController _this_weaveableCC
Method Detail

initFcController

public void initFcController(org.objectweb.fractal.julia.InitializationContext ic)
                      throws org.objectweb.fractal.api.factory.InstantiationException
Specified by:
initFcController in interface org.objectweb.fractal.julia.Controller
Throws:
org.objectweb.fractal.api.factory.InstantiationException

getAttribute

public java.lang.String getAttribute(java.lang.String name)
                              throws NoSuchAttributeException
retrieve an attribute identified by its name.

Specified by:
getAttribute in interface GenericAttributeController
Parameters:
name - the name of the attribute to read.
Returns:
the String value of the attribute identified by its name. null if the implementation does not implements GenericAttributeController.
Throws:
NoSuchAttributeException - if the given attribute is unknow.

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.String value)
                  throws NoSuchAttributeException
set the value of an attribute identified by its name and notify the update to the metalevel (resp. the exec level).

Specified by:
setAttribute in interface GenericAttributeController
Parameters:
name - the name of the attribute to read.
value - the value of the attribute.
Throws:
NoSuchAttributeException - if the given attribute is unknow.

listFcAtt

public java.lang.String[] listFcAtt()
Returns the names of the attribute of the component to which this interface belongs.

Specified by:
listFcAtt in interface GenericAttributeController
Returns:
the names of the attributes of the component to which this interface belongs. return null if there is no attributes.

setAttributeNotification

public void setAttributeNotification(java.lang.String name,
                                     java.lang.String value)
                              throws NoSuchAttributeException
Set the value of an attribute identified by its name. This method is used by the meta level (resp. the exec level) to notify an attribute update.

Parameters:
name - the name of the attribute to read.
value - the value of the attribute.
Throws:
NoSuchAttributeException - if the given attribute is unknow.

_super_initFcController

public abstract void _super_initFcController(org.objectweb.fractal.julia.InitializationContext ic)
                                      throws org.objectweb.fractal.api.factory.InstantiationException
Throws:
org.objectweb.fractal.api.factory.InstantiationException


Copyright © 2008 OW2 Consortium. All Rights Reserved.