Package wt.vc.views

Class Variation2

All Implemented Interfaces:
Serializable, Comparable, EnumeratedType, LocalizableMetadata, LocalizableMessage, Message

Variation2 is an enumerated type on ViewManageable objects to allow for an extra degree of branching within a view. That is to say that a new view version can be created from an existing view version without a change of view but simply a change of variation2. This attribute of ViewManageable can only be used when the preference for allowing variations is enabled. The name of this preference is the value of the constant ViewHelper.ALLOW_VIEW_VARIATIONS_PREF_NAME.

Supported API: true

Extendable: false
See Also:
  • Field Details

    • ONE

      public static final Variation2 ONE


      Supported API: true
    • TWO

      public static final Variation2 TWO


      Supported API: true
    • THREE

      public static final Variation2 THREE


      Supported API: true
    • FOUR

      public static final Variation2 FOUR


      Supported API: true
    • FIVE

      public static final Variation2 FIVE


      Supported API: true
  • Method Details

    • toVariation2

      public static Variation2 toVariation2(String internal_value) throws WTInvalidParameterException
      Returns the Variation2 instance for the internal_value argument.

      Supported API: true
      Parameters:
      internal_value - The internal (persistent) value for a valid instance of Variation2.
      Returns:
      Variation2
      Throws:
      WTInvalidParameterException