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

java.lang.Object
  extended by org.netbeans.modules.xml.xam.AbstractComponent<C>
      extended by org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent<BpelEntity>
          extended by org.netbeans.modules.bpel.model.impl.BpelEntityImpl
              extended by org.netbeans.modules.bpel.model.impl.BpelContainerImpl
                  extended by org.netbeans.modules.bpel.model.impl.ExtensibleElementsImpl
                      extended by org.netbeans.modules.bpel.model.impl.NamedElementImpl
                          extended by org.netbeans.modules.bpel.model.impl.ActivityImpl
                              extended by org.netbeans.modules.bpel.model.impl.ForEachImpl
All Implemented Interfaces:
AbstractVariableDeclaration, Activity, BpelContainer, BpelEntity, ExtendableActivity, ExtensibleElements, ForEach, JoinFailureSuppressor, NamedElement, BpelReferenceable, ScopeHolder, VariableDeclaration, VariableDeclarationScope, AfterExtensions, AfterImport, AfterSources, AfterTargets, Component<BpelEntity>, DocumentComponent<BpelEntity>, DocumentModelAccess.NodeUpdater, Named<BpelEntity>, Referenceable

public class ForEachImpl
extends ActivityImpl
implements ForEach

Author:
ads

Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.modules.bpel.model.impl.BpelContainerImpl
BpelContainerImpl.CopyKey, BpelContainerImpl.Multiplicity
 
Nested classes/interfaces inherited from class org.netbeans.modules.bpel.model.impl.BpelEntityImpl
BpelEntityImpl.IdMapKey
 
Nested classes/interfaces inherited from class org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent
AbstractDocumentComponent.PrefixAttribute
 
Field Summary
(package private) static java.lang.String UNSAIGNED_INT
           
 
Fields inherited from interface org.netbeans.modules.bpel.model.api.ForEach
COUNTER_NAME, PARALLEL
 
Fields inherited from interface org.netbeans.modules.bpel.model.api.BpelEntity
BUSINESS_PROCESS_1_1_NS_URI, BUSINESS_PROCESS_DRAFT_NS_URI, BUSINESS_PROCESS_NS_URI
 
Fields inherited from interface org.netbeans.modules.xml.xam.dom.DocumentComponent
TEXT_CONTENT_PROPERTY
 
Fields inherited from interface org.netbeans.modules.bpel.model.api.JoinFailureSuppressor
SUPPRESS_JOIN_FAILURE
 
Fields inherited from interface org.netbeans.modules.bpel.model.api.NamedElement
NAME
 
Fields inherited from interface org.netbeans.modules.xml.xam.Named
NAME_PROPERTY
 
Fields inherited from interface org.netbeans.modules.bpel.model.api.BpelEntity
BUSINESS_PROCESS_1_1_NS_URI, BUSINESS_PROCESS_DRAFT_NS_URI, BUSINESS_PROCESS_NS_URI
 
Fields inherited from interface org.netbeans.modules.xml.xam.dom.DocumentComponent
TEXT_CONTENT_PROPERTY
 
Fields inherited from interface org.netbeans.modules.bpel.model.api.BpelEntity
BUSINESS_PROCESS_1_1_NS_URI, BUSINESS_PROCESS_DRAFT_NS_URI, BUSINESS_PROCESS_NS_URI
 
Fields inherited from interface org.netbeans.modules.xml.xam.dom.DocumentComponent
TEXT_CONTENT_PROPERTY
 
Constructor Summary
ForEachImpl(BpelBuilderImpl builder)
           
ForEachImpl(BpelModelImpl model, org.w3c.dom.Element e)
           
 
Method Summary
 void accept(BpelModelVisitor visitor)
          This method will apply visitor to this OM element.
protected  BpelEntity create(org.w3c.dom.Element element)
          This method should be implemented by each container .
 CompletionCondition getCompletionCondition()
          Getter for "completionCondition" tag entity.
 java.lang.String getCounterName()
          Getter for counter name variable.
protected  Attribute[] getDomainAttributes()
          This method should be implemented by any real class.
 SchemaReference<org.netbeans.modules.xml.schema.model.GlobalElement> getElement()
          Gets the element type if variable declaration have Schema element type.
 java.lang.Class<? extends BpelEntity> getElementType()
           
 FinalCounterValue getFinalCounterValue()
           
 WSDLReference<Message> getMessageType()
          Gets the message type if varaible declaration have WSDL type.
