com.intel.gpe.clients.api.workflow
Class Declaration

java.lang.Object
  extended by com.intel.gpe.clients.api.workflow.Declaration
All Implemented Interfaces:
Action

public class Declaration
extends java.lang.Object
implements Action

The declaration of a variable or a partner link. This action doesn;t result in emitting any BPEL code rather than adding new variable or partner link to the Scope

Version:
$Id: Declaration.java,v 1.4 2006/11/24 14:04:51 lukichev Exp $
Author:
Alexander Lukichev

Constructor Summary
Declaration(PartnerLink partnerLink, PartnerLinkValue value)
          Declare a partner link with the provided name and the provided value.
Declaration(PartnerLinkValue value)
          Declare a partner link with some generated name and the provided value.
Declaration(java.lang.String part, VariableValue value)
          Declare a variable with provided part name and value
Declaration(VariableValue value)
          Declare a variable with some generated name and the provided value.
Declaration(Variable variable, VariableValue value)
          Declare a variable with the provided name and the provided value.
 
Method Summary
 void emitCode(Scope scope, org.w3c.dom.Element target)
          Emit the piece of code corresponding to the current action.
 PartnerLink getPartnerLink()
          Get the name of the declared partner link
 Variable getVariable()
          Get the name of the generated variable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Declaration

public Declaration(VariableValue value)
Declare a variable with some generated name and the provided value.

Parameters:
value - The variable value

Declaration

public Declaration(PartnerLinkValue value)
Declare a partner link with some generated name and the provided value.

Parameters:
value - The partner link value

Declaration

public Declaration(Variable variable,
                   VariableValue value)
Declare a variable with the provided name and the provided value.

Parameters:
variable - The variable name
value - The variable value

Declaration

public Declaration(PartnerLink partnerLink,
                   PartnerLinkValue value)
Declare a partner link with the provided name and the provided value.

Parameters:
partnerLink - The name of the partner link
value - The partner link value

Declaration

public Declaration(java.lang.String part,
                   VariableValue value)
Declare a variable with provided part name and value

Parameters:
part - - the name of the variable part
value - - the variable value
Method Detail

emitCode

public void emitCode(Scope scope,
                     org.w3c.dom.Element target)
              throws java.lang.Exception
Description copied from interface: Action
Emit the piece of code corresponding to the current action.

Specified by:
emitCode in interface Action
Parameters:
scope - The variable scope of the workflow
target - The XML DOM element to append the action code to
Throws:
java.lang.Exception - In a case of error

getPartnerLink

public PartnerLink getPartnerLink()
Get the name of the declared partner link

Returns:
The name of the partner link

getVariable

public Variable getVariable()
Get the name of the generated variable

Returns:
The name of the variable


Copyright © 2008. All Rights Reserved.