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

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.FromHolderImpl
                          extended by org.netbeans.modules.bpel.model.impl.VariableImpl
All Implemented Interfaces:
AbstractVariableDeclaration, BpelContainer, BpelEntity, ElementReference, ExtensibleElements, FromHolder, MessageTypeReference, NamedElement, BpelReferenceable, ReferenceCollection, Variable, VariableDeclaration, Component<BpelEntity>, DocumentComponent<BpelEntity>, DocumentModelAccess.NodeUpdater, Named<BpelEntity>, Referenceable

public class VariableImpl
extends FromHolderImpl
implements Variable

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.Variable
TYPE
 
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.MessageTypeReference
MESSAGE_TYPE
 
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.ElementReference
ELEMENT
 
Constructor Summary
VariableImpl(BpelBuilderImpl builder)
           
VariableImpl(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.
 java.lang.String getName()
           
 Reference[] getReferences()
          Returns array of references.
 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 removeElement()
          Removes element attribute.
 void removeFrom()
          Removes From child object.
 void removeMessageType()
          Removes messageType attribute.
 void removeType()
          Removes type attribute.
 void setElement(SchemaReference<org.netbeans.modules.xml.schema.model.GlobalElement> value)
          Sets the value of the element property.
 void setMessageType(WSDLReference<Message> value)
          Sets the value of the messageType property.
 void setName(java.lang.String value)
          Setter for "name" attribute.
 void setType(SchemaReference<org.netbeans.modules.xml.schema.model.GlobalType> value)
          Sets the value of the type property.
 
Methods inherited from class org.netbeans.modules.bpel.model.impl.FromHolderImpl
create, getFrom, getMultiplicity, setFrom
 
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.xml.xam.Component
canPaste, copy, getChildren, getChildren, getChildren, getModel
 
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.FromHolder
getFrom, setFrom
 
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.references.ReferenceCollection
createReference, createSchemaReference, createWSDLReference
 

Constructor Detail

VariableImpl

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

VariableImpl

VariableImpl(BpelBuilderImpl builder)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface NamedElement
Specified by:
getName in interface Named<BpelEntity>
Returns:
"name" attribute value.

setName

public void setName(java.lang.String value)
             throws VetoException
Description copied from interface: NamedElement
Setter for "name" attribute.

Specified by:
setName in interface NamedElement
Parameters:
value - New "name" attribute value.
Throws:
VetoException - VetoException could be thrown if str is not acceptable as name value.

getElementType

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

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
Specified by:
getElement in interface ElementReference
Returns:
possible object is reference to GlobalElement in schema model.

setElement

public void setElement(SchemaReference<org.netbeans.modules.xml.schema.model.GlobalElement> value)
Description copied from interface: ElementReference
Sets the value of the element property.

Specified by:
setElement in interface ElementReference
Parameters:
value - allowed object is reference to GlobalElement in schema model.

removeElement

public void removeElement()
Description copied from interface: ElementReference
Removes element attribute.

Specified by:
removeElement in interface ElementReference

removeType

public void removeType()
Description copied from interface: Variable
Removes type attribute.

Specified by:
removeType in interface Variable

removeMessageType

public void removeMessageType()
Description copied from interface: MessageTypeReference
Removes messageType attribute.

Specified by:
removeMessageType in interface MessageTypeReference

removeFrom

public void removeFrom()
Description copied from interface: Variable
Removes From child object.

Specified by:
removeFrom in interface Variable

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
Specified by:
getMessageType in interface MessageTypeReference
Returns:
possible object is reference to WSDL model.

setMessageType

public void setMessageType(WSDLReference<Message> value)
Description copied from interface: MessageTypeReference
Sets the value of the messageType property.

Specified by:
setMessageType in interface MessageTypeReference
Parameters:
value - allowed object is reference to WSDL 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.

setType

public void setType(SchemaReference<org.netbeans.modules.xml.schema.model.GlobalType> value)
Description copied from interface: Variable
Sets the value of the type property.

Specified by:
setType in interface Variable
Parameters:
value - allowed object is reference to GlobalSimpleType.

getReferences

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

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

getVariableName

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

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

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.

Overrides:
getDomainAttributes in class ExtensibleElementsImpl