org.wizard4j.result.presentation
Enum EBuiltInResultPresentationMode

java.lang.Object
  extended by java.lang.Enum<EBuiltInResultPresentationMode>
      extended by org.wizard4j.result.presentation.EBuiltInResultPresentationMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EBuiltInResultPresentationMode>

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

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


Enum Constant Summary
SVG
          The result tree presented as svg.
TEXT
          The result tree presented as text.
TEXT_FULLNAME
          The result tree presented as text.
XML
          The result tree presented as xml.
XML_DETAILED
          The result tree presented as xml.
 
Method Summary
 java.lang.String mimeType()
           
static EBuiltInResultPresentationMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EBuiltInResultPresentationMode[] 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

TEXT

public static final EBuiltInResultPresentationMode TEXT
The result tree presented as text.


TEXT_FULLNAME

public static final EBuiltInResultPresentationMode TEXT_FULLNAME
The result tree presented as text. This version displays the full names of the elements in the tree.


XML

public static final EBuiltInResultPresentationMode XML
The result tree presented as xml.


XML_DETAILED

public static final EBuiltInResultPresentationMode XML_DETAILED
The result tree presented as xml. This variant uses the default betwixt mapping.


SVG

public static final EBuiltInResultPresentationMode SVG
The result tree presented as svg. The elements of the tree are labelled with the 'name' of the element.

Method Detail

values

public static EBuiltInResultPresentationMode[] 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 (EBuiltInResultPresentationMode c : EBuiltInResultPresentationMode.values())
    System.out.println(c);

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

valueOf

public static EBuiltInResultPresentationMode 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.