Enum Segment.Kind

    • Enum Constant Detail

      • 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 Detail

      • values

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