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

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.PickImpl
All Implemented Interfaces:
Activity, BpelContainer, BpelEntity, CreateInstanceActivity, ExtendableActivity, ExtensibleElements, JoinFailureSuppressor, NamedElement, Pick, BpelReferenceable, AfterExtensions, AfterImport, AfterSources, AfterTargets, Component<BpelEntity>, DocumentComponent<BpelEntity>, DocumentModelAccess.NodeUpdater, Named<BpelEntity>, Referenceable

public class PickImpl
extends ActivityImpl
implements Pick

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.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
 
Fields inherited from interface org.netbeans.modules.bpel.model.api.CreateInstanceActivity
CREATE_INSTANCE
 
Constructor Summary
PickImpl(BpelBuilderImpl builder)
           
PickImpl(BpelModelImpl model, org.w3c.dom.Element e)
           
 
Method Summary
 void accept(BpelModelVisitor visitor)
          This method will apply visitor to this OM element.
 void addOnAlarm(OnAlarmPick alarm)
          Add new OnAlarmPick in the end of children list.
 void addOnMessage(OnMessage message)
          Add i-th OnMessage child.
protected  BpelEntity create(org.w3c.dom.Element element)
          This method should be implemented by each container .
 TBoolean getCreateInstance()
          Returns createInstance attribute.
protected  Attribute[] getDomainAttributes()
          This method should be implemented by any real class.
 java.lang.Class<? extends BpelEntity> getElementType()
           
 OnAlarmPick getOnAlarm(int i)
          Getter for i-th OnAlarmPick child.
 OnAlarmPick[] getOnAlarms()
           
 OnMessage getOnMessage(int i)
          Getter for i-th OnMessage child.
 OnMessage[] getOnMessages()
           
 void insertOnAlarm(OnAlarmPick alarm, int i)
          Insert new OnAlarmPick on the i-th place.
 void insertOnMessage(OnMessage message, int i)
          Insert i-th OnMessage child.
 void removeCreateInstance()
          Removes createInstance attribute.
 void removeOnAlarm(int i)
          Removes i-th OnAlarmPick child.
 void removeOnMessage(int i)
          Removes i-th OnMessage child.
 void setCreateInstance(TBoolean value)
          Sets the value of the createInstance property.
 void setOnAlarm(OnAlarmPick alarm, int i)
          Setter for i-th OnAlarmPick child.
 void setOnAlarms(OnAlarmPick[] alarms)
          Set new list of OnAlarmPick children entities.
 void setOnMessage(OnMessage message, int i)
          Setter for i-th OnMessage child.
 void setOnMessages(OnMessage[] messages)
          Set new list of OnMessage children entities.
 int sizeOfOnAlarms()
           
 int sizeOfOnMessages()
           
 
Methods inherited from class org.netbeans.modules.bpel.model.impl.ActivityImpl
getMultiplicity, 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
 

Constructor Detail

PickImpl

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

PickImpl

PickImpl(BpelBuilderImpl builder)
Method Detail

getOnMessages

public OnMessage[] getOnMessages()
Specified by:
getOnMessages in interface Pick
Returns:
Array of OnMessage children entities.

setOnMessages

public void setOnMessages(OnMessage[] messages)
Description copied from interface: Pick
Set new list of OnMessage children entities.

Specified by:
setOnMessages in interface Pick
Parameters:
messages - New array of children.

getOnMessage

public OnMessage getOnMessage(int i)
Description copied from interface: Pick
Getter for i-th OnMessage child.

Specified by:
getOnMessage in interface Pick
Parameters:
i - Index in children array.
Returns:
i-th OnMessage child

setOnMessage

public void setOnMessage(OnMessage message,
                         int i)
Description copied from interface: Pick
Setter for i-th OnMessage child.

Specified by:
setOnMessage in interface Pick
Parameters:
message - OnMessage child entity.
i - index in children array.

insertOnMessage

public void insertOnMessage(OnMessage message,
                            int i)
Description copied from interface: Pick
Insert i-th OnMessage child.

Specified by:
insertOnMessage in interface Pick
Parameters:
message - OnMessage child entity.
i - index in children array.

addOnMessage

public void addOnMessage(OnMessage message)
Description copied from interface: Pick
Add i-th OnMessage child.

Specified by:
addOnMessage in interface Pick
Parameters:
message - OnMessage child entity.

removeOnMessage

public void removeOnMessage(int i)
Description copied from interface: Pick
Removes i-th OnMessage child.

Specified by:
removeOnMessage in interface Pick
Parameters:
i - index in children array.

getOnAlarms

public OnAlarmPick[] getOnAlarms()
Specified by:
getOnAlarms in interface Pick
Returns:
Array of OnAlarmPick children entities.

setOnAlarms

public void setOnAlarms(OnAlarmPick[] alarms)
Description copied from interface: Pick
Set new list of OnAlarmPick children entities.

Specified by:
setOnAlarms in interface Pick
Parameters:
alarms - New array of children.

getOnAlarm

public OnAlarmPick getOnAlarm(int i)
Description copied from interface: Pick
Getter for i-th OnAlarmPick child.

Specified by:
getOnAlarm in interface Pick
Parameters:
i - index in children array.
Returns:
i-th OnMessage child

setOnAlarm

public void setOnAlarm(OnAlarmPick alarm,
                       int i)
Description copied from interface: Pick
Setter for i-th OnAlarmPick child.

Specified by:
setOnAlarm in interface Pick
Parameters:
alarm - New OnAlarmPick child entity.
i - index in children array.

insertOnAlarm

public void insertOnAlarm(OnAlarmPick alarm,
                          int i)
Description copied from interface: Pick
Insert new OnAlarmPick on the i-th place.

Specified by:
insertOnAlarm in interface Pick
Parameters:
alarm - New OnAlarmPick child entity.
i - index in children array.

addOnAlarm

public void addOnAlarm(OnAlarmPick alarm)
Description copied from interface: Pick
Add new OnAlarmPick in the end of children list.

Specified by:
addOnAlarm in interface Pick
Parameters:
alarm - New OnAlarmPick child entity.

removeOnAlarm

public void removeOnAlarm(int i)
Description copied from interface: Pick
Removes i-th OnAlarmPick child.

Specified by:
removeOnAlarm in interface Pick
Parameters:
i - index in children array.

sizeOfOnMessages

public int sizeOfOnMessages()
Specified by:
sizeOfOnMessages in interface Pick
Returns:
size of OnMessages array.

sizeOfOnAlarms

public int sizeOfOnAlarms()
Specified by:
sizeOfOnAlarms in interface Pick
Returns:
size of OnAlarmPicks array.

getElementType

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

getCreateInstance

public TBoolean getCreateInstance()
Description copied from interface: CreateInstanceActivity
Returns createInstance attribute.

Specified by:
getCreateInstance in interface CreateInstanceActivity
Returns:
value of attribute.

setCreateInstance

public void setCreateInstance(TBoolean value)
Description copied from interface: CreateInstanceActivity
Sets the value of the createInstance property.

Specified by:
setCreateInstance in interface CreateInstanceActivity
Parameters:
value - allowed type is { @link TBoolean}

removeCreateInstance

public void removeCreateInstance()
Description copied from interface: CreateInstanceActivity
Removes createInstance attribute.

Specified by:
removeCreateInstance in interface CreateInstanceActivity

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