Enum Class Block.Axes

java.lang.Object
java.lang.Enum<Block.Axes>
org.xwiki.rendering.block.Block.Axes
All Implemented Interfaces:
Serializable, Comparable<Block.Axes>, Constable
Enclosing interface:
Block

public static enum Block.Axes extends Enum<Block.Axes>
Search axes used in searching methods. Mostly taken from XPATH axes.
Since:
3.0M3
Version:
$Id: 333192035c213679a0a035bf93c6701c09fa60d4 $
  • 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
    The ancestors of the context block; the ancestors of the context block consist of the parent of context block and the parent's parent and so on; thus, the ancestor axis will always include the root block, unless the context block is the root block.
    The context block and the ancestors of the context block; thus, the ancestor axis will always include the root block.
    The children of the context block.
    The descendants of the context block; a descendant is a child or a child of a child and so on.
    The context block and the descendants of the context block.
    All blocks in the same document as the context block that are after the context block in document order, excluding any descendants.
    All the following siblings of the context block.
    The parent of the context block, if there is one.
    All blocks in the same document as the context block that are before the context block in document order, excluding any ancestors.
    All the preceding siblings of the context block.
    Just the context block itself.
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    • SELF

      public static final Block.Axes SELF
      Just the context block itself.
    • PARENT

      public static final Block.Axes PARENT
      The parent of the context block, if there is one.
    • ANCESTOR

      public static final Block.Axes ANCESTOR
      The ancestors of the context block; the ancestors of the context block consist of the parent of context block and the parent's parent and so on; thus, the ancestor axis will always include the root block, unless the context block is the root block.
    • ANCESTOR_OR_SELF

      public static final Block.Axes ANCESTOR_OR_SELF
      The context block and the ancestors of the context block; thus, the ancestor axis will always include the root block.
    • CHILD

      public static final Block.Axes CHILD
      The children of the context block.
    • DESCENDANT

      public static final Block.Axes DESCENDANT
      The descendants of the context block; a descendant is a child or a child of a child and so on.
    • DESCENDANT_OR_SELF

      public static final Block.Axes DESCENDANT_OR_SELF
      The context block and the descendants of the context block.
    • FOLLOWING

      public static final Block.Axes FOLLOWING
      All blocks in the same document as the context block that are after the context block in document order, excluding any descendants.
    • FOLLOWING_SIBLING

      public static final Block.Axes FOLLOWING_SIBLING
      All the following siblings of the context block.
    • PRECEDING

      public static final Block.Axes PRECEDING
      All blocks in the same document as the context block that are before the context block in document order, excluding any ancestors.
    • PRECEDING_SIBLING

      public static final Block.Axes PRECEDING_SIBLING
      All the preceding siblings of the context block.
  • Method Details

    • values

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

      public static Block.Axes valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null