public class PlanItemFactory extends Object
A factory class that is able to construct concrete PlanItem
instances given
a generic PlannableItem
.
Constructor and Description |
---|
PlanItemFactory() |
Modifier and Type | Method and Description |
---|---|
static PlanItem |
createPlanItem(PlannableItem plannableItem,
Stage parent,
Integer instanceId)
Construct and return a concrete
PlanItem instance. |
static Class<? extends PlanItem> |
deduceProcessTaskType(TProcessTask tProcessTask) |
static Class<? extends PlanItem> |
getClassForModelElement(boolean casePlanModel,
TPlanItemDefinition modelElement)
Returns a plan item’s class given the plan item definition element from the CMMN model.
|
static Class<? extends PlanItem> |
getClassForModelElement(TCase caze,
TPlanItemDefinition modelElement)
Returns a plan item’s class given the plan item definition element from the CMMN model.
|
static Class<? extends PlanItem> |
getClassForTypeName(String simpleName)
Returns a plan item’s class given the plan item’s type name (simple class name).
|
static HashMap<String,String> |
toLowercaseKeys(Map<String,String> map)
Convert the keys of a map to all lower-case.
|
public static Class<? extends PlanItem> getClassForTypeName(String simpleName) throws IllegalArgumentException
Returns a plan item’s class given the plan item’s type name (simple class name).
IllegalArgumentException
- if the passed plan item type is not known.public static Class<? extends PlanItem> getClassForModelElement(boolean casePlanModel, TPlanItemDefinition modelElement) throws IllegalArgumentException
Returns a plan item’s class given the plan item definition element from the CMMN model.
IllegalArgumentException
- if the passed model element is not known.public static Class<? extends PlanItem> getClassForModelElement(TCase caze, TPlanItemDefinition modelElement) throws IllegalArgumentException
Returns a plan item’s class given the plan item definition element from the CMMN model.
IllegalArgumentException
- if the passed model element is not known.public static PlanItem createPlanItem(PlannableItem plannableItem, Stage parent, Integer instanceId)
Construct and return a concrete PlanItem
instance.
plannableItem
- the plannable item determining the exact type of object to create.parent
- the stage that will be set as the parent of the object created.instanceId
- instance idPlanItem
.public static HashMap<String,String> toLowercaseKeys(Map<String,String> map)
Convert the keys of a map to all lower-case.
map
- the input map.public static Class<? extends PlanItem> deduceProcessTaskType(TProcessTask tProcessTask)
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.