|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ejen.EjenChildNode | +--org.ejen.EjenStylesheetNode
Parent abstract class of all Ejen...Node classes that use a stylesheet (filter, template, include and import).
Field Summary | |
protected Vector |
_childNodes
|
protected String |
_file
|
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 | |
EjenStylesheetNode()
|
Method Summary | |
void |
afterProcess()
Pops the context that has been pushed by the beforeProcess() method. |
void |
beforeProcess()
Prepares this EjenStylesheetNode execution. |
void |
check()
Checks this EjenStylesheetNode for mandatory attributes. |
EjenImportNode |
createImport()
Creates a new import node and appends it to the list of current child nodes of this EjenStylesheetNode. |
EjenIncludeNode |
createInclude()
Creates a new include node and appends it to the list of current child nodes of this EjenStylesheetNode. |
EjenParamNode |
createParam()
Creates a new param node and appends it to the list of current child nodes of this EjenStylesheetNode. |
Properties |
getAttributes()
Returns all non null attributes of this EjenStylesheetNode. |
Vector |
getChildren()
Returns all child nodes of this EjenStylesheetNode (include, import or param). |
void |
process()
Executes this EjenStylesheetNode (and all child nodes). |
void |
setFile(String file)
[mandatory/AVT] - sets the file attribute. |
Methods inherited from class org.ejen.EjenChildNode |
cloneContext, evaluateAVT, evaluateAVT, getFromContext, getFromContext, getFromGlobalContext, getListener, getState, idle, nodeName, 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 |
Field Detail |
protected Vector _childNodes
protected String _file
Constructor Detail |
public EjenStylesheetNode()
Method Detail |
public Properties getAttributes()
getAttributes
in class EjenChildNode
public Vector getChildren()
getChildren
in class EjenChildNode
public void setFile(String file)
file
- name of the XSL file stylesheet to be used as filter, template,
include or import.public EjenParamNode createParam()
public EjenIncludeNode createInclude()
public EjenImportNode createImport()
public void check()
check
in class EjenChildNode
EjenException
- if file attribute is not set or if any
call to the check() method of a child node fails.public void beforeProcess()
beforeProcess
in class EjenChildNode
public void process()
process
in class EjenChildNode
public void afterProcess()
beforeProcess()
method.
afterProcess
in class EjenChildNode
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |