|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ejen.EjenChildNode | +--org.ejen.EjenMergeNode
Merge node class.
A merge node merges an XML file into the current in memory DOM tree.
Attributes give a basic way to control the merge origin and destination.
If this is not sufficient, it is still possible to use an
XMLInclude
extension.
Usage (ant build file) |
---|
|
Parent nodes:
EjenSourceNode
,
EjenSaveNode
,
XMLInclude
Field Summary | |
protected String |
_file
|
protected String |
_select
|
protected String |
_to
|
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 | |
EjenMergeNode()
|
Method Summary | |
void |
check()
Checks this EjenMergeNode for mandatory attributes. |
Properties |
getAttributes()
Returns all non null attributes of this EjenSaveNode. |
String |
nodeName()
Returns the name of this EjenMergeNode (always "merge"). |
void |
process()
Executes this EjenMergeNode. |
void |
setFile(String file)
[mandatory/AVT] - sets the file attribute. |
void |
setSelect(String select)
[optional/AVT] - sets the select attribute. |
void |
setTo(String to)
[optional/AVT] - sets the to attribute. |
Methods inherited from class org.ejen.EjenChildNode |
afterProcess, beforeProcess, cloneContext, evaluateAVT, evaluateAVT, getChildren, 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 |
Field Detail |
protected String _file
protected String _select
protected String _to
Constructor Detail |
public EjenMergeNode()
Method Detail |
public String nodeName()
nodeName
in class EjenChildNode
public Properties getAttributes()
getAttributes
in class EjenChildNode
public void setFile(String file)
file
- name of the XML file to be merged into the current in
memory DOM tree.public void setSelect(String select)
select
- may be used to select only a sub-nodes set in the
XML file to be merged. Default is root node.public void setTo(String to)
to
- may be used to change the destination node (parent
node of the nodes to be merged). Default is root node.public void check()
check
in class EjenChildNode
EjenException
- if file attribute is not set.public void process()
process
in class EjenChildNode
EjenException
- if something goes wrong...
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |