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

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.ActivityHolderImpl
                          extended by org.netbeans.modules.bpel.model.impl.CatchImpl
All Implemented Interfaces:
AbstractVariableDeclaration, ActivityHolder, BpelContainer, BpelEntity, Catch, CompensatableActivityHolder, ExtensibleElements, FaultHandler, FaultNameReference, BpelReferenceable, ReferenceCollection, VariableDeclaration, VariableDeclarationScope, AfterSources, AfterTargets, Component<BpelEntity>, DocumentComponent<BpelEntity>, DocumentModelAccess.NodeUpdater, Referenceable

public class CatchImpl
extends ActivityHolderImpl
implements Catch, 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.Catch
FAULT_ELEMENT, FAULT_MESSAGE_TYPE, FAULT_VARIABLE
 
Fields inherited from interface org.netbeans.modules.bpel.model.api.FaultNameReference
FAULT_NAME
 
Constructor Summary
CatchImpl(BpelBuilderImpl builder)
           
CatchImpl(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()
           
 SchemaReference<org.netbeans.modules.xml.schema.model.GlobalElement> getFaultElement()
          Getter for "faultElement" attribute value.
 WSDLReference<Message> getFaultMessageType()
          Getter for "faultMessageType" attribute value.
 javax.xml.namespace.QName getFaultName()
          Getter for faultName attribute.
 java.lang.String getFaultVariable()
          Gets the value of the faultVariable property.
 WSDLReference<Message> getMessageType()
          Gets the message type if varaible declaration have WSDL type.
 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 removeFaultElement()
          Removes "faultElement" attribute.
 void removeFaultMessageType()
          Removes "faultMessageType" attribute.
 void removeFaultName()
          Removes fault name atribute.
 void removeFaultVariable()
          Removes faultVariable attribure.
 void setFaultElement(SchemaReference<org.netbeans.modules.xml.schema.model.GlobalElement> element)
          Setter for "faultElement" attribute value.
 void setFaultMessageType(WSDLReference<Message> message)
          Setter for "faultMessageType" attribute value .
 void setFaultName(javax.xml.namespace.QName value)
          Sets the value of the faultName property.
 void setFaultVariable(java.lang.String value)
          Sets the value of the faultVariable property.
 
Methods inherited from class org.netbeans.modules.bpel.model.impl.ActivityHolderImpl
create, getActivity, getChildType, getMultiplicity, removeActivity, setActivity
 
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, 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.ActivityHolder
getActivity, removeActivity, setActivity
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.references.ReferenceCollection
createReference, createSchemaReference, createWSDLReference
 

Constructor Detail

CatchImpl

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

CatchImpl

CatchImpl(BpelBuilderImpl builder)
Method Detail

getFaultMessageType

public WSDLReference<Message> getFaultMessageType()
Description copied from interface: Catch
Getter for "faultMessageType" attribute value.

Specified by:
getFaultMessageType in interface Catch
Returns:
reference to Message object in WSDL model.

setFaultMessageType

public void setFaultMessageType(WSDLReference<Message> message)
Description copied from interface: Catch
Setter for "faultMessageType" attribute value .

Specified by:
setFaultMessageType in interface Catch
Parameters:
message - reference to Message object in WSDL model.

removeFaultMessageType

public void removeFaultMessageType()
Description copied from interface: Catch
Removes "faultMessageType" attribute.

Specified by:
removeFaultMessageType in interface Catch

getFaultElement

public SchemaReference<org.netbeans.modules.xml.schema.model.GlobalElement> getFaultElement()
Description copied from interface: Catch
Getter for "faultElement" attribute value. // *

Specified by:
getFaultElement in interface Catch
Returns:
reference to GlobalElement object in schema model.

setFaultElement

public void setFaultElement(SchemaReference<org.netbeans.modules.xml.schema.model.GlobalElement> element)
Description copied from interface: Catch
Setter for "faultElement" attribute value.

Specified by:
setFaultElement in interface Catch
Parameters:
element - reference to GlobalElement object in schema model.

removeFaultElement

public void removeFaultElement()
Description copied from interface: Catch
Removes "faultElement" attribute.

Specified by:
removeFaultElement in interface Catch

setFaultVariable

public void setFaultVariable(java.lang.String value)
                      throws VetoException
Description copied from interface: Catch
Sets the value of the faultVariable property.

Specified by:
setFaultVariable in interface Catch
Parameters:
value - allowed object is String.
Throws:
VetoException - VetoException will be thrown if value is not accaptable here.

getElementType

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

removeFaultName

public void removeFaultName()
Description copied from interface: Catch
Removes fault name atribute.

Specified by:
removeFaultName in interface Catch

getFaultVariable

public java.lang.String getFaultVariable()
Description copied from interface: Catch
Gets the value of the faultVariable property. The faultVariable attribute defines local variable for catch.

Specified by:
getFaultVariable in interface Catch
Returns:
possible object is String.

removeFaultVariable

public void removeFaultVariable()
Description copied from interface: Catch
Removes faultVariable attribure.

Specified by:
removeFaultVariable in interface Catch

getFaultName

public javax.xml.namespace.QName getFaultName()
Description copied from interface: FaultNameReference
Getter for faultName attribute.

Specified by:
getFaultName in interface FaultNameReference
Returns:
possible object is QName

setFaultName

public void setFaultName(javax.xml.namespace.QName value)
                  throws VetoException
Description copied from interface: FaultNameReference
Sets the value of the faultName property.

Specified by:
setFaultName in interface FaultNameReference
Parameters:
value - allowed object is QName
Throws:
VetoException - VetoException Will be thrown is value have either bad namespace uri ( that is not represent URI by RFC ) or bad local part ( that not represent NCName ). This verification is needed because Java QName doesn't perform it.

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.

Overrides:
getDomainAttributes in class ExtensibleElementsImpl