org.ow2.frascati.fscript.model
Class ScaPropertyNode

java.lang.Object
  extended by org.objectweb.fractal.fscript.model.AbstractNode
      extended by org.ow2.frascati.fscript.model.ScaPropertyNode
All Implemented Interfaces:
org.objectweb.fractal.fscript.model.Node

public class ScaPropertyNode
extends org.objectweb.fractal.fscript.model.AbstractNode

A Node which represents a SCA property.

Author:
Christophe Demarey

Field Summary
 
Fields inherited from class org.objectweb.fractal.fscript.model.AbstractNode
kind
 
Constructor Summary
protected ScaPropertyNode(FraSCAtiModel model, org.objectweb.fractal.api.Component owner, org.ow2.frascati.tinfi.api.control.SCAPropertyController ctl, String propName)
          Creates a new ScaPropertyNode.
 
Method Summary
 String getName()
          Returns the name of this property.
 Object getProperty(String name)
          Returns the current value of one of this node's properties.
 Object getValue()
          Returns the current value of this property.
 void setProperty(String name, Object value)
          Changes the value of one of this node's properties.
 void setValue(Object value)
          Sets the value of this property.
 String toString()
           
 
Methods inherited from class org.objectweb.fractal.fscript.model.AbstractNode
checkSetRequest, getKind, inspect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScaPropertyNode

protected ScaPropertyNode(FraSCAtiModel model,
                          org.objectweb.fractal.api.Component owner,
                          org.ow2.frascati.tinfi.api.control.SCAPropertyController ctl,
                          String propName)
Creates a new ScaPropertyNode.

Parameters:
model - the FraSCAti model this node is part of.
ctl - the SCA property controller holding this attribute.
propName - the name of the property.
Method Detail

getName

public final String getName()
Returns the name of this property.

Returns:
the name of this property.

getValue

public final Object getValue()
Returns the current value of this property.

Returns:
the current value of this property.

setValue

public final void setValue(Object value)
Sets the value of this property.

Parameters:
value - the new value to set for this property.

getProperty

public final Object getProperty(String name)
Returns the current value of one of this node's properties.

Parameters:
name - the name of the property to access.
Returns:
the current value of the named property for this node.
Throws:
IllegalArgumentException - if this node does not have a property of the given name.

setProperty

public final void setProperty(String name,
                              Object value)
Changes the value of one of this node's properties.

Parameters:
name - the name of the property to change.
value - the new value to set for the property.
Throws:
NoSuchElementException - if this node does not have a property of the given name.

toString

public final String toString()
Overrides:
toString in class org.objectweb.fractal.fscript.model.AbstractNode


Copyright © 2009-2011 OW2 Consortium. All Rights Reserved.