| edu.iu.uis.eden.routetemplate.AbstractRoleAttribute edu.sampleu.travel.workflow.AccountAttribute
AccountAttribute | public class AccountAttribute extends AbstractRoleAttribute (Code) | | Resolves FO's using the accounts associated with the document XPath xpath =
KualiWorkflowUtils.getXPath(documentContent.getDocument()); List qualifiers = new ArrayList(); NodeList
accountNums = (NodeList)xstreamSafeEval(xpath, "//edu.sampleu.travel.workflow.bo.TravelAccount/number",
documentContent.getDocument(), XPathConstants.NODESET); for (int i = 0; i < accountNums.getLength(); i++) { Node accountNum =
accountNums.item(i); String accuntNumVal = accountNum.getNodeValue(); }
|
xstreamSafeEval | final public static Object xstreamSafeEval(XPath xpath, String xpathExpression, Object item, QName returnType)(Code) | | This method will do a simple XPath.evaluate, while wrapping your xpathExpression with the xstreamSafe function. It assumes a
String result, and will return such. If an XPathExpressionException is thrown, this will be re-thrown within a
RuntimeException.
Parameters: xpath - A correctly initialized XPath instance. Parameters: xpathExpression - Your XPath Expression that needs to be wrapped in an xstreamSafe wrapper and run. Parameters: item - The document contents you will be searching within. The string value of the xpath.evaluate(). |
|
|