com.yworks.yfiles.bpmn.view
Class MarkerTypeEnum

java.lang.Object
  extended bycom.yworks.yfiles.bpmn.view.MarkerTypeEnum

public class MarkerTypeEnum
extends Object

Type-safe enumeration for BPMN markers.

 

Field Summary
static MarkerTypeEnum AD_HOC
          Type constant for an ad-hoc marker.
static MarkerTypeEnum CLOSED
          Type constant for a closed sub-process marker.
static MarkerTypeEnum COMPENSATION
          Type constant for a compensation marker.
static MarkerTypeEnum LOOP
          Type constant for a loop marker.
static MarkerTypeEnum OPEN
          Type constant for an open sub-process marker.
static MarkerTypeEnum PARALLEL
          Type constant for a parallel marker.
static MarkerTypeEnum SEQUENTIAL
          Type constant for a sequential marker.
 
Method Summary
static MarkerTypeEnum getByName(String name)
          Retrieves the marker type constant that corresponds to the given marker name.
static boolean isClosedGroupNode(MarkerTypeEnum[] markers)
          Returns whether or not the given markers indicate that their node is a closed group.
static boolean isGroupNode(MarkerTypeEnum[] markers)
          Returns whether or not the given markers indicate that their node is a BPMN group node.
static boolean isOpenGroupNode(MarkerTypeEnum[] markers)
          Returns whether or not the given markers indicate that their node is an open group.
static boolean isStateless(MarkerTypeEnum[] markers)
          Returns whether or not the given markers indicate that their node is a BPMN stateless task.
 String toString()
          Returns a string representation of this marker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AD_HOC

public static final MarkerTypeEnum AD_HOC
Type constant for an ad-hoc marker.


LOOP

public static final MarkerTypeEnum LOOP
Type constant for a loop marker.


PARALLEL

public static final MarkerTypeEnum PARALLEL
Type constant for a parallel marker.


SEQUENTIAL

public static final MarkerTypeEnum SEQUENTIAL
Type constant for a sequential marker.


COMPENSATION

public static final MarkerTypeEnum COMPENSATION
Type constant for a compensation marker.


CLOSED

public static final MarkerTypeEnum CLOSED
Type constant for a closed sub-process marker.


OPEN

public static final MarkerTypeEnum OPEN
Type constant for an open sub-process marker.

Method Detail

toString

public String toString()
Returns a string representation of this marker.

Returns:
a string representation of this marker.

getByName

public static MarkerTypeEnum getByName(String name)
Retrieves the marker type constant that corresponds to the given marker name.

Parameters:
name - the name of the type constant to retrieve. Should be one of
  • BPMN_MARKER_AD_HOC
  • BPMN_MARKER_LOOP
  • BPMN_MARKER_PARALLEL
  • BPMN_MARKER_SEQUENTIAL
  • BPMN_MARKER_COMPENSATION
  • BPMN_MARKER_CLOSED
  • BPMN_MARKER_OPEN
Returns:
the marker type constant for the given name or null if there is no corresponding type constant.

isGroupNode

public static boolean isGroupNode(MarkerTypeEnum[] markers)
Returns whether or not the given markers indicate that their node is a BPMN group node.

Parameters:
markers - the markers to check.
Returns:
true if the given markers indicate that their node is a BPMN group node; false otherwise.

isClosedGroupNode

public static boolean isClosedGroupNode(MarkerTypeEnum[] markers)
Returns whether or not the given markers indicate that their node is a closed group.

Parameters:
markers - the markers to check.
Returns:
true if the given markers indicate that their node is a closed group; false otherwise.

isOpenGroupNode

public static boolean isOpenGroupNode(MarkerTypeEnum[] markers)
Returns whether or not the given markers indicate that their node is an open group.

Parameters:
markers - the markers to check.
Returns:
true if the given markers indicate that their node is a open group; false otherwise.

isStateless

public static boolean isStateless(MarkerTypeEnum[] markers)
Returns whether or not the given markers indicate that their node is a BPMN stateless task.

Parameters:
markers - the activity markers to check.
Returns:
true if the given markers indicate that their node is a BPMN stateless task; false otherwise.


© Copyright 2010-2014,
yWorks GmbH.
All rights reserved.