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

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

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

Provide a basic implementation of the GenericAttributeController interface. This mixin is used for container component.

Author:
Noel de palma, Julien Legrand

Field Summary
 java.lang.Object innerImpl
          The implementation cmp.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

innerImpl

public java.lang.Object innerImpl
The implementation cmp.

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.

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.

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.

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.

_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.