org.ow2.jasmine.jade.fractal.api.control
Interface GenericAttributeController

All Superinterfaces:
org.objectweb.fractal.api.control.AttributeController
All Known Implementing Classes:
GenericAttributeControllerMixin, GenericCompositeAttributeControllerMixin

public interface GenericAttributeController
extends org.objectweb.fractal.api.control.AttributeController

A component interface to control the attributes of the component to which it belongs. In opposition to org.objectweb.fractal.api.control.AttributeController, the GenericAttributeController provides generic getter/setter methods for attributes. This way, you can dynamically add attributes to the component.

Author:
Noel de palma, Julien Legrand

Method Summary
 java.lang.String getAttribute(java.lang.String name)
          retrieve an attribute identified by its name.
 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.
 

Method Detail

getAttribute

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

Parameters:
name - the name of the attribute to read.
Returns:
the String value of the attribute identified by its name.
Throws:
NoSuchAttributeException - if the given attribute is unknown.

setAttribute

void setAttribute(java.lang.String name,
                  java.lang.String value)
                  throws NoSuchAttributeException
set the value of an attribute identified by its name.

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

listFcAtt

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

Returns:
the names of the attributes of the component to which this interface belongs.


Copyright © 2008 OW2 Consortium. All Rights Reserved.