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

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

public class ProcessImpl
extends BaseScopeImpl
implements Process

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.Process
ATOMIC, TARGET_NAMESPACE
 
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.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.ExpressionLanguageSpec
EXPRESSION_LANGUAGE
 
Fields inherited from interface org.netbeans.modules.bpel.model.api.QueryLanguageSpec
QUERY_LANGUAGE
 
Constructor Summary
ProcessImpl(BpelBuilderImpl builder)
           
ProcessImpl(BpelModelImpl model, org.w3c.dom.Element element)
           
 
Method Summary
 void accept(BpelModelVisitor visitor)
          This method will apply visitor to this OM element.
 void addImport(Import imp)
          Adds new import imp to this parent.
protected  BpelEntity create(org.w3c.dom.Element element)
          This method should be implemented by each container .
protected  Attribute[] getDomainAttributes()
          This method should be implemented by any real class.
 java.lang.Class<? extends BpelEntity> getElementType()
           
 java.lang.String getExpressionLanguage()
          Gets the value of the expressionLanguage property.
 ExtensionContainer getExtensionContainer()
          Gets the "extensions" entity child .
 Import getImport(int i)
           
 Import[] getImports()
           
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 getQueryLanguage()
          Gets the value of the queryLanguage property.
 java.lang.String getTargetNamespace()
          Gets the value of the targetNamespace property.
 void insertImport(Import imp, int i)
          Inserts new import imp at the i-th place.
 TBoolean isAtomic()
          Indicates if the process is atomic.
 void removeExpressionLanguage()
          Removes expressionLanguage attribute.
 void removeExtensionContainer()
          Removes "extensions" entity as children if it exists.
 void removeImport(int i)
          Removes i-th import from children list.
 void removeQueryLanguage()
          Removes queryLanguage attribute.
 void setAtomic(TBoolean value)
          Set atomic attribute.
 void setExpressionLanguage(java.lang.String value)
          Sets the value of the expressionLanguage property.
 void setExtensionContainer(ExtensionContainer value)
          Sets the "extensions" entity child .
 void setImport(Import imp, int i)
          Replace i-th place impport with new import imp.
 void setImports(Import[] imports)
          Set new list of children of imports.
 void setQueryLanguage(java.lang.String value)
          Sets the value of the queryLanguage property.
 void setTargetNamespace(java.lang.String value)
          Sets the value of the targetNamespace property.
 int sizeOfImports()
           
 
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, 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.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.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, getUID, removeCookie, setCookie
 
Methods inherited from interface org.netbeans.modules.xml.xam.dom.DocumentComponent
findAttributePosition, findChildComponent, findPosition, getAttribute, getPeer, isInDocumentModel, referencesSameNode, setAttribute
 

Constructor Detail

ProcessImpl

ProcessImpl(BpelModelImpl model,
            org.w3c.dom.Element element)

ProcessImpl

ProcessImpl(BpelBuilderImpl builder)
Method Detail

getExpressionLanguage

public java.lang.String getExpressionLanguage()
Description copied from interface: ExpressionLanguageSpec
Gets the value of the expressionLanguage property.

Specified by:
getExpressionLanguage in interface ExpressionLanguageSpec
Returns:
possible object is String

setExpressionLanguage

public void setExpressionLanguage(java.lang.String value)
                           throws VetoException
Description copied from interface: ExpressionLanguageSpec
Sets the value of the expressionLanguage property.

Specified by:
setExpressionLanguage in interface ExpressionLanguageSpec
Parameters:
value - allowed object is String
Throws:
VetoException - VetoException will be thrown if value if not acceptable as expressionLanguage attribute here.

getQueryLanguage

public java.lang.String getQueryLanguage()
Description copied from interface: QueryLanguageSpec
Gets the value of the queryLanguage property.

Specified by:
getQueryLanguage in interface QueryLanguageSpec
Returns:
possible object is String

setQueryLanguage

public void setQueryLanguage(java.lang.String value)
                      throws VetoException
