net.kwfgrid.gwes
Class TokenProcessor

java.lang.Object
  extended by net.kwfgrid.gwes.TokenProcessor

public class TokenProcessor
extends Object

This class evaluates XPath expressions and generates tokens based on the evaluation result.

Version:
$Id: TokenProcessor.java 1433 2010-11-29 18:06:07Z hoheisel $
Author:
Andreas Hoheisel (www.andreas-hoheisel.de)

Constructor Summary
TokenProcessor(org.jaxen.SimpleNamespaceContext nsContext, org.jdom.Document context, TokenParameterList tokenList)
          Constructor of the data token processor.
 
Method Summary
 TokenParameterList generateOutputTokens(net.kwfgrid.gworkflowdl.structure.GenericProperties props)
          Generate the data output tokens by evaluating the XPath expressions against the context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenProcessor

public TokenProcessor(org.jaxen.SimpleNamespaceContext nsContext,
                      org.jdom.Document context,
                      TokenParameterList tokenList)
Constructor of the data token processor.

Parameters:
context - The xml which is used as context for the evaluation.
tokenList - A list of token parameters.
Throws:
net.kwfgrid.gworkflowdl.structure.WorkflowFormatException
Method Detail

generateOutputTokens

public TokenParameterList generateOutputTokens(net.kwfgrid.gworkflowdl.structure.GenericProperties props)
                                        throws net.kwfgrid.gworkflowdl.structure.WorkflowFormatException
Generate the data output tokens by evaluating the XPath expressions against the context. This method only creates new tokens if the current token is null and if the XPath expression evaluation returns a non-empty value.

Parameters:
props - The generic properties to be included for all tokens.
Returns:
The Token Map.
Throws:
net.kwfgrid.gworkflowdl.structure.WorkflowFormatException


Copyright © 2005-2011 Fraunhofer FIRST. All Rights Reserved.