org.netbeans.modules.bpel.model.api
Interface FromPart

All Superinterfaces:
AbstractVariableDeclaration, BpelEntity, BpelReferenceable, Component<BpelEntity>, DocumentComponent<BpelEntity>, PartReference, Referenceable, ReferenceCollection, VariableDeclaration
All Known Implementing Classes:
FromPartImpl

public interface FromPart
extends BpelEntity, PartReference, ReferenceCollection, VariableDeclaration

Author:
ads

Java class for tFromPart complex type.

The following schema fragment specifies the expected content contained within this class.

   <complexType name="tFromPart">
     <complexContent>
       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
         <attribute name="part" use="required" type="{http://www.w3.org/2001/XMLSchema}NCName" />
         <attribute name="toVariable" use="required" type="{http://www.w3.org/2001/XMLSchema}NCName" />
       </restriction>
     </complexContent>
   </complexType>
 
This interface extends VariableDeclaration interface only if it child of OnEvent. In this case there is static analysis rule : For , variables referenced by the variable attribute of elements or the variable attribute of an element are implicitly declared in the associated scope of the event handler. Variables of the same names MUST NOT be explicitly declared in the associated scope. The variable references are resolved to the associated scope only and MUST NOT be resolved to the ancestor scopes. We need "real" element to be referenced, so in this case we consider FromPart as VariableDeclaration and reference resolving will be realized to FromPart. But this is not actually correct ( variables should be considered as variables declared in Scope ).

Field Summary
static java.lang.String TO_VARIABLE
           
 
Fields inherited from interface org.netbeans.modules.bpel.model.api.PartReference
PART
 
Method Summary
 BpelReference<VariableDeclaration> getToVariable()
           
 void setToVariable(BpelReference<VariableDeclaration> variable)
          Set new reference to variable ( "toVariable" attribute value ).
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.PartReference
getPart, setPart
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.references.ReferenceCollection
createReference, createSchemaReference, createWSDLReference, getReferences
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.AbstractVariableDeclaration
getElement, getMessageType, getType, getVariableName
 

Field Detail

TO_VARIABLE

static final java.lang.String TO_VARIABLE
See Also:
Constant Field Values
Method Detail

getToVariable

BpelReference<VariableDeclaration> getToVariable()
Returns:
Reference to variable ( "toVariable" attribute value ).

setToVariable

void setToVariable(BpelReference<VariableDeclaration> variable)
Set new reference to variable ( "toVariable" attribute value ).

Parameters:
variable - New reference to variable.