org.netbeans.modules.bpel.model.api.references
Interface ReferenceCollection

All Known Subinterfaces:
BaseCorrelation, Catch, CompensateScope, Correlation, CorrelationSet, From, FromPart, Invoke, LinkReference, OnEvent, OnMessage, OnMessageCommon, OperationReference, PartnerLink, PartnerLinkReference, PatternedCorrelation, PortTypeReference, Receive, Reply, Source, Target, Throw, To, ToPart, Validate, Variable, VariableReference
All Known Implementing Classes:
CatchImpl, CompensateScopeImpl, CorrelationImpl, CorrelationSetImpl, FromImpl, FromPartImpl, InvokeImpl, InvokeReceiveReplyCommonImpl, OnEventImpl, OnMessageCommonImpl, OnMessageImpl, PartnerLinkImpl, PatternedCorrelationImpl, ReceiveImpl, ReplyImpl, ReplyReceiveIntersectImpl, SourceImpl, TargetImpl, ThrowImpl, ToFromIntersectImpl, ToImpl, ToPartImpl, ValidateImpl, VariableImpl

public interface ReferenceCollection

This interface should be implemented by entities that refers to some other entities. They are contain reference to other OM element and when this element is changed in some way they should be changed. F.e. Receive contains reference to Variable. When someone change variable name Receive should change attribute to new name.

Author:
ads

Method Summary
<T extends BpelReferenceable>
BpelReference<T>
createReference(T target, java.lang.Class<T> type)
          Creates reference inside BPEL OM to specified referenceable element.
<T extends org.netbeans.modules.xml.schema.model.ReferenceableSchemaComponent>
SchemaReference<T>
createSchemaReference(T target, java.lang.Class<T> type)
          Creates reference to specified Schema OM referenceable element.
<T extends ReferenceableWSDLComponent>
WSDLReference<T>
createWSDLReference(T target, java.lang.Class<T> type)
          Creates reference to specified WSDL OM referenceable element.
 Reference[] getReferences()
          Returns array of references.
 

Method Detail

getReferences

Reference[] getReferences()
Returns array of references.

Returns:
array of references.

createReference

<T extends BpelReferenceable> BpelReference<T> createReference(T target,
                                                               java.lang.Class<T> type)
Creates reference inside BPEL OM to specified referenceable element.

Type Parameters:
T - Referencable OM class.
Parameters:
target - Object for which needs to create reference.
type - Type of referenceable object.
Returns:
Reference to target object.

createSchemaReference

<T extends org.netbeans.modules.xml.schema.model.ReferenceableSchemaComponent> SchemaReference<T> createSchemaReference(T target,
                                                                                                                        java.lang.Class<T> type)
Creates reference to specified Schema OM referenceable element.

Type Parameters:
T - Referencable OM class.
Parameters:
target - Object for which needs to create reference.
type - Type of referenceable object.
Returns:
Reference to target object.

createWSDLReference

<T extends ReferenceableWSDLComponent> WSDLReference<T> createWSDLReference(T target,
                                                                            java.lang.Class<T> type)
Creates reference to specified WSDL OM referenceable element.

Type Parameters:
T - Referencable OM class.
Parameters:
target - Object for which needs to create reference.
type - Type of referenceable object.
Returns:
Reference to target object.