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

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.EventHandlersImpl
All Implemented Interfaces:
BpelContainer, BpelEntity, EventHandlers, ExtensibleElements, AfterExtensions, AfterImport, AfterSources, AfterTargets, Component<BpelEntity>, DocumentComponent<BpelEntity>, DocumentModelAccess.NodeUpdater

public class EventHandlersImpl
extends ExtensibleElementsImpl
implements EventHandlers, AfterImport, AfterSources

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
 
Constructor Summary
EventHandlersImpl(BpelBuilderImpl builder)
           
EventHandlersImpl(BpelModelImpl model, org.w3c.dom.Element e)
           
 
Method Summary
 void accept(BpelModelVisitor visitor)
          This method will apply visitor to this OM element.
 void addOnAlarm(OnAlarmEvent alarm)
          Add alarm.
 void addOnEvent(OnEvent event)
          Adds OnEvent.
protected  BpelEntity create(org.w3c.dom.Element element)
          This method should be implemented by each container .
 java.lang.Class<? extends BpelEntity> getElementType()
           
 OnAlarmEvent getOnAlarm(int i)
          Returns ith onAlarmEvent.
 OnAlarmEvent[] getOnAlarms()
          Returns array of onAlarmEvent children.
 OnEvent getOnEvent(int i)
          Returns ith OnEvent child .
 OnEvent[] getOnEvents()
          Returns aray of onEvent children.
 void insertOnAlarm(OnAlarmEvent alarm, int i)
          Insert alarm to the ith place.
 void insertOnEvent(OnEvent event, int i)
          Insert event on the ith place.
 void removeOnAlarm(int i)
          Removes ith onAlarmEvent.
 void removeOnEvent(int i)
          Removes ith onMessage object.
 void setOnAlarm(OnAlarmEvent alarm, int i)
          Set ith onAlarmEvent to alarm object.
 void setOnAlarms(OnAlarmEvent[] alarm)
          Set new array of onAlarmEvent children.
 void setOnEvent(OnEvent[] events)
          Set new array of OnEvent children.
 void setOnEvent(OnEvent event, int i)
          Set event to the ith place.
 int sizeOfOnAlarms()
           
 int sizeOfOnEvents()
           
 
Methods inherited from class org.netbeans.modules.bpel.model.impl.ExtensibleElementsImpl
addDocumentation, addExtensionEntity, getDocumentation, getDocumentation, getDocumentations, getDomainAttributes, 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, getMultiplicity, 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.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
 

Constructor Detail

EventHandlersImpl

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

EventHandlersImpl

EventHandlersImpl(BpelBuilderImpl builder)
Method Detail

getOnAlarm

public OnAlarmEvent getOnAlarm(int i)
Description copied from interface: EventHandlers
Returns ith onAlarmEvent.

Specified by:
getOnAlarm in interface EventHandlers
Parameters:
i - index in array.
Returns:
ith onAlarmEvent.

removeOnAlarm

public void removeOnAlarm(int i)
Description copied from interface: EventHandlers
Removes ith onAlarmEvent.

Specified by:
removeOnAlarm in interface EventHandlers
Parameters:
i - index for remove.

setOnAlarms

public void setOnAlarms(OnAlarmEvent[] alarm)
Description copied from interface: EventHandlers
Set new array of onAlarmEvent children.

Specified by:
setOnAlarms in interface EventHandlers
Parameters:
alarm - array for set.

setOnAlarm

public void setOnAlarm(OnAlarmEvent alarm,
                       int i)
Description copied from interface: EventHandlers
Set ith onAlarmEvent to alarm object.

Specified by:
setOnAlarm in interface EventHandlers
Parameters:
alarm - object for set.
i - index.

addOnAlarm

public void addOnAlarm(OnAlarmEvent alarm)
Description copied from interface: EventHandlers
Add alarm.

Specified by:
addOnAlarm in interface EventHandlers
Parameters:
alarm - object for add.

insertOnAlarm

public void insertOnAlarm(OnAlarmEvent alarm,
                          int i)
Description copied from interface: EventHandlers
Insert alarm to the ith place.

Specified by:
insertOnAlarm in interface EventHandlers
Parameters:
alarm - object for set.
i - index

getOnEvents

public OnEvent[] getOnEvents()
Description copied from interface: EventHandlers
Returns aray of onEvent children.

Specified by:
getOnEvents in interface EventHandlers
Returns:
array of onMessage.

getOnEvent

public OnEvent getOnEvent(int i)
Description copied from interface: EventHandlers
Returns ith OnEvent child .

Specified by:
getOnEvent in interface EventHandlers
Parameters:
i - index
Returns:
ith OnEvent object.

removeOnEvent

public void removeOnEvent(int i)
Description copied from interface: EventHandlers
Removes ith onMessage object.

Specified by:
removeOnEvent in interface EventHandlers
Parameters:
i - index

setOnEvent

public void setOnEvent(OnEvent[] events)
Description copied from interface: EventHandlers
Set new array of OnEvent children.

Specified by:
setOnEvent in interface EventHandlers
Parameters:
events - new array for set.

setOnEvent

public void setOnEvent(OnEvent event,
                       int i)
Description copied from interface: EventHandlers
Set event to the ith place.

Specified by:
setOnEvent in interface EventHandlers
Parameters:
event - object for set.
i - index

addOnEvent

public void addOnEvent(OnEvent event)
Description copied from interface: EventHandlers
Adds OnEvent.

Specified by:
addOnEvent in interface EventHandlers
Parameters:
event - object for add.

insertOnEvent

public void insertOnEvent(OnEvent event,
                          int i)
Description copied from interface: EventHandlers
Insert event on the ith place.

Specified by:
insertOnEvent in interface EventHandlers
Parameters:
event - object for insert.
i - index

getOnAlarms

public OnAlarmEvent[] getOnAlarms()
Description copied from interface: EventHandlers
Returns array of onAlarmEvent children.

Specified by:
getOnAlarms in interface EventHandlers
Returns:
array of onAlarmEvent children.

sizeOfOnEvents

public int sizeOfOnEvents()
Specified by:
sizeOfOnEvents in interface EventHandlers
Returns:
size of onMessage children.

sizeOfOnAlarms

public int sizeOfOnAlarms()
Specified by:
sizeOfOnAlarms in interface EventHandlers
Returns:
size of onAlarm 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 ExtensibleElementsImpl
Returns: