|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.xtools.bpmn2.util.RelationshipUtil
public class RelationshipUtil
Utility class for handling relationships Current approach for creating Relationship in BPMN Modeler uses single source and single target for a Relationship Methods in this class may not work properly when the Relationships contains multiple sources and targets.
Constructor Summary | |
---|---|
RelationshipUtil()
|
Method Summary | |
---|---|
static Relationship |
createRelationship(BaseElement baseElement,
java.lang.String relType,
java.lang.String name,
javax.xml.namespace.QName targetQName,
org.eclipse.emf.ecore.EObject targetObject)
This method will create a relationship between the given baseElement object and external domain element targetObject. |
static Relationship |
createRelationship(BaseElement baseElement,
java.lang.String relType,
java.lang.String name,
javax.xml.namespace.QName targetQName,
org.eclipse.emf.ecore.EObject targetObject,
boolean createImport)
|
static Relationship |
getRelationship(BaseElement baseElement,
java.lang.String relType)
This method will return existing relationship when it finds a relationship associated to this base element that matches the given relationship type |
static Relationship |
getRelationship(BaseElement baseElement,
java.lang.String relType,
java.lang.String targetID)
This method will return existing relationship when it finds a relationship associated to this base element that matches the given relationship type and targetID matches the local part of the target QName |
static java.util.Collection<Relationship> |
getRelationships(BaseElement baseElement)
This method will return existing relationships associated to this base element that matches the given relationship type |
static java.util.Collection<Relationship> |
getRelationships(BaseElement baseElement,
java.lang.String relType)
This method will return existing relationships associated to this base element that matches the given relationship type |
static boolean |
removeRelationship(Relationship relShip)
This method will remove the target from the given relationship It returns true if it succeeds otherwise returns false |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RelationshipUtil()
Method Detail |
---|
public static Relationship getRelationship(BaseElement baseElement, java.lang.String relType)
baseElement
- relType
-
public static Relationship getRelationship(BaseElement baseElement, java.lang.String relType, java.lang.String targetID)
baseElement
- relType
- targetID
-
public static java.util.Collection<Relationship> getRelationships(BaseElement baseElement, java.lang.String relType)
baseElement
- relType
-
public static java.util.Collection<Relationship> getRelationships(BaseElement baseElement)
baseElement
- relType
-
public static boolean removeRelationship(Relationship relShip)
public static Relationship createRelationship(BaseElement baseElement, java.lang.String relType, java.lang.String name, javax.xml.namespace.QName targetQName, org.eclipse.emf.ecore.EObject targetObject)
baseElement
- bpmn element that is the source of this relationshiprelType
- relationship type stringname
- name of the relationship (e.g. name of the external element)targetQName
- A QName object that represents targetObject (external domain
object)targetObject
- External domain object
public static Relationship createRelationship(BaseElement baseElement, java.lang.String relType, java.lang.String name, javax.xml.namespace.QName targetQName, org.eclipse.emf.ecore.EObject targetObject, boolean createImport)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |