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

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.FromPartImpl
All Implemented Interfaces:
AbstractVariableDeclaration, BpelEntity, FromPart, PartReference, BpelReferenceable, ReferenceCollection, VariableDeclaration, AfterSources, AfterTargets, Component<BpelEntity>, DocumentComponent<BpelEntity>, DocumentModelAccess.NodeUpdater, Referenceable

public class FromPartImpl
extends BpelEntityImpl
implements FromPart, AfterSources

Author:
ads

Nested Class Summary
 
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.FromPart
TO_VARIABLE
 
Fields inherited from interface org.netbeans.modules.bpel.model.api.PartReference
PART
 
Constructor Summary
FromPartImpl(BpelBuilderImpl builder)
           
FromPartImpl(BpelModelImpl model, org.w3c.dom.Element e)
           
 
Method Summary
 void accept(BpelModelVisitor visitor)
          This method will apply visitor to this OM element.
protected  Attribute[] getDomainAttributes()
          This method should be implemented by any real class.
 SchemaReference<org.netbeans.modules.xml.schema.model.GlobalElement> getElement()
          Gets the element type if variable declaration have Schema element type.
 java.lang.Class<? extends BpelEntity> getElementType()
           
 WSDLReference<Message> getMessageType()
          Gets the message type if varaible declaration have WSDL type.
 WSDLReference<Part> getPart()
           
 Reference[] getReferences()
          Returns array of references.
 BpelReference<VariableDeclaration> getToVariable()
           
 SchemaReference<org.netbeans.modules.xml.schema.model.GlobalType> getType()
          Gets the type if variable declaration have Schema type.
 java.lang.String getVariableName()
          Getter for variable name.
 void setPart(WSDLReference<Part> part)
          Set new part reference.
 void setToVariable(BpelReference<VariableDeclaration> variable)
          Set new reference to variable ( "toVariable" attribute value ).
 
Methods inherited from class org.netbeans.modules.bpel.model.impl.BpelEntityImpl
accept, acceptChildren, canPaste, 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, populateChildren, 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, getChild, getChildren, 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.references.ReferenceCollection
createReference, createSchemaReference, createWSDLReference
 

Constructor Detail

FromPartImpl

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

FromPartImpl

FromPartImpl(BpelBuilderImpl builder)
Method Detail

getToVariable

public BpelReference<VariableDeclaration> getToVariable()
Specified by:
getToVariable in interface FromPart
Returns:
Reference to variable ( "toVariable" attribute value ).

setToVariable

public void setToVariable(BpelReference<VariableDeclaration> variable)
Description copied from interface: FromPart
Set new reference to variable ( "toVariable" attribute value ).

Specified by:
setToVariable in interface FromPart
Parameters:
variable - New reference to variable.

getElementType

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

getPart

public WSDLReference<Part> getPart()
Specified by:
getPart in interface PartReference
Returns:
reference to Part object in WSDL model.

setPart

public void setPart(WSDLReference<Part> part)
Description copied from interface: PartReference
Set new part reference.

Specified by:
setPart in interface PartReference
Parameters:
part - New reference to Part object in WSDL model.

getMessageType

public WSDLReference<Message> getMessageType()
Description copied from interface: AbstractVariableDeclaration
Gets the message type if varaible declaration have WSDL type. Method returns reference that can point to read=-only Message.

Specified by:
getMessageType in interface AbstractVariableDeclaration
Returns:
possible object is reference to WSDL model.

getElement

public SchemaReference<org.netbeans.modules.xml.schema.model.GlobalElement> getElement()
Description copied from interface: AbstractVariableDeclaration
Gets the element type if variable declaration have Schema element type. Method returns reference that can point to read=-only Element.

Specified by:
getElement in interface AbstractVariableDeclaration
Returns:
possible object is reference to GlobalElement in schema model.

getType

public SchemaReference<org.netbeans.modules.xml.schema.model.GlobalType> getType()
Description copied from interface: AbstractVariableDeclaration
Gets the type if variable declaration have Schema type. Method returns reference that can point to read=-only GlobalType.

Specified by:
getType in interface AbstractVariableDeclaration
Returns:
possible object is reference to GlobalType.

getVariableName

public java.lang.String getVariableName()
Description copied from interface: AbstractVariableDeclaration
Getter for variable name.

Specified by:
getVariableName in interface AbstractVariableDeclaration
Returns:
Variable name.

getReferences

public Reference[] getReferences()
Description copied from interface: ReferenceCollection
Returns array of references.

Specified by:
getReferences in interface ReferenceCollection
Returns:
array of references.

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.

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