org.netbeans.modules.bpel.model.impl
Class BpelBuilderImpl

java.lang.Object
  extended by org.netbeans.modules.bpel.model.impl.BpelBuilderImpl
All Implemented Interfaces:
BPELElementsBuilder

public class BpelBuilderImpl
extends java.lang.Object
implements BPELElementsBuilder

Author:
ads

Constructor Summary
BpelBuilderImpl(BpelModelImpl model)
           
 
Method Summary
 void addEntityChangeListener(ChangeEventListener listener)
          Add change listener to builder.
 ExtendableActivity createActivity(ActivityDescriptor descriptor)
          Creates activity by its descriptor.
 Assign createAssign()
           
 Branches createBranches()
           
 Catch createCatch()
           
 CatchAll createCatchAll()
           
 Compensate createCompensate()
           
 CompensateScope createCompensateScope()
           
 CompensationHandler createCompenstaionHandler()
           
 CompletionCondition createCompletionCondition()
           
 BooleanExpr createCondition()
           
 Copy createCopy()
           
 Correlation createCorrelation()
           
 CorrelationContainer createCorrelationContainer()
           
 CorrelationSet createCorrelationSet()
           
 CorrelationSetContainer createCorrelationSetContainer()
           
 Documentation createDocumentation()
           
 Else createElse()
           
 ElseIf createElseIf()
           
 Empty createEmpty()
           
 EventHandlers createEventHandlers()
           
 Exit createExit()
           
 Extension createExtension()
           
 ExtensionContainer createExtensionContainer()
           
<T extends ExtensionEntity>
T
createExtensionEntity(java.lang.Class<T> clazz)
          Creates extension element.
 FaultHandlers createFaultHandlers()
           
 FinalCounterValue createFinalCounterValue()
           
 Flow createFlow()
           
 For createFor()
           
 ForEach createForEach()
           
 From createFrom()
           
 FromPart createFromPart()
           
 FromPartContainer createFromPartContainer()
           
 If createIf()
           
 Import createImport()
           
 Invoke createInvoke()
           
 Condition createJoinCondition()
           
 Link createLink()
           
 LinkContainer createLinkContainer()
           
 Literal createLiteral()
           
 MessageExchange createMessageExchange()
           
 MessageExchangeContainer createMessageExchangeContainer()
           
 OnAlarmEvent createOnAlarmEvent()
           
 OnAlarmPick createOnAlarmPick()
           
 OnEvent createOnEvent()
           
 OnMessage createOnMessage()
           
 PartnerLink createPartnerLink()
           
 PartnerLinkContainer createPartnerLinkContainer()
           
 PatternedCorrelation createPatternedCorrelation()
           
 PatternedCorrelationContainer createPatternedCorrelationContainer()
           
 Pick createPick()
           
 Process createProcess()
           
 Query createQuery()
           
 Receive createReceive()
           
 RepeatEvery createRepeatEvery()
           
 RepeatUntil createRepeatUntil()
           
 Reply createReply()
           
 ReThrow createRethrow()
           
 Scope createScope()
           
 Sequence createSequence()
           
 ServiceRef createServiceRef()
           
 Source createSource()
           
 SourceContainer createSourceContainer()
           
 StartCounterValue createStartCounterValue()
           
 Target createTarget()
           
 TargetContainer createTargetContainer()
           
 TerminationHandler createTerminationHandler()
           
 Throw createThrow()
           
 To createTo()
           
 ToPart createToPart()
           
 ToPartContainer createToPartContainer()
           
 Condition createTransitionCondition()
           
 DeadlineExpression createUntil()
           
 Validate createValidate()
           
 Variable createVariable()
           
 VariableContainer createVariableContainer()
           
 Wait createWait()
           
 While createWhile()
           
(package private)  void fireChangeEvent(ChangeEvent event)
           
 BpelModelImpl getModel()
           
 void removeEntityChangeListener(ChangeEventListener listener)
          Removes change listener from builder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BpelBuilderImpl

public BpelBuilderImpl(BpelModelImpl model)
Method Detail

createActivity

public ExtendableActivity createActivity(ActivityDescriptor descriptor)
Description copied from interface: BPELElementsBuilder
Creates activity by its descriptor.

