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

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
All Implemented Interfaces:
ActivityHolder, BaseScope, BpelContainer, BpelEntity, ExtensibleElements, JoinFailureSuppressor, NamedElement, VariableDeclarationScope, Component<BpelEntity>, DocumentComponent<BpelEntity>, DocumentModelAccess.NodeUpdater, Named<BpelEntity>
Direct Known Subclasses:
ProcessImpl, ScopeImpl

public abstract class BaseScopeImpl
extends ActivityHolderImpl
implements BaseScope, NamedElement

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.BaseScope
EXIT_ON_STANDART_FAULT
 
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
 
Constructor Summary
BaseScopeImpl(BpelBuilderImpl builder, java.lang.String tagName)
           
BaseScopeImpl(BpelModelImpl model, org.w3c.dom.Element e)
           
 
Method Summary
protected  BpelEntity create(org.w3c.dom.Element element)
          This method should be implemented by each container .
 CorrelationSetContainer getCorrelationSetContainer()
          Gets the value of the correlationSets property.
protected  Attribute[] getDomainAttributes()
          This method should be implemented by any real class.
 EventHandlers getEventHandlers()
          Gets the value of the eventHandlers property.
 TBoolean getExitOnStandardFault()
          Getter for attribute exitOnStandardFault.
 FaultHandlers getFaultHandlers()
          Gets the value of the faultHandlers property.
 MessageExchangeContainer getMessageExchangeContainer()
           
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.
 java.lang.String getName()
           
 PartnerLinkContainer getPartnerLinkContainer()
          Gets the value of the partnerLinks property.
 TBoolean getSuppressJoinFailure()
          Gets the value of the suppressJoinFailure property.
 VariableContainer getVariableContainer()
          Gets the value of the variables property.
 void removeCorrelationSetContainer()
          Removes CorrelationSetContainer element from this entity.
 void removeEventHandlers()
          Removes EventHandlers element from this entity.
 void removeExitOnStandardFault()
          Removes attribute exitOnStandardFault.
 void removeFaultHandlers()
          Removes FaultHandlers element from this entity.
 void removeMessageExchangeContainer()
          Removes MessageExchangeContainer child.
 void removePartnerLinkContainer()
          Removes partnerLinks.
 void removeSuppressJoinFailure()
          Removes attribute suppressJoinFailure.
 void removeVariableContainer()
          Removes VariableContainer element from this entity.
 void setCorrelationSetContainer(CorrelationSetContainer value)
          Sets the value of the correlationSets property.
 void setEventHandlers(EventHandlers value)
          Sets the value of the eventHandlers property.
 void setExitOnStandardFault(TBoolean value)
          Setter for attribute exitOnStandardFault.
 void setFaultHandlers(FaultHandlers value)
          Sets the value of the faultHandlers property.
 void setMessageExchangeContainer(MessageExchangeContainer container)
          Set the new MessageExchangeContainer child.
 void setName(java.lang.String value)
          Setter for "name" attribute.
 void setPartnerLinkContainer(PartnerLinkContainer value)
          Sets the value of the partnerLinks property.
 void setSuppressJoinFailure(TBoolean value)
          Sets the value of the suppressJoinFailure property.
 void setVariableContainer(VariableContainer value)
          Sets the value of the variables property.
 
Methods inherited from class org.netbeans.modules.bpel.model.impl.ActivityHolderImpl
getActivity, getChildType, 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.ActivityHolder
getActivity, removeActivity, setActivity
 
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, accept, copy, cut, getBpelModel, getCookie, getElementType, 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
 

Constructor Detail

BaseScopeImpl

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

BaseScopeImpl

BaseScopeImpl(BpelBuilderImpl builder,
              java.lang.String tagName)
Method Detail

getExitOnStandardFault

public TBoolean getExitOnStandardFault()
Description copied from interface: BaseScope
Getter for attribute exitOnStandardFault.

Specified by:
getExitOnStandardFault in interface BaseScope
Returns:
"exitOnStandardFault" attribute value.

removeExitOnStandardFault

public void removeExitOnStandardFault()
Description copied from interface: BaseScope
Removes attribute exitOnStandardFault.

Specified by:
removeExitOnStandardFault in interface BaseScope

setExitOnStandardFault

public void setExitOnStandardFault(TBoolean value)
Description copied from interface: BaseScope
Setter for attribute exitOnStandardFault.

Specified by:
setExitOnStandardFault in interface BaseScope
Parameters:
value - TBoolean value for attribute.

getPartnerLinkContainer

public PartnerLinkContainer getPartnerLinkContainer()
Description copied from interface: BaseScope
Gets the value of the partnerLinks property.

Specified by:
getPartnerLinkContainer in interface BaseScope
Returns:
possible object is PartnerLinkContainer

removePartnerLinkContainer

public void removePartnerLinkContainer()
Description copied from interface: BaseScope
Removes partnerLinks.

Specified by:
removePartnerLinkContainer in interface BaseScope

setPartnerLinkContainer

public void setPartnerLinkContainer(PartnerLinkContainer value)
Description copied from interface: BaseScope
Sets the value of the partnerLinks property.

