public class NodeForEach extends ForEach
Select a set of DOM nodes using a pattern and iterate over them.
These are the parameters for the NodeForEach
droplet:
Document
node, then the
selection is made relative to the root element of the document.ForEach
droplet.
There are no failure or unset oparams for the
NodeForEach
droplet, but the node is required,
and there can be errors in the execution of the XML query.
For example, there will be an error if the
select parameter is an illegal XPath expression.
If an error occurs during node selection,
the resulting array will be null,
and the empty oparam will be rendered.
If error logging is enabled,
the details of the exception will be written to the log.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
static java.lang.String |
DEFAULT_XPATH_EXPRESSION
The default XPath expression to use
when the select parameter is unset.
|
static java.lang.String |
NODE_PARAM
The name of the node input parameter
|
static java.lang.String |
SELECT_PARAM
The name of the select input parameter
|
ARRAY, COUNT, DEBUG, ELEMENT, ELEMENT_NAME, EMPTY, INDEX, INDEX_NAME, KEY, OUTPUT, OUTPUT_END, OUTPUT_START, REVERSE_ORDER, SIZE, SORT_PROPERTIES
mAllowCleanupRequest, mParameters
SERVLET_INFO_KEY
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
NodeForEach() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getArray(DynamoHttpServletRequest pReq)
Gets the array-like value (e.g., array, Vector, Enumeration)
to be used by this droplet from the request.
|
atg.xml.tools.XMLToolsFactory |
getXmlToolsFactory()
Get the XMLToolsFactory used by this component.
|
void |
setXmlToolsFactory(atg.xml.tools.XMLToolsFactory pXMLToolsFactory)
Set the XMLToolsFactory to be used by this component.
|
getSortedArray, service, serviceArray, serviceCollection, serviceDictionary, serviceEnumeration, serviceIndexedList, serviceIterator, serviceMap, serviceMapArray, servicePrimitiveArray, setElementParameter
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, init, service, service, setParameter
destroy, getServletConfig, getServletInfo, setServletInfo
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static java.lang.String CLASS_VERSION
public static java.lang.String NODE_PARAM
public static java.lang.String SELECT_PARAM
public static java.lang.String DEFAULT_XPATH_EXPRESSION
public void setXmlToolsFactory(atg.xml.tools.XMLToolsFactory pXMLToolsFactory)
public atg.xml.tools.XMLToolsFactory getXmlToolsFactory()
public java.lang.Object getArray(DynamoHttpServletRequest pReq)