org.exolab.adaptx.xslt.util
Class ActionTemplateImpl

java.lang.Object
  extended by org.exolab.adaptx.xslt.util.ActionTemplateImpl
All Implemented Interfaces:
ActionTemplate

public class ActionTemplateImpl
extends java.lang.Object
implements ActionTemplate

The default implementation of ActionTemplate.

Version:
$Revision: 3633 $ $Date: 2003-03-01 02:38:44 -0500 (Sat, 01 Mar 2003) $
Author:
Keith Visco

Constructor Summary
ActionTemplateImpl()
          Creates an empty ActionTemplateImpl
 
Method Summary
 ActionIterator actions()
          Returns an Iteration of the XSLObjects (actions) in this template
 boolean addAction(XSLObject xslObject)
          Adds the given XSLObject to this ActionTemplate's list of actions.
 XSLObject lastAction()
          Returns the last XSLObject of this ActionTemplate
 int size()
          Returns the number of actions in this template
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionTemplateImpl

public ActionTemplateImpl()
Creates an empty ActionTemplateImpl

Method Detail

actions

public ActionIterator actions()
Description copied from interface: ActionTemplate
Returns an Iteration of the XSLObjects (actions) in this template

Specified by:
actions in interface ActionTemplate
Returns:
an Iteration of the XSLObjects (actions) in this template

addAction

public boolean addAction(XSLObject xslObject)
Adds the given XSLObject to this ActionTemplate's list of actions.

Parameters:
xslObject - the XSLObject to add
Returns:
true if the given XSLObject has been added to this XSLObject otherwise false

lastAction

public XSLObject lastAction()
Returns the last XSLObject of this ActionTemplate

Returns:
the last XSLObject of this ActionTemplate

size

public int size()
Returns the number of actions in this template

Specified by:
size in interface ActionTemplate
Returns:
the number of actions in this template