Specified by:
setPartnerLinkContainer in interface BaseScope
Parameters:
value - allowed object is PartnerLinkContainer

getVariableContainer

public VariableContainer getVariableContainer()
Description copied from interface: BaseScope
Gets the value of the variables property.

Specified by:
getVariableContainer in interface BaseScope
Returns:
possible object is VariableContainer

setVariableContainer

public void setVariableContainer(VariableContainer value)
Description copied from interface: BaseScope
Sets the value of the variables property.

Specified by:
setVariableContainer in interface BaseScope
Parameters:
value - allowed object is VariableContainer

getCorrelationSetContainer

public CorrelationSetContainer getCorrelationSetContainer()
Description copied from interface: BaseScope
Gets the value of the correlationSets property.

Specified by:
getCorrelationSetContainer in interface BaseScope
Returns:
possible object is CorrelationSetContainer

setCorrelationSetContainer

public void setCorrelationSetContainer(CorrelationSetContainer value)
Description copied from interface: BaseScope
Sets the value of the correlationSets property.

Specified by:
setCorrelationSetContainer in interface BaseScope
Parameters:
value - allowed object is CorrelationSetContainer

getFaultHandlers

public FaultHandlers getFaultHandlers()
Description copied from interface: BaseScope
Gets the value of the faultHandlers property.

Specified by:
getFaultHandlers in interface BaseScope
Returns:
possible object is FaultHandlers

setFaultHandlers

public void setFaultHandlers(FaultHandlers value)
Description copied from interface: BaseScope
Sets the value of the faultHandlers property.

Specified by:
setFaultHandlers in interface BaseScope
Parameters:
value - allowed object is FaultHandlers

getEventHandlers

public EventHandlers getEventHandlers()
Description copied from interface: BaseScope
Gets the value of the eventHandlers property.

Specified by:
getEventHandlers in interface BaseScope
Returns:
possible object is EventHandlers

setEventHandlers

public void setEventHandlers(EventHandlers value)
Description copied from interface: BaseScope
Sets the value of the eventHandlers property.

Specified by:
setEventHandlers in interface BaseScope
Parameters:
value - allowed object is EventHandlers

removeVariableContainer

public void removeVariableContainer()
Description copied from interface: BaseScope
Removes VariableContainer element from this entity.

Specified by:
removeVariableContainer in interface BaseScope

removeFaultHandlers

public void removeFaultHandlers()
Description copied from interface: BaseScope
Removes FaultHandlers element from this entity.

Specified by:
removeFaultHandlers in interface BaseScope

removeEventHandlers

public void removeEventHandlers()
Description copied from interface: BaseScope
Removes EventHandlers element from this entity.

Specified by:
removeEventHandlers in interface BaseScope

removeCorrelationSetContainer

public void removeCorrelationSetContainer()
Description copied from interface: BaseScope
Removes CorrelationSetContainer element from this entity.

Specified by:
removeCorrelationSetContainer in interface BaseScope

getName

public java.lang.String getName()
Specified by:
getName in interface NamedElement
Specified by:
getName in interface Named<BpelEntity>
Returns:
"name" attribute value.

setName

public void setName(java.lang.String value)
             throws VetoException
Description copied from interface: NamedElement
Setter for "name" attribute.

Specified by:
setName in interface NamedElement
Parameters:
value - New "name" attribute value.
Throws:
VetoException - VetoException could be thrown if str is not acceptable as name value.

getSuppressJoinFailure

public TBoolean getSuppressJoinFailure()
Description copied from interface: JoinFailureSuppressor
Gets the value of the suppressJoinFailure property.

Specified by:
getSuppressJoinFailure in interface JoinFailureSuppressor
Returns:
possible type is TBoolen

setSuppressJoinFailure

public void setSuppressJoinFailure(TBoolean value)
Description copied from interface: JoinFailureSuppressor
Sets the value of the suppressJoinFailure property.

Specified by:
setSuppressJoinFailure in interface JoinFailureSuppressor
Parameters:
value - allowed type is TBoolean

removeSuppressJoinFailure

public void removeSuppressJoinFailure()
Description copied from interface: JoinFailureSuppressor
Removes attribute suppressJoinFailure.

Specified by:
removeSuppressJoinFailure in interface JoinFailureSuppressor

getMessageExchangeContainer

public MessageExchangeContainer getMessageExchangeContainer()
Specified by:
getMessageExchangeContainer in interface BaseScope
Returns:
MessageExchangeContainer child.

removeMessageExchangeContainer

public void removeMessageExchangeContainer()
Description copied from interface: BaseScope
Removes MessageExchangeContainer child.

Specified by:
removeMessageExchangeContainer in interface BaseScope

setMessageExchangeContainer

public void setMessageExchangeContainer(MessageExchangeContainer container)
Description copied from interface: BaseScope
Set the new MessageExchangeContainer child.

Specified by:
setMessageExchangeContainer in interface BaseScope
Parameters:
container - New MessageExchangeContainer child.

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

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 ActivityHolderImpl

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 ExtensibleElementsImpl