public class WorkflowEditorTransitionConditionUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
OPERATOR_AND |
static String |
OPERATOR_OR |
static String |
SEPARATOR
Separator for the 'count' variables that is used to represent a position in a hierarchy.
|
| Constructor and Description |
|---|
WorkflowEditorTransitionConditionUtil() |
| Modifier and Type | Method and Description |
|---|---|
String |
addCondition(com.opensymphony.workflow.loader.ActionDescriptor transition,
String count,
com.opensymphony.workflow.loader.ConditionDescriptor condition) |
String |
addNestedCondition(com.opensymphony.workflow.loader.ActionDescriptor transition,
String count,
com.opensymphony.workflow.loader.ConditionDescriptor condition) |
void |
changeLogicOperator(com.opensymphony.workflow.loader.ActionDescriptor transition,
String count) |
void |
deleteCondition(com.opensymphony.workflow.loader.ActionDescriptor transition,
String count) |
com.opensymphony.workflow.loader.ConditionsDescriptor |
getConditionsDescriptor(com.opensymphony.workflow.loader.RestrictionDescriptor restrictionDescriptor,
String count)
Same as
getParentConditionsDescriptor(com.opensymphony.workflow.loader.RestrictionDescriptor, String) only all the
indexes specified by the passed in count are used for lookups. |
void |
getGrandParentConditionsDescriptor(com.opensymphony.workflow.loader.RestrictionDescriptor restriction,
String count) |
int |
getLastCount(String count) |
com.opensymphony.workflow.loader.ConditionsDescriptor |
getParentConditionsDescriptor(com.opensymphony.workflow.loader.RestrictionDescriptor restrictionDescriptor,
String count)
Returns a
ConditionsDescriptor in the given RestrictionDescriptor in the 'place' specified by the
count. |
String |
increaseCountLevel(String c) |
boolean |
isEmpty(com.opensymphony.workflow.loader.ConditionsDescriptor conditionsDescriptor)
Checks if restrictionDescriptor has no
ConditionsDescriptors left. |
boolean |
isEmpty(com.opensymphony.workflow.loader.RestrictionDescriptor restrictionDescriptor)
Checks if restrictionDescriptor has no
ConditionDescriptors or
ConditionsDescriptors left. |
public static final String SEPARATOR
public static final String OPERATOR_AND
public static final String OPERATOR_OR
public WorkflowEditorTransitionConditionUtil()
public com.opensymphony.workflow.loader.ConditionsDescriptor getParentConditionsDescriptor(com.opensymphony.workflow.loader.RestrictionDescriptor restrictionDescriptor,
String count)
ConditionsDescriptor in the given RestrictionDescriptor in the 'place' specified by the
count. The count is a SEPARATOR separated integers that represents the place of the ConditionsDescriptor
in the hierarchy of nested ConditionsDescriptors.
This method assumes that the last integer in count will be used to find a ConditionDescriptor in the
returned ConditionsDescriptor, so is not used while looking through the hierarchy.
For example, if this method is called with count "1.2.4", this method will take the root ConditionsDescriptor of the passed RestrictionDescriptor, look up a nested ConditionsDescriptor at index 0. Them another lookup will be done for another nested ConditionsDescriptor at index 1. This ConditionsDescriptor will be returned, as "4" is ignored.
IllegalArgumentException - if the object at any index specified by the count is not an instance of ConditionsDescriptorpublic com.opensymphony.workflow.loader.ConditionsDescriptor getConditionsDescriptor(com.opensymphony.workflow.loader.RestrictionDescriptor restrictionDescriptor,
String count)
getParentConditionsDescriptor(com.opensymphony.workflow.loader.RestrictionDescriptor, String) only all the
indexes specified by the passed in count are used for lookups. That is, the last integer in count is NOT ignored.public void getGrandParentConditionsDescriptor(com.opensymphony.workflow.loader.RestrictionDescriptor restriction,
String count)
public boolean isEmpty(com.opensymphony.workflow.loader.RestrictionDescriptor restrictionDescriptor)
ConditionDescriptors or
ConditionsDescriptors left.public boolean isEmpty(com.opensymphony.workflow.loader.ConditionsDescriptor conditionsDescriptor)
ConditionsDescriptors left.public int getLastCount(String count)
public String addCondition(com.opensymphony.workflow.loader.ActionDescriptor transition, String count, com.opensymphony.workflow.loader.ConditionDescriptor condition)
public String addNestedCondition(com.opensymphony.workflow.loader.ActionDescriptor transition, String count, com.opensymphony.workflow.loader.ConditionDescriptor condition)
public void deleteCondition(com.opensymphony.workflow.loader.ActionDescriptor transition,
String count)
public void changeLogicOperator(com.opensymphony.workflow.loader.ActionDescriptor transition,
String count)
Copyright © 2002-2023 Atlassian. All Rights Reserved.