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

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.ActivityHolderImpl
                          extended by org.netbeans.modules.bpel.model.impl.BaseScopeImpl
                              extended by org.netbeans.modules.bpel.model.impl.ScopeImpl
All Implemented Interfaces:
Activity, ActivityHolder, BaseScope, BpelContainer, BpelEntity, CompensationHandlerHolder, ExtendableActivity, ExtensibleElements, JoinFailureSuppressor, NamedElement, BpelReferenceable, Scope, VariableDeclarationScope, Component<BpelEntity>, DocumentComponent<BpelEntity>, DocumentModelAccess.NodeUpdater, Named<BpelEntity>, Referenceable

public class ScopeImpl
extends BaseScopeImpl
implements Scope

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
 
Fields inherited from interface org.netbeans.modules.bpel.model.api.Scope
ISOLATED
 
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.BaseScope
EXIT_ON_STANDART_FAULT
 
Fields inherited from interface org.netbeans.modules.bpel.model.api.JoinFailureSuppressor
SUPPRESS_JOIN_FAILURE
 
Constructor Summary
ScopeImpl(BpelBuilderImpl builder)
           
ScopeImpl(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 .
protected
<T extends BpelEntity>
java.lang.Class<? extends BpelEntity>
getChildType(T entity)
          This method possibly needs to be overriden by some containers...
 CompensationHandler getCompensationHandler()
          Gets the value of the compensationHandler property.
protected  Attribute[] getDomainAttributes()
          This method should be implemented by any real class.
 java.lang.Class<? extends BpelEntity> getElementType()
           
 TBoolean getIsolated()
           
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.
 SourceContainer getSourceContainer()
           
 TargetContainer getTargetContainer()
           
 TerminationHandler getTerminationHandler()
           
 void removeCompensationHandler()
          Removes compensationHandler.
 void removeIsolated()
          Removes "isolated" attribute.
 void removeName()
          Removes "name" attribute.
 void removeSourceContainer()
          Remove "sources" child entity.
 void removeTargetContainer()
          Remove argets child entity.
 void removeTerminationHandler()
          Removes TerminationHandler entity.
 void setCompensationHandler(CompensationHandler value)
          Sets the value of the compensationHandler property.
 void setIsolated(TBoolean value)
          Setter for "isolated" attribute.
 void setSourceContainer(SourceContainer source)
          Set source as child "sources" entity..
 void setTargetContainer(TargetContainer target)
          Set target as "targets" child .
 void setTerminationHandler(TerminationHandler handler)
          Set Termination handler child entity.
 
Methods inherited from class org.netbeans.modules.bpel.model.impl.BaseScopeImpl
getCorrelationSetContainer, getEventHandlers, getExitOnStandardFault, getFaultHandlers, getMessageExchangeContainer, getName, getPartnerLinkContainer, getSuppressJoinFailure, getVariableContainer, removeCorrelationSetContainer, removeEventHandlers, removeExitOnStandardFault, removeFaultHandlers, removeMessageExchangeContainer, removePartnerLinkContainer, removeSuppressJoinFailure, removeVariableContainer, setCorrelationSetContainer, setEventHandlers, setExitOnStandardFault, setFaultHandlers, setMessageExchangeContainer, setName, setPartnerLinkContainer, setSuppressJoinFailure, setVariableContainer
 
Methods inherited from class org.netbeans.modules.bpel.model.impl.ActivityHolderImpl
getActivity, removeActivity, setActivity
 
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, 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.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.BaseScope
getCorrelationSetContainer, getEventHandlers, getExitOnStandardFault, getFaultHandlers, getMessageExchangeContainer, getPartnerLinkContainer, getVariableContainer, removeCorrelationSetContainer, removeEventHandlers, removeExitOnStandardFault, removeFaultHandlers, removeMessageExchangeContainer, removePartnerLinkContainer, removeVariableContainer, setCorrelationSetContainer, setEventHandlers, setExitOnStandardFault, setFaultHandlers, setMessageExchangeContainer, setPartnerLinkContainer, setVariableContainer
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.ActivityHolder
getActivity, removeActivity, setActivity
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.JoinFailureSuppressor
getSuppressJoinFailure, removeSuppressJoinFailure, setSuppressJoinFailure
 

Constructor Detail

ScopeImpl

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

ScopeImpl

ScopeImpl(BpelBuilderImpl builder)
Method Detail

getTerminationHandler

public TerminationHandler getTerminationHandler()
Specified by:
getTerminationHandler in interface Scope
Returns:
TerminationHandler child entity.

setTerminationHandler

public void setTerminationHandler(TerminationHandler handler)
Description copied from interface: Scope
Set Termination handler child entity.

Specified by:
setTerminationHandler in interface Scope
Parameters:
handler - New Termination handler.

removeTerminationHandler

public void removeTerminationHandler()
Description copied from interface: Scope
Removes TerminationHandler entity.

Specified by:
removeTerminationHandler in interface Scope

getIsolated

public TBoolean getIsolated()
Specified by:
getIsolated in interface Scope
Returns:
"isolated" attribute value.

setIsolated

public void setIsolated(TBoolean value)
Description copied from interface: Scope
Setter for "isolated" attribute.

Specified by:
setIsolated in interface Scope
Parameters:
value - New "isolated" attribute value.

removeIsolated

public void removeIsolated()
Description copied from interface: Scope
Removes "isolated" attribute.

Specified by:
removeIsolated in interface Scope

getSourceContainer

public SourceContainer getSourceContainer()
Specified by:
getSourceContainer in interface Activity
Returns:
"sources" container.

getTargetContainer

public TargetContainer getTargetContainer()
Specified by:
getTargetContainer in interface Activity
Returns:
targets child entity.

removeSourceContainer

public void removeSourceContainer()
Description copied from interface: Activity
Remove "sources" child entity.

Specified by:
removeSourceContainer in interface Activity

removeTargetContainer

public void removeTargetContainer()
Description copied from interface: Activity
Remove argets child entity.

Specified by:
removeTargetContainer in interface Activity

setSourceContainer

public void setSourceContainer(SourceContainer source)
Description copied from interface: Activity
Set source as child "sources" entity..

Specified by:
setSourceContainer in interface Activity
Parameters:
source - object for set.

setTargetContainer

public void setTargetContainer(TargetContainer target)
Description copied from interface: Activity
Set target as "targets" child .

Specified by:
setTargetContainer in interface Activity
Parameters:
target - object for set.

getCompensationHandler

public CompensationHandler getCompensationHandler()
Description copied from interface: CompensationHandlerHolder
Gets the value of the compensationHandler property.

Specified by:
getCompensationHandler in interface CompensationHandlerHolder
Returns:
possible object is CompensationHandler

setCompensationHandler

public void setCompensationHandler(CompensationHandler value)
Description copied from interface: CompensationHandlerHolder
Sets the value of the compensationHandler property.

Specified by:
setCompensationHandler in interface CompensationHandlerHolder
Parameters:
value - allowed object is CompensationHandler

removeCompensationHandler

public void removeCompensationHandler()
Description copied from interface: CompensationHandlerHolder
Removes compensationHandler.

Specified by:
removeCompensationHandler in interface CompensationHandlerHolder

getElementType

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

removeName

public void removeName()
Description copied from interface: Activity
Removes "name" attribute.

Specified by:
removeName in interface Activity

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 BaseScopeImpl
Returns:

getChildType

protected <T extends BpelEntity> java.lang.Class<? extends BpelEntity> getChildType(T entity)
Description copied from class: BpelContainerImpl
This method possibly needs to be overriden by some containers... F.e. it SHOULD to be overriden ActivityHolder and CompositeActivity because in these cases those containers contains elements as a whole they don't distinguish them by its own types ( Empty.class , etc. ). They need to count index for such children in common array ,not personal array.

Overrides:
getChildType in class ActivityHolderImpl

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 BaseScopeImpl

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 BaseScopeImpl