Description copied from interface: QueryLanguageSpec
Sets the value of the queryLanguage property.

Specified by:
setQueryLanguage in interface QueryLanguageSpec
Parameters:
value - allowed object is String
Throws:
VetoException - VetoException will be thrown if value if not acceptable as queryLanguage attribute here.

getTargetNamespace

public java.lang.String getTargetNamespace()
Description copied from interface: Process
Gets the value of the targetNamespace property.

Specified by:
getTargetNamespace in interface Process
Returns:
possible object is String

setTargetNamespace

public void setTargetNamespace(java.lang.String value)
                        throws VetoException
Description copied from interface: Process
Sets the value of the targetNamespace property.

Specified by:
setTargetNamespace in interface Process
Parameters:
value - allowed object is String
Throws:
VetoException - VetoException will be thrown if value if not acceptable as targetNamespace attribute here.

removeQueryLanguage

public void removeQueryLanguage()
Description copied from interface: QueryLanguageSpec
Removes queryLanguage attribute.

Specified by:
removeQueryLanguage in interface QueryLanguageSpec

removeExpressionLanguage

public void removeExpressionLanguage()
Description copied from interface: ExpressionLanguageSpec
Removes expressionLanguage attribute.

Specified by:
removeExpressionLanguage in interface ExpressionLanguageSpec
Specified by:
removeExpressionLanguage in interface Process

getExtensionContainer

public ExtensionContainer getExtensionContainer()
Description copied from interface: Process
Gets the "extensions" entity child .

Specified by:
getExtensionContainer in interface Process
Returns:
possible object is Extensions

setExtensionContainer

public void setExtensionContainer(ExtensionContainer value)
Description copied from interface: Process
Sets the "extensions" entity child .

Specified by:
setExtensionContainer in interface Process
Parameters:
value - allowed object is Extensions

removeExtensionContainer

public void removeExtensionContainer()
Description copied from interface: Process
Removes "extensions" entity as children if it exists.

Specified by:
removeExtensionContainer in interface Process

getImports

public Import[] getImports()
Specified by:
getImports in interface Process
Returns:
Array of "import" children in this process.

addImport

public void addImport(Import imp)
Description copied from interface: Process
Adds new import imp to this parent.

Specified by:
addImport in interface Process
Parameters:
imp - New child for addition.

setImport

public void setImport(Import imp,
                      int i)
Description copied from interface: Process
Replace i-th place impport with new import imp.

Specified by:
setImport in interface Process
Parameters:
imp - New child for setting.
i - Index in children list.

insertImport

public void insertImport(Import imp,
                         int i)
Description copied from interface: Process
Inserts new import imp at the i-th place.

Specified by:
insertImport in interface Process
Parameters:
imp - New child for addition.
i - Index in children list.

removeImport

public void removeImport(int i)
Description copied from interface: Process
Removes i-th import from children list.

Specified by:
removeImport in interface Process
Parameters:
i - Index in children list.

setImports

public void setImports(Import[] imports)
Description copied from interface: Process
Set new list of children of imports.

Specified by:
setImports in interface Process
Parameters:
imports - New array of children.

getImport

public Import getImport(int i)
Specified by:
getImport in interface Process
Parameters:
i - Index in children list.
Returns:
i-th child in imports array.

sizeOfImports

public int sizeOfImports()
Specified by:
sizeOfImports in interface Process
Returns:
size of "imports" children.

getElementType

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

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:

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

isAtomic

public TBoolean isAtomic()
Description copied from interface: Process
Indicates if the process is atomic. It isn't an extension (not standard) attribute of the process. atomic=true - acknowledges Message(MEx) to its partner immediately after executing Receive activity. atomic=false - acknowledges Message(MEx) to its partner when the instance completes.

Specified by:
isAtomic in interface Process
Returns:
the value of the atomic flag

setAtomic

public void setAtomic(TBoolean value)
Description copied from interface: Process
Set atomic attribute. See the description of the isAtomic() method.

Specified by:
setAtomic in interface Process