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

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
All Implemented Interfaces:
BpelContainer, BpelEntity, ExtensibleElements, Component<BpelEntity>, DocumentComponent<BpelEntity>, DocumentModelAccess.NodeUpdater
Direct Known Subclasses:
ActivityHolderImpl, CompletionConditionImpl, CorrelationContainerImpl, CorrelationImpl, CorrelationSetContainerImpl, EventHandlersImpl, ExtensibleAssignImpl, ExtensionContainerImpl, FaultHandlersImpl, FromHolderImpl, FromPartConainerImpl, LinkContainerImpl, MessageExchangeContainerImpl, NamedElementImpl, NamespaceSpecImpl, OnAlarmEventImpl, OnMessageCommonImpl, PartnerLinkContainerImpl, PatternedCorrelationContainerImpl, SourceContainerImpl, TargetContainerImpl, TargetImpl, ToFromIntersectImpl, ToPartContainerImpl, VariableContainerImpl

public abstract class ExtensibleElementsImpl
extends BpelContainerImpl
implements ExtensibleElements

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
ExtensibleElementsImpl(BpelBuilderImpl builder, java.lang.String tagName)
           
ExtensibleElementsImpl(BpelModelImpl model, org.w3c.dom.Element e)
           
 
Method Summary
 void addDocumentation(Documentation documentation)
          Adds new documentation in the end of children list.
<T extends ExtensionEntity>
void
addExtensionEntity(java.lang.Class<T> clazz, T entity)
          Add extension entity to the end of children list with specified type.
protected  BpelEntity create(org.w3c.dom.Element element)
          This method should be implemented by each container .
 java.lang.String getDocumentation()
           
 Documentation getDocumentation(int i)
          Returns i-th Documentation element.
 Documentation[] getDocumentations()
           
protected  Attribute[] getDomainAttributes()
          This method should be implemented by any real class.
 java.util.List<ExtensionEntity> getExtensionChildren()
           
 void insertDocumentation(Documentation documentation, int i)
          Insert new documentation element to the i position.
 void removeDocumentation()
           
 void removeDocumentation(int i)
          Removes i-th Documentation child.
 void setDocumentation(Documentation documentation, int i)
          Set new documentation element to the i-th position.
 void setDocumentation(java.lang.String value)
           
 void setDocumentations(Documentation[] documentations)
          Set new Documentation array .
 int 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.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

ExtensibleElementsImpl

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

ExtensibleElementsImpl

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

getDocumentation

public java.lang.String getDocumentation()
Specified by:
getDocumentation in interface ExtensibleElements

setDocumentation

public void setDocumentation(java.lang.String value)
                      throws VetoException
Specified by:
setDocumentation in interface ExtensibleElements
Throws:
VetoException

removeDocumentation

public void removeDocumentation()
                         throws VetoException
Specified by:
removeDocumentation in interface ExtensibleElements
Throws:
VetoException

addDocumentation

public void addDocumentation(Documentation documentation)
Description copied from interface: ExtensibleElements
Adds new documentation in the end of children list.

Specified by:
addDocumentation in interface ExtensibleElements
Parameters:
documentation - New documentation element.

getDocumentation

public Documentation getDocumentation(int i)
Description copied from interface: ExtensibleElements
Returns i-th Documentation element.

Specified by:
getDocumentation in interface ExtensibleElements
Parameters:
i - Index in Documentation children array.
Returns:
i-th Documentation child.

getDocumentations

public Documentation[] getDocumentations()
Specified by:
getDocumentations in interface ExtensibleElements
Returns:
Documentation cildren.

insertDocumentation

public void insertDocumentation(Documentation documentation,
                                int i)
Description copied from interface: ExtensibleElements
Insert new documentation element to the i position.

Specified by:
insertDocumentation in interface ExtensibleElements
Parameters:
documentation - New Documentation child
i - Index in children array.

removeDocumentation

public void removeDocumentation(int i)
Description copied from interface: ExtensibleElements
Removes i-th Documentation child.

Specified by:
removeDocumentation in interface ExtensibleElements
Parameters:
i - Index in children array.

setDocumentation

public void setDocumentation(Documentation documentation,
                             int i)
Description copied from interface: ExtensibleElements
Set new documentation element to the i-th position.

Specified by:
setDocumentation in interface ExtensibleElements
Parameters:
documentation - New Documentation child
i - Index in children array.

setDocumentations

public void setDocumentations(Documentation[] documentations)
Description copied from interface: ExtensibleElements
Set new Documentation array .

Specified by:
setDocumentations in interface ExtensibleElements
Parameters:
documentations - New array.

sizeOfDocumentations

public int sizeOfDocumentations()
Specified by:
sizeOfDocumentations in interface ExtensibleElements
Returns:
size of children Documentation elements.

addExtensionEntity

public <T extends ExtensionEntity> void addExtensionEntity(java.lang.Class<T> clazz,
                                                           T entity)
Description copied from interface: ExtensibleElements
Add extension entity to the end of children list with specified type.

Specified by:
addExtensionEntity in interface ExtensibleElements
Type Parameters:
T - Class of entity.
Parameters:
clazz - extension entity class.
entity - New child extension entity.

getExtensionChildren

public java.util.List<ExtensionEntity> getExtensionChildren()
Specified by:
getExtensionChildren in interface ExtensibleElements
Returns:
All extension children.

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 ).

Specified by:
create in class BpelContainerImpl
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.

Specified by:
getDomainAttributes in class BpelEntityImpl