protected  BpelContainerImpl.Multiplicity getMultiplicity(BpelEntity entity)
          This method should be overriden in concrete implementation if entity can present in this container with not unbounded multiplicity.
 TBoolean getParallel()
           
 Scope getScope()
           
 StartCounterValue getStartCounterValue()
           
 SchemaReference<org.netbeans.modules.xml.schema.model.GlobalType> getType()
          Gets the type if variable declaration have Schema type.
 java.lang.String getVariableName()
          Getter for variable name.
 void removeCompletionCondition()
          Removes CompletionCondition child entity.
 void removeScope()
          Removes child scope.
 void setCompletionCondition(CompletionCondition condition)
          Setter or "completionCondition" tag entity.
 void setCounterName(java.lang.String value)
          Set counter name.
 void setFinalCounterValue(FinalCounterValue expression)
          Setter for "finalCounterValue" tag element.
 void setParallel(TBoolean value)
           
 void setScope(Scope scope)
          Set Scope child entity.
 void setStartCounterValue(StartCounterValue expression)
          Setter for "startCounterValue" tag element.
 
Methods inherited from class org.netbeans.modules.bpel.model.impl.ActivityImpl
getSourceContainer, getSuppressJoinFailure, getTargetContainer, removeName, removeSourceContainer, removeSuppressJoinFailure, removeTargetContainer, setSourceContainer, setSuppressJoinFailure, setTargetContainer
 
Methods inherited from class org.netbeans.modules.bpel.model.impl.NamedElementImpl
getName, setName
 
Methods inherited from class org.netbeans.modules.bpel.model.impl.ExtensibleElementsImpl
addDocumentation, addExtensionEntity, getDocumentation, getDocumentation, getDocumentations, getExtensionChildren, insertDocumentation, removeDocumentation, removeDocumentation, setDocumentation, setDocumentation, setDocumentations, sizeOfDocumentations
 
Methods inherited from class org.netbeans.modules.bpel.model.impl.BpelContainerImpl
addChild, addChildAfter, addChildBefore, canPaste, getChild, getChild, getChildren, getChildType, indexOf, insertAtAbsoluteIndex, insertAtIndex, insertAtIndexAfter, isRegular, populateChildren, remove, removeChild, removeChild, setArrayAfter, setArrayBefore, setChild, setChildAtIndex
 
Methods inherited from class org.netbeans.modules.bpel.model.impl.BpelEntityImpl
accept, acceptChildren, checkDeleted, checkInTree, copy, copy, createReference, createSchemaReference, createWSDLReference, cut, getAttribute, getAttributeAccess, getAttributeValueOf, getBooleanAttribute, getBpelModel, getBpelReference, getBpelReferenceList, getCookie, getCookies, getCorrectedText, getEntityName, getModel, getNamespaceContext, getParent, getQNameAttribute, getSchemaReference, getSchemaReferenceList, getText, getUID, getWSDLReference, getWSDLReferenceList, handleAttributeChange, isDeleted, isInTree, postGlobalEvent, postGlobalEvent, readLock, readUnlock, removeAttribute, removeCookie, removeReference, setAttribute, setBpelAttribute, setBpelAttribute, setBpelAttribute, setBpelReference, setBpelReferenceList, setCookie, setCookies, setDeleted, setInTree, setInTreeRecursively, setSchemaReference, setText, setText, setUID, setWSDLReference, setWSDLReferenceList, updateReference, writeLock, writeUnlock
 
Methods inherited from class org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent
addPrefix, appendChildQuietly, createPrefixAttribute, ensureUnique, ensureValueNamespaceDeclared, findAttributePosition, findChildComponent, findChildComponentByIdentity, findDomainIndex, findPosition, fireChildAdded, fireChildRemoved, firePropertyChange, fireValueChanged, getAccess, getAnyAttribute, getAttributeMap, getChildElement, getChildElementText, getEffectiveParent, getLeadingText, getNamespaceURI, getNodeIndexOf, getPeer, getPrefixedName, getPrefixedName, getPrefixedName, getPrefixes, getQName, getQName, getText, getText, getTrailingText, getXmlFragment, getXmlFragmentInclusive, insertAtIndexQuietly, isInDocumentModel, lookupNamespaceURI, lookupNamespaceURI, lookupPrefix, referencesSameNode, removeAttributeQuietly, removeChildQuietly, removePrefix, resolveModel, setAnyAttribute, setAttributeQuietly, setChildElementText, setLeadingText, setQNameAttribute, setText, setTrailingText, setXmlFragment, updatePeer, updateReference, updateReference, updateReference, verifyWrite
 
Methods inherited from class org.netbeans.modules.xml.xam.AbstractComponent
addAfter, addBefore, addPropertyChangeListener, appendChild, checkNullOrDuplicateChild, getChildren, getChildren, insertAtIndex, insertAtIndex, isChildrenInitialized, removeChild, removeComponentListener, removePropertyChangeListener, setChild, setChild, setChildAfter, setChildBefore, setModel, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.Activity
getSourceContainer, getTargetContainer, removeName, removeSourceContainer, removeTargetContainer, setSourceContainer, setTargetContainer
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.ExtensibleElements
addDocumentation, addExtensionEntity, getDocumentation, getDocumentation, getDocumentations, getExtensionChildren, insertDocumentation, removeDocumentation, removeDocumentation, setDocumentation, setDocumentation, setDocumentations, sizeOfDocumentations
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.BpelContainer
indexOf, remove
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.BpelEntity
accept, copy, cut, getBpelModel, getCookie, getNamespaceContext, getParent, getUID, removeCookie, setCookie
 
Methods inherited from interface org.netbeans.modules.xml.xam.dom.DocumentComponent
findAttributePosition, findChildComponent, findPosition, getAttribute, getPeer, isInDocumentModel, referencesSameNode, setAttribute
 
Methods inherited from interface org.netbeans.modules.xml.xam.Component
canPaste, copy, getChildren, getChildren, getChildren, getModel
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.JoinFailureSuppressor
getSuppressJoinFailure, removeSuppressJoinFailure, setSuppressJoinFailure
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.NamedElement
getName, setName
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.BpelContainer
indexOf, remove
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.BpelEntity
accept, copy, cut, getBpelModel, getCookie, getNamespaceContext, getParent, getUID, removeCookie, setCookie
 
Methods inherited from interface org.netbeans.modules.xml.xam.dom.DocumentComponent
findAttributePosition, findChildComponent, findPosition, getAttribute, getPeer, isInDocumentModel, referencesSameNode, setAttribute
 
Methods inherited from interface org.netbeans.modules.xml.xam.Component
canPaste, copy, getChildren, getChildren, getChildren, getModel
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.BpelEntity
accept, copy, cut, getBpelModel, getCookie, getNamespaceContext, getParent, getUID, removeCookie, setCookie
 
Methods inherited from interface org.netbeans.modules.xml.xam.dom.DocumentComponent
findAttributePosition, findChildComponent, findPosition, getAttribute, getPeer, isInDocumentModel, referencesSameNode, setAttribute
 
Methods inherited from interface org.netbeans.modules.xml.xam.Component
canPaste, copy, getChildren, getChildren, getChildren, getModel
 

Field Detail

UNSAIGNED_INT

static final java.lang.String UNSAIGNED_INT
See Also:
Constant Field Values
Constructor Detail

ForEachImpl

ForEachImpl(BpelModelImpl model,
            org.w3c.dom.Element e)

ForEachImpl

ForEachImpl(BpelBuilderImpl builder)
Method Detail

getStartCounterValue

public StartCounterValue getStartCounterValue()
Specified by:
getStartCounterValue in interface ForEach
Returns:
"startCounterValue" tag element.

setStartCounterValue

public void setStartCounterValue(StartCounterValue expression)
Description copied from interface: ForEach
Setter for "startCounterValue" tag element.

Specified by:
setStartCounterValue in interface ForEach
Parameters:
expression - New Expression for "startCounterValue" child.

getFinalCounterValue

public FinalCounterValue getFinalCounterValue()
Specified by:
getFinalCounterValue in interface ForEach
Returns:
"finalCounterValue" tag element.

setFinalCounterValue

public void setFinalCounterValue(FinalCounterValue expression)
Description copied from interface: ForEach
Setter for "finalCounterValue" tag element.

Specified by:
setFinalCounterValue in interface ForEach
Parameters:
expression - New Expression for "finalCounterValue" child.

getCompletionCondition

public CompletionCondition getCompletionCondition()
Description copied from interface: ForEach
Getter for "completionCondition" tag entity.

Specified by:
getCompletionCondition in interface ForEach
Returns:
CompletionCondition child entity.

setCompletionCondition

public void setCompletionCondition(CompletionCondition condition)
Description copied from interface: ForEach
Setter or "completionCondition" tag entity.

Specified by:
setCompletionCondition in interface ForEach
Parameters:
condition - CompletionCondition child entity.

removeCompletionCondition

public void removeCompletionCondition()
Description copied from interface: ForEach
Removes CompletionCondition child entity.

Specified by:
removeCompletionCondition in interface ForEach

getCounterName

public java.lang.String getCounterName()
Description copied from interface: ForEach
Getter for counter name variable. This is local variable that is created implicetly . This is one more place where variable could be defined.

Specified by:
getCounterName in interface ForEach
Returns:
Counter name.

setCounterName

public void setCounterName(java.lang.String value)
                    throws VetoException
Description copied from interface: ForEach
Set counter name.

Specified by:
setCounterName in interface ForEach
Parameters:
value - New name of counter variable.
Throws:
VetoException - Could be thrown if value is not allowable here.

getParallel

public TBoolean getParallel()
Specified by:
getParallel in interface ForEach
Returns:
parallel attribute value.

setParallel

public void setParallel(TBoolean value)
Specified by:
setParallel in interface ForEach
Parameters:
value - New value for "parallel" attribute.

getElementType

public java.lang.Class<? extends BpelEntity> getElementType()
Specified by:
getElementType in interface BpelEntity
Returns:
interface in OM that represented by this entity.

getScope

public Scope getScope()
Specified by:
getScope in interface ScopeHolder
Returns:
Scope child entity.

setScope

public void setScope(Scope scope)
Description copied from interface: ScopeHolder
Set Scope child entity.

Specified by:
setScope in interface ScopeHolder
Parameters:
scope - Entity for set.

removeScope

public void removeScope()
Description copied from interface: ScopeHolder
Removes child scope.

Specified by:
removeScope in interface ScopeHolder

getMessageType

public WSDLReference<Message> getMessageType()
Description copied from interface: AbstractVariableDeclaration
Gets the message type if varaible declaration have WSDL type. Method returns reference that can point to read=-only Message.

Specified by:
getMessageType in interface AbstractVariableDeclaration
Returns:
possible object is reference to WSDL model.

getElement

public SchemaReference<org.netbeans.modules.xml.schema.model.GlobalElement> getElement()
Description copied from interface: AbstractVariableDeclaration
Gets the element type if variable declaration have Schema element type. Method returns reference that can point to read=-only Element.

Specified by:
getElement in interface AbstractVariableDeclaration
Returns:
possible object is reference to GlobalElement in schema model.

getType

public SchemaReference<org.netbeans.modules.xml.schema.model.GlobalType> getType()
Description copied from interface: AbstractVariableDeclaration
Gets the type if variable declaration have Schema type. Method returns reference that can point to read=-only GlobalType.

Specified by:
getType in interface AbstractVariableDeclaration
Returns:
possible object is reference to GlobalType.

getVariableName

public java.lang.String getVariableName()
Description copied from interface: AbstractVariableDeclaration
Getter for variable name.

Specified by:
getVariableName in interface AbstractVariableDeclaration
Returns:
Variable name.

accept

public void accept(BpelModelVisitor visitor)
Description copied from interface: BpelEntity
This method will apply visitor to this OM element. visitor should perform navigation in tree ( if it wants by itself ).

Specified by:
accept in interface BpelEntity
Parameters:
visitor - visitor for OM.

create

protected BpelEntity create(org.w3c.dom.Element element)
Description copied from class: BpelContainerImpl
This method should be implemented by each container . Container should recognize in element its child and create Bpel element respectively. Warning! Here exist some possibility for error. Each container should recognize only those children that could be inside it as specification said. One cannot create one static mehtod for recognition all BPEL elements because f.e. container VariableContainer could have ONLY Variable inside it. It cannot have "flow" tag inside it ( it can have "flow" but this is just extention element that will not be treated as BPEL element ).

Overrides:
create in class ActivityImpl
Returns:

getDomainAttributes

protected Attribute[] getDomainAttributes()
Description copied from class: BpelEntityImpl
This method should be implemented by any real class. It returns list of possible attributes for entity. It used in firing event about attribute change while synchronizing with source.

Overrides:
getDomainAttributes in class ActivityImpl

getMultiplicity

protected BpelContainerImpl.Multiplicity getMultiplicity(BpelEntity entity)
Description copied from class: BpelContainerImpl
This method should be overriden in concrete implementation if entity can present in this container with not unbounded multiplicity.

Overrides:
getMultiplicity in class ActivityImpl