net.sf.doolin.oxml.action
Class CreateOXMLAction

java.lang.Object
  extended by net.sf.doolin.oxml.action.AbstractOXMLAction
      extended by net.sf.doolin.oxml.action.AbstractSequenceOXMLAction
          extended by net.sf.doolin.oxml.action.CreateOXMLAction
All Implemented Interfaces:
OXMLAction

public class CreateOXMLAction
extends AbstractSequenceOXMLAction

create action. This action creates an instance according to its parameters, pushes it on the instance stack, evaluates all nested actions and pops the instance back from the stack.

Parameters for this action are:

Author:
Damien Coraboeuf

Constructor Summary
CreateOXMLAction()
           
 
Method Summary
protected  void collect(Object instance, OXMLContext context)
          Collects the instances
protected  void create(OXMLContext context)
          Creates the instance
 void parse(Element e)
          Parses each child.
 void process(OXMLContext context)
          Processes each sub action.
protected  void setInParent(OXMLContext context, Object instance)
          Sets the created instance into its parent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateOXMLAction

public CreateOXMLAction()
Method Detail

parse

public void parse(Element e)
           throws IOException
Description copied from class: AbstractSequenceOXMLAction
Parses each child.

Specified by:
parse in interface OXMLAction
Overrides:
parse in class AbstractSequenceOXMLAction
Parameters:
e - Configuration element for this action.
Throws:
IOException - If the element cannot be parsed
See Also:
OXMLAction.parse(org.w3c.dom.Element)

process

public void process(OXMLContext context)
Description copied from class: AbstractSequenceOXMLAction
Processes each sub action.

Specified by:
process in interface OXMLAction
Overrides:
process in class AbstractSequenceOXMLAction
Parameters:
context - Execution context
See Also:
OXMLAction.process(net.sf.doolin.oxml.OXMLContext)

collect

protected void collect(Object instance,
                       OXMLContext context)
Collects the instances

Parameters:
instance - Instance to collect
context - OXML context

create

protected void create(OXMLContext context)
Creates the instance

Parameters:
context - Execution context

setInParent

protected void setInParent(OXMLContext context,
                           Object instance)
Sets the created instance into its parent

Parameters:
context - Execution context
instance - Created instance


Copyright © 2011. All Rights Reserved.