Specified by:
createActivity in interface BPELElementsBuilder
Parameters:
descriptor - description of activity.
Returns:
instantiated activity

createProcess

public Process createProcess()
Specified by:
createProcess in interface BPELElementsBuilder
Returns:
instantiated process.

createEmpty

public Empty createEmpty()
Specified by:
createEmpty in interface BPELElementsBuilder
Returns:
instantiated empty.

createInvoke

public Invoke createInvoke()
Specified by:
createInvoke in interface BPELElementsBuilder
Returns:
instantiated invoke.

createReceive

public Receive createReceive()
Specified by:
createReceive in interface BPELElementsBuilder
Returns:
instantiated receive.

createReply

public Reply createReply()
Specified by:
createReply in interface BPELElementsBuilder
Returns:
instantiated reply.

createAssign

public Assign createAssign()
Specified by:
createAssign in interface BPELElementsBuilder
Returns:
instantiated assign.

createWait

public Wait createWait()
Specified by:
createWait in interface BPELElementsBuilder
Returns:
instantiated wait.

createThrow

public Throw createThrow()
Specified by:
createThrow in interface BPELElementsBuilder
Returns:
instantiated throw.

createExit

public Exit createExit()
Specified by:
createExit in interface BPELElementsBuilder
Returns:
instantiated terminate.

createFlow

public Flow createFlow()
Specified by:
createFlow in interface BPELElementsBuilder
Returns:
instantiated flow.

createWhile

public While createWhile()
Specified by:
createWhile in interface BPELElementsBuilder
Returns:
instantiated while.

createSequence

public Sequence createSequence()
Specified by:
createSequence in interface BPELElementsBuilder
Returns:
instantiated sequence.

createPick

public Pick createPick()
Specified by:
createPick in interface BPELElementsBuilder
Returns:
instantiated pick.

createScope

public Scope createScope()
Specified by:
createScope in interface BPELElementsBuilder
Returns:
instantiated scope.

createPartnerLinkContainer

public PartnerLinkContainer createPartnerLinkContainer()
Specified by:
createPartnerLinkContainer in interface BPELElementsBuilder
Returns:
instantiated partnerLinks.

createPartnerLink

public PartnerLink createPartnerLink()
Specified by:
createPartnerLink in interface BPELElementsBuilder
Returns:
instantiated partnerLink.

createFaultHandlers

public FaultHandlers createFaultHandlers()
Specified by:
createFaultHandlers in interface BPELElementsBuilder
Returns:
instantiated faultHandlers.

createCatch

public Catch createCatch()
Specified by:
createCatch in interface BPELElementsBuilder
Returns:
instantiated catch.

createEventHandlers

public EventHandlers createEventHandlers()
Specified by:
createEventHandlers in interface BPELElementsBuilder
Returns:
instantiated eventHandlers.

createOnMessage

public OnMessage createOnMessage()
Specified by:
createOnMessage in interface BPELElementsBuilder
Returns:
instantiated onMessage.

createCompenstaionHandler

public CompensationHandler createCompenstaionHandler()
Specified by:
createCompenstaionHandler in interface BPELElementsBuilder
Returns:
instantiated compensationHandler.

createVariableContainer

public VariableContainer createVariableContainer()
Specified by:
createVariableContainer in interface BPELElementsBuilder
Returns:
instantiated variables.

createVariable

public Variable createVariable()
Specified by:
createVariable in interface BPELElementsBuilder
Returns:
instantiated variable.

createCorrelationSetContainer

public CorrelationSetContainer createCorrelationSetContainer()
Specified by:
createCorrelationSetContainer in interface BPELElementsBuilder
Returns:
instantiated correlationSets.

createCorrelationSet

public CorrelationSet createCorrelationSet()
Specified by:
createCorrelationSet in interface BPELElementsBuilder
Returns:
instantiated correlationSet

createSource

public Source createSource()
Specified by:
createSource in interface BPELElementsBuilder
Returns:
instantiated source.

createTarget

public Target createTarget()
Specified by:
createTarget in interface BPELElementsBuilder
Returns:
instantiated target.

createCorrelationContainer

public CorrelationContainer createCorrelationContainer()
Specified by:
createCorrelationContainer in interface BPELElementsBuilder
Returns:
instantiated correlations.

createCorrelation

public Correlation createCorrelation()
Specified by:
createCorrelation in interface BPELElementsBuilder
Returns:
instantiated correlation.

createPatternedCorrelation

public PatternedCorrelation createPatternedCorrelation()
Specified by:
createPatternedCorrelation in interface BPELElementsBuilder
Returns:
instantiated correlationWithPattern.

createPatternedCorrelationContainer

public PatternedCorrelationContainer createPatternedCorrelationContainer()
Specified by:
createPatternedCorrelationContainer in interface BPELElementsBuilder
Returns:
instantiated correlationsWithPattern.

createTo

public To createTo()
Specified by:
createTo in interface BPELElementsBuilder
Returns:
instantiated to.

createFrom

public From createFrom()
Specified by:
createFrom in interface BPELElementsBuilder
Returns:
instantiated from.

createCompensate

public Compensate createCompensate()
Specified by:
createCompensate in interface BPELElementsBuilder
Returns:
instantiated compensate.

createCompensateScope

public CompensateScope createCompensateScope()
Specified by:
createCompensateScope in interface BPELElementsBuilder
Returns:
instantiated compensateScope.

createLinkContainer

public LinkContainer createLinkContainer()
Specified by:
createLinkContainer in interface BPELElementsBuilder
Returns:
instantiated links.

createLink

public Link createLink()
Specified by:
createLink in interface BPELElementsBuilder
Returns:
instantiated link.

createCopy

public Copy createCopy()
Specified by:
createCopy in interface BPELElementsBuilder
Returns:
instantiated copy.

createCatchAll

public CatchAll createCatchAll()
Specified by:
createCatchAll in interface BPELElementsBuilder
Returns:
instantiated catchAll ( activityOrCompensateContainer ).

createForEach

public ForEach createForEach()
Specified by:
createForEach in interface BPELElementsBuilder
Returns:
instantiated forEach.

createIf

public If createIf()
Specified by:
createIf in interface BPELElementsBuilder
Returns:
instantiated if.

createRepeatUntil

public RepeatUntil createRepeatUntil()
Specified by:
createRepeatUntil in interface BPELElementsBuilder
Returns:
instantiated repeatUntil.

createRethrow

public ReThrow createRethrow()
Specified by:
createRethrow in interface BPELElementsBuilder
Returns:
instantiated rethrow.

createValidate

public Validate createValidate()
Specified by:
createValidate in interface BPELElementsBuilder
Returns:
instantiated validate.

createCondition

public BooleanExpr createCondition()
Specified by:
createCondition in interface BPELElementsBuilder
Returns:
instantiated boolean expression.

createBranches

public Branches createBranches()
Specified by:
createBranches in interface BPELElementsBuilder
Returns:
instantiated branches.

createCompletionCondition

public CompletionCondition createCompletionCondition()
Specified by:
createCompletionCondition in interface BPELElementsBuilder
Returns:
instantiated completionCondition.

createTransitionCondition

public Condition createTransitionCondition()
Specified by:
createTransitionCondition in interface BPELElementsBuilder
Returns:
instantiated transitionCondition.

createJoinCondition

public Condition createJoinCondition()
Specified by:
createJoinCondition in interface BPELElementsBuilder
Returns:
instantiated joinCondition.

createUntil

public DeadlineExpression createUntil()
Specified by:
createUntil in interface BPELElementsBuilder
Returns:
instantiated Deadline Expression.

createDocumentation

public Documentation createDocumentation()
Specified by:
createDocumentation in interface BPELElementsBuilder
Returns:
instantiated documentation.

createElse

public Else createElse()
Specified by:
createElse in interface BPELElementsBuilder
Returns:
instantiated else.

createToPart

public ToPart createToPart()
Specified by:
createToPart in interface BPELElementsBuilder
Returns:
instantiated toPart.

createTerminationHandler

public TerminationHandler createTerminationHandler()
Specified by:
createTerminationHandler in interface BPELElementsBuilder
Returns:
instantiated terminationHandler.

createTargetContainer

public TargetContainer createTargetContainer()
Specified by:
createTargetContainer in interface BPELElementsBuilder
Returns:
instantiated targets.

createStartCounterValue

public StartCounterValue createStartCounterValue()
Specified by:
createStartCounterValue in interface BPELElementsBuilder
Returns:
instantiated startCounterValue.

createSourceContainer

public SourceContainer createSourceContainer()
Specified by:
createSourceContainer in interface BPELElementsBuilder
Returns:
instantiated sources.

createRepeatEvery

public RepeatEvery createRepeatEvery()
Specified by:
createRepeatEvery in interface BPELElementsBuilder
Returns:
instantiated repeatEvery.

createOnEvent

public OnEvent createOnEvent()
Specified by:
createOnEvent in interface BPELElementsBuilder
Returns:
instantiated onEvent.

createOnAlarmPick

public OnAlarmPick createOnAlarmPick()
Specified by:
createOnAlarmPick in interface BPELElementsBuilder
Returns:
instantiated onAlarm for Pick OnAlarmPick element.

createOnAlarmEvent

public OnAlarmEvent createOnAlarmEvent()
Specified by:
createOnAlarmEvent in interface BPELElementsBuilder
Returns:
instantiated onAlarm for EventHandlers OnAlarmEvent element.

createExtensionContainer

public ExtensionContainer createExtensionContainer()
Specified by:
createExtensionContainer in interface BPELElementsBuilder
Returns:
instantiated extensions.

createExtension

public Extension createExtension()
Specified by:
createExtension in interface BPELElementsBuilder
Returns:
instantiated extension.

createFinalCounterValue

public FinalCounterValue createFinalCounterValue()
Specified by:
createFinalCounterValue in interface BPELElementsBuilder
Returns:
instantiated finalCounterValue.

createLiteral

public Literal createLiteral()
Specified by:
createLiteral in interface BPELElementsBuilder
Returns:
instantiated literal.

createImport

public Import createImport()
Specified by:
createImport in interface BPELElementsBuilder
Returns:
instantiated import.

createFromPart

public FromPart createFromPart()
Specified by:
createFromPart in interface BPELElementsBuilder
Returns:
instantiated fromPart.

createFor

public For createFor()
Specified by:
createFor in interface BPELElementsBuilder
Returns:
instantiated for.

createElseIf

public ElseIf createElseIf()
Specified by:
createElseIf in interface BPELElementsBuilder
Returns:
instantiated elseif.

createMessageExchangeContainer

public MessageExchangeContainer createMessageExchangeContainer()
Specified by:
createMessageExchangeContainer in interface BPELElementsBuilder
Returns:
instantiated messageExchages element.

createMessageExchange

public MessageExchange createMessageExchange()
Specified by:
createMessageExchange in interface BPELElementsBuilder
Returns:
instantiated messageExchage element.

createServiceRef

public ServiceRef createServiceRef()
Specified by:
createServiceRef in interface BPELElementsBuilder
Returns:
instantiated "service-ref" element.

createToPartContainer

public ToPartContainer createToPartContainer()
Specified by:
createToPartContainer in interface BPELElementsBuilder
Returns:
instantiated toParts.

createFromPartContainer

public FromPartContainer createFromPartContainer()
Specified by:
createFromPartContainer in interface BPELElementsBuilder
Returns:
instantiated fromParts.

createQuery

public Query createQuery()
Specified by:
createQuery in interface BPELElementsBuilder
Returns:
instantiated query element.

createExtensionEntity

public <T extends ExtensionEntity> T createExtensionEntity(java.lang.Class<T> clazz)
Description copied from interface: BPELElementsBuilder
Creates extension element.

Specified by:
createExtensionEntity in interface BPELElementsBuilder
Type Parameters:
T - Class for element type.
Parameters:
clazz - Type for extension element.
Returns:
instantiated extension element with specified type.

addEntityChangeListener

public void addEntityChangeListener(ChangeEventListener listener)
Description copied from interface: BPELElementsBuilder
Add change listener to builder. Those listeners will be notified with only events that concern unattached elements.

Specified by:
addEntityChangeListener in interface BPELElementsBuilder
Parameters:
listener - listener for add.

removeEntityChangeListener

public void removeEntityChangeListener(ChangeEventListener listener)
Description copied from interface: BPELElementsBuilder
Removes change listener from builder.

Specified by:
removeEntityChangeListener in interface BPELElementsBuilder
Parameters:
listener - listener for remove.

fireChangeEvent

void fireChangeEvent(ChangeEvent event)

getModel

public BpelModelImpl getModel()