Package com.day.cq.personalization
Enum Segment.Kind
- All Implemented Interfaces:
Serializable,Comparable<Segment.Kind>,java.lang.constant.Constable
- Enclosing class:
Segment
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionComposite segment kind which holds references to child segments in thechildrenproperty.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 systemComposite segment kind which holds references to child segments in thechildrenproperty. -
Method Summary
Modifier and TypeMethodDescriptionstatic Segment.KindReturns the enum constant of this type with the specified name.static Segment.Kind[]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, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
And
Composite segment kind which holds references to child segments in thechildrenproperty.The top-level segment is evaluated to true only if all child segments evaluate to true.
-
Or
Composite segment kind which holds references to child segments in thechildrenproperty.The top-level segment is evaluated to true only if any of its child segments evaluate to true.
-
Direct
Segment kind which should be directly evaluated based on its name/operator/value combination. -
ExternalReference
Segment kind which is a reference to a segment defined in an external system -
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
valueproperty. Typical example of this kind of segment is a segment which contains a script trait.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-