Enum Segment.Kind

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Segment.Kind>
    Enclosing class:
    Segment

    public static enum Segment.Kind
    extends java.lang.Enum<Segment.Kind>
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      And
      Composite segment kind which holds references to child segments in the children property.
      ClientOnly
      Segment kind which signals that the segment could not be properly represented on the server side.
      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
      Or
      Composite segment kind which holds references to child segments in the children property.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Segment.Kind valueOf​(java.lang.String name)
      Returns 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, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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​(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