com.ebmwebsourcing.easybpmn.bpmn20.api
Class DefinitionsHelper

java.lang.Object
  extended by com.ebmwebsourcing.easybpmn.bpmn20.api.DefinitionsHelper

public class DefinitionsHelper
extends java.lang.Object


Constructor Summary
DefinitionsHelper()
           
 
Method Summary
static
<T extends com.ebmwebsourcing.easybox.api.XmlObject>
T
findBPMNObject(Definitions defs, javax.xml.namespace.QName ref, java.lang.Class<T> wantedClass)
          Searches for a BPMN element in the given Definitions and its BPMN 2.0 imports
static
<T extends com.ebmwebsourcing.easybox.api.XmlObject>
T
findObjectInDefinitions(Definitions defs, java.lang.String id, java.lang.Class<T> wantedClass)
           
static WithFlowElements getParentContainer(TFlowElement fe)
           
static Definitions getParentDefinitions(TBaseElement be)
           
static Process getProcess(FlowElement fe, Definitions defs)
           
static SequenceFlow getSequenceFlow(Process proc, java.lang.String sourceId, java.lang.String targetId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefinitionsHelper

public DefinitionsHelper()
Method Detail

findBPMNObject

public static <T extends com.ebmwebsourcing.easybox.api.XmlObject> T findBPMNObject(Definitions defs,
                                                                                    javax.xml.namespace.QName ref,
                                                                                    java.lang.Class<T> wantedClass)
                                                                         throws BPMNException
Searches for a BPMN element in the given Definitions and its BPMN 2.0 imports

Type Parameters:
T -
Parameters:
defs -
ref - Id or {import namespace}Id
wantedClass -
Returns:
Throws:
BPMNException

findObjectInDefinitions

public static <T extends com.ebmwebsourcing.easybox.api.XmlObject> T findObjectInDefinitions(Definitions defs,
                                                                                             java.lang.String id,
                                                                                             java.lang.Class<T> wantedClass)
                                                                                  throws BPMNException
Throws:
BPMNException

getProcess

public static Process getProcess(FlowElement fe,
                                 Definitions defs)

getSequenceFlow

public static SequenceFlow getSequenceFlow(Process proc,
                                           java.lang.String sourceId,
                                           java.lang.String targetId)

getParentDefinitions

public static Definitions getParentDefinitions(TBaseElement be)

getParentContainer

public static WithFlowElements getParentContainer(TFlowElement fe)


Copyright © 2011 Petals Link. All Rights Reserved.