org.ejen
Class EjenRootNode

java.lang.Object
  |
  +--org.ejen.EjenChildNode
        |
        +--org.ejen.EjenRootNode
All Implemented Interfaces:
EjenConstants

public class EjenRootNode
extends EjenChildNode

Ejen root node class (see EjenTask).

Version:
1.0
Author:
F. Wolff
See Also:
EjenTask, EjenSourceNode, EjenMergeNode, EjenSaveNode, EjenFilterNode, EjenTemplateNode

Field Summary
 
Fields inherited from class org.ejen.EjenChildNode
_messageIndent
 
Fields inherited from interface org.ejen.EjenConstants
CTX_DOM_SOURCE, CTX_STYLESHEET_HANDLER, CTX_STYLESHEET_ROOT, CTX_TRANSFORMER_FACTORY_IMPL, CTX_TRANSFORMER_IMPL, DEFAULT_XML_DATA, DEFAULT_XML_DATA_ENCODING, DEFAULT_XSL_DATA, LOG_INDENT_STR1, LOG_INDENT_STR2, MSG_DEBUG, MSG_ERR, MSG_INFO, MSG_VERBOSE, MSG_WARN, STATE_AFTER_PROCESS, STATE_BEFORE_PROCESS, STATE_CHECK, STATE_IDLE, STATE_PROCESS, STATES
 
Constructor Summary
EjenRootNode()
           
 
Method Summary
 void appendChildNode(EjenChildNode ecn)
          Appends a child node to the current list of child nodes.
 void beforeProcess()
          Prepares the generation process.
 void check()
          Calls the check method for each child node.
 Vector getChildren()
          Returns child nodes of this EjenRootNode.
 String nodeName()
          Returns the name of this node ("ejen").
 void process()
          Starts the generation process (child nodes execution loop).
 
Methods inherited from class org.ejen.EjenChildNode
afterProcess, cloneContext, evaluateAVT, evaluateAVT, getAttributes, getFromContext, getFromContext, getFromGlobalContext, getListener, getState, idle, popContext, pushContext, putInContext, putInGlobalContext, sendMessageEvent, sendMessageEvent, sendStateEvent, sendXSLMessageEvent, sendXSLMessageEvent, setListener, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EjenRootNode

public EjenRootNode()
Method Detail

nodeName

public String nodeName()
Returns the name of this node ("ejen").

Specified by:
nodeName in class EjenChildNode
Returns:
the name of this node.

getChildren

public Vector getChildren()
Returns child nodes of this EjenRootNode.

Overrides:
getChildren in class EjenChildNode
Returns:
child nodes of this EjenRootNode.

appendChildNode

public void appendChildNode(EjenChildNode ecn)
Appends a child node to the current list of child nodes.

Throws:
EjenException - if the child node is an instance of EjenParamNode, EjenIncludeNode or EjenImportNode.

check

public void check()
Calls the check method for each child node.

Overrides:
check in class EjenChildNode
Throws:
EjenException - if check failed.

beforeProcess

public void beforeProcess()
Prepares the generation process. A default DOM tree is created by this method (see EjenConstants.DEFAULT_XML_DATA).

Overrides:
beforeProcess in class EjenChildNode
Throws:
EjenException - if something goes wrong...

process

public void process()
Starts the generation process (child nodes execution loop).

Overrides:
process in class EjenChildNode
Throws:
EjenException - if something goes wrong.