org.objectweb.fractal.adl
Class AbstractNode

java.lang.Object
  extended byorg.objectweb.fractal.adl.AbstractNode
All Implemented Interfaces:
Node
Direct Known Subclasses:
XMLNode

public abstract class AbstractNode
extends Object
implements Node

An abstract Node.


Constructor Summary
AbstractNode(String type)
           
 
Method Summary
 Object astGetDecoration(String name)
          Returns a decoration of this node.
 Map astGetDecorations()
          Returns the decorations of this node.
 String astGetSource()
          Returns the source of this node.
 String astGetType()
          Returns the type of this node.
 void astSetDecoration(String name, Object decoration)
          Sets a decoration of this node.
 void astSetDecorations(Map decorations)
          Sets the decorations of this node.
 void astSetSource(String source)
          Sets the source of this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.fractal.adl.Node
astAddNode, astGetAttributes, astGetNodes, astGetNodeTypes, astNewInstance, astRemoveNode, astSetAttributes
 

Constructor Detail

AbstractNode

public AbstractNode(String type)
Method Detail

astGetType

public String astGetType()
Description copied from interface: Node
Returns the type of this node.

Specified by:
astGetType in interface Node
Returns:
the type of this node.

astGetSource

public String astGetSource()
Description copied from interface: Node
Returns the source of this node.

Specified by:
astGetSource in interface Node
Returns:
the source of this node (such as a file name).

astSetSource

public void astSetSource(String source)
Description copied from interface: Node
Sets the source of this node.

Specified by:
astSetSource in interface Node
Parameters:
source - the source of this node (such as a file name).

astGetDecoration

public Object astGetDecoration(String name)
Description copied from interface: Node
Returns a decoration of this node.

Specified by:
astGetDecoration in interface Node
Parameters:
name - the decoration's name.
Returns:
a decoration of this node. May be null if this node does not have a decoration with the specified name.

astGetDecorations

public Map astGetDecorations()
Description copied from interface: Node
Returns the decorations of this node.

Specified by:
astGetDecorations in interface Node
Returns:
the decorations of this node.

astSetDecoration

public void astSetDecoration(String name,
                             Object decoration)
Description copied from interface: Node
Sets a decoration of this node.

Specified by:
astSetDecoration in interface Node
Parameters:
name - the decoration's name.
decoration - a decoration.

astSetDecorations

public void astSetDecorations(Map decorations)
Description copied from interface: Node
Sets the decorations of this node.

Specified by:
astSetDecorations in interface Node
Parameters:
decorations - the decorations of this node that must be changed (decorations that are not defined in this argument are left unchanged).