Enum Segment.Kind

java.lang.Object
java.lang.Enum<Segment.Kind>
com.day.cq.personalization.Segment.Kind
All Implemented Interfaces:
Serializable, Comparable<Segment.Kind>, java.lang.constant.Constable
Enclosing class:
Segment

public static enum Segment.Kind extends Enum<Segment.Kind>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Composite segment kind which holds references to child segments in the children property.
    Segment kind which signals that the segment could not be properly represented on the server side.
    Segment kind which should be directly evaluated based on its name/operator/value combination.
    Segment kind which is a reference to a segment defined in an external system
    Composite segment kind which holds references to child segments in the children property.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    static Segment.Kind[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • And

      public static final Segment.Kind And
      Composite segment kind which holds references to child segments in the children property.

      The top-level segment is evaluated to true only if all child segments evaluate to true.

    • Or

      public static final Segment.Kind Or
      Composite segment kind which holds references to child segments in the children property.

      The top-level segment is evaluated to true only if any of its child segments evaluate to true.

    • Direct

      public static final Segment.Kind Direct
      Segment kind which should be directly evaluated based on its name/operator/value combination.
    • ExternalReference

      public static final Segment.Kind ExternalReference
      Segment kind which is a reference to a segment defined in an external system
    • ClientOnly

      public static final Segment.Kind ClientOnly
      Segment kind which signals that the segment could not be properly represented on the server side.

      Instead of being defined by its name/operator/value combination, this segment contains its JCR repository path in the value property. Typical example of this kind of segment is a segment which contains a script trait.

  • Method Details

    • values

      public static Segment.Kind[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Segment.Kind valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null