org.wizard4j.flowchart
Enum EBuiltInFlowchartPresentationMode

java.lang.Object
  extended by java.lang.Enum<EBuiltInFlowchartPresentationMode>
      extended by org.wizard4j.flowchart.EBuiltInFlowchartPresentationMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EBuiltInFlowchartPresentationMode>

public enum EBuiltInFlowchartPresentationMode
extends java.lang.Enum<EBuiltInFlowchartPresentationMode>

This enumeration lists the built-in flowchart presentations. For each presentation, the corresponding mimeType is provided.


Enum Constant Summary
EXTREE_STATE
          This presentation is the application of the flowchart state description to the 'final state' of the flowchart.
EXTREE_SVG_LABEL
          The flowchart expanded tree presented as svg.
EXTREE_SVG_NAME
          The flowchart expanded tree presented as svg.
EXTREE_TEXT
          The flowchart expanded tree presented as text.
EXTREE_XML
          The flowchart expanded tree presented as xml.
GRAPH_LABEL
          The flowchart presented as a graph (not a tree).
GRAPH_NAME
          The flowchart presented as a graph (not a tree).
TREE_SVG_LABEL
          The flowchart tree presented as svg.
TREE_SVG_NAME
          The flowchart tree presented as svg.
TREE_TEXT
          The flowchart tree presented as text.
TREE_XML
          The flowchart tree presented as xml.
 
Method Summary
 java.lang.String mimeType()
           
static EBuiltInFlowchartPresentationMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EBuiltInFlowchartPresentationMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GRAPH_NAME

public static final EBuiltInFlowchartPresentationMode GRAPH_NAME
The flowchart presented as a graph (not a tree). The elements of the graph are labelled with the 'name' of the element.


GRAPH_LABEL

public static final EBuiltInFlowchartPresentationMode GRAPH_LABEL
The flowchart presented as a graph (not a tree). The elements of the graph are labelled with the 'label' of the element.


TREE_TEXT

public static final EBuiltInFlowchartPresentationMode TREE_TEXT
The flowchart tree presented as text.


TREE_XML

public static final EBuiltInFlowchartPresentationMode TREE_XML
The flowchart tree presented as xml. This is not the original xml format, but the one after validation (so it is enhanced with the default values specified in the flowchart schema).


TREE_SVG_NAME

public static final EBuiltInFlowchartPresentationMode TREE_SVG_NAME
The flowchart tree presented as svg. The elements of the tree are labelled with the 'name' of the element.


TREE_SVG_LABEL

public static final EBuiltInFlowchartPresentationMode TREE_SVG_LABEL
The flowchart tree presented as svg. The elements of the tree are labelled with the 'label' of the element.


EXTREE_TEXT

public static final EBuiltInFlowchartPresentationMode EXTREE_TEXT
The flowchart expanded tree presented as text.


EXTREE_XML

public static final EBuiltInFlowchartPresentationMode EXTREE_XML
The flowchart expanded tree presented as xml.


EXTREE_SVG_NAME

public static final EBuiltInFlowchartPresentationMode EXTREE_SVG_NAME
The flowchart expanded tree presented as svg. The elements of the tree are labelled with the 'name' of the element.


EXTREE_SVG_LABEL

public static final EBuiltInFlowchartPresentationMode EXTREE_SVG_LABEL
The flowchart expanded tree presented as svg. The elements of the tree are labelled with the 'label' of the element.


EXTREE_STATE

public static final EBuiltInFlowchartPresentationMode EXTREE_STATE
This presentation is the application of the flowchart state description to the 'final state' of the flowchart.

In general the flowchart state can be described as a whitespace separated list of selected branches and handled inputs (root node is left out) + last userInteractionsIndex. E.g.

 /1=value1 /2=value2 /A/y /A/y/B/s
 /A/y/B/s/5=value5 /A/y/B/t /A/y/B/t/C/a /A/y/B/t/C/a/6=value6
 /A/y/8=value8 /A/y/D/0 /A/y/D/9=value9 /A/y/10=value10 /12
 

Method Detail

values

public static EBuiltInFlowchartPresentationMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (EBuiltInFlowchartPresentationMode c : EBuiltInFlowchartPresentationMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EBuiltInFlowchartPresentationMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

mimeType

public java.lang.String mimeType()
Returns:
the mimetype corresponding to this presentation.