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

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.ToFromIntersectImpl
                          extended by org.netbeans.modules.bpel.model.impl.FromImpl
All Implemented Interfaces:
BpelContainer, BpelEntity, ContentElement, Expression, ExpressionLanguageSpec, ExtensibleElements, From, PartnerLinkReference, PartReference, PropertyReference, ReferenceCollection, VariableReference, Component<BpelEntity>, DocumentComponent<BpelEntity>, DocumentModelAccess.NodeUpdater

public class FromImpl
extends ToFromIntersectImpl
implements From

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.From
ENDPOINT_REFERENCE, OPAQUE
 
Fields inherited from interface org.netbeans.modules.bpel.model.api.PartnerLinkReference
PARTNER_LINK
 
Fields inherited from interface org.netbeans.modules.bpel.model.api.VariableReference
VARIABLE
 
Fields inherited from interface org.netbeans.modules.bpel.model.api.PartReference
PART
 
Fields inherited from interface org.netbeans.modules.bpel.model.api.ContentElement
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.PropertyReference
PROPERTY
 
Constructor Summary
FromImpl(BpelBuilderImpl builder)
           
FromImpl(BpelModelImpl model, org.w3c.dom.Element e)
           
 
Method Summary
 void accept(BpelModelVisitor visitor)
          This method will apply visitor to this OM element.
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()
           
 Roles getEndpointReference()
          Gets the value of the endpointReference property.
 FromChild getFromChild()
           
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.
 void removeEndpointReference()
          Removes endpointReference attribute.
 void removeFromChild()
          Removes query or literal child element.
 void setEndpointReference(Roles value)
          Sets the value of the endpointReference property.
 void setFromChild(FromChild child)
          Setter for Literal or Query child elements.
 
Methods inherited from class org.netbeans.modules.bpel.model.impl.ToFromIntersectImpl
getContent, getExpressionLanguage, getPart, getPartnerLink, getProperty, getReferences, getVariable, removeExpressionLanguage, removePart, removePartnerLink, removeProperty, removeVariable, setContent, setExpressionLanguage, setPart, setPartnerLink, setProperty, setVariable
 
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.From
removePart, removePartnerLink
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.PartnerLinkReference
getPartnerLink, setPartnerLink
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.references.ReferenceCollection
createReference, createSchemaReference, createWSDLReference, getReferences
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.VariableReference
getVariable, removeVariable, setVariable
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.references.ReferenceCollection
createReference, createSchemaReference, createWSDLReference, getReferences
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.PartReference
getPart, setPart
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.ContentElement
getContent, setContent
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.ExpressionLanguageSpec
getExpressionLanguage, removeExpressionLanguage, setExpressionLanguage
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.PropertyReference
getProperty, removeProperty, setProperty
 
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
 

Constructor Detail

FromImpl

public FromImpl(BpelModelImpl model,
                org.w3c.dom.Element e)

FromImpl

public FromImpl(BpelBuilderImpl builder)
Method Detail

getEndpointReference

public Roles getEndpointReference()
Description copied from interface: From
Gets the value of the endpointReference property.

Specified by:
getEndpointReference in interface From
Returns:
possible object is Roles

setEndpointReference

public void setEndpointReference(Roles value)
Description copied from interface: From
Sets the value of the endpointReference property.

Specified by:
setEndpointReference in interface From
Parameters:
value - allowed object is Roles

removeEndpointReference

public void removeEndpointReference()
Description copied from interface: From
Removes endpointReference attribute.

Specified by:
removeEndpointReference in interface From

removeFromChild

public void removeFromChild()
Description copied from interface: From
Removes query or literal child element.

Specified by:
removeFromChild in interface From

setFromChild

public void setFromChild(FromChild child)
Description copied from interface: From
Setter for Literal or Query child elements.

Specified by:
setFromChild in interface From
Parameters:
child - new child.

getFromChild

public FromChild getFromChild()
Specified by:
getFromChild in interface From
Returns:
child ( Literal or Query ).

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:

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 ToFromIntersectImpl

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 BpelContainerImpl