Package org.xwiki.rendering.block
Enum Class Block.Axes
- All Implemented Interfaces:
Serializable,Comparable<Block.Axes>,Constable
- Enclosing interface:
- Block
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 ConstantsEnum ConstantDescriptionThe 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 TypeMethodDescriptionstatic Block.AxesReturns the enum constant of this class with the specified name.static Block.Axes[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SELF
Just the context block itself. -
PARENT
The parent of the context block, if there is one. -
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
The context block and the ancestors of the context block; thus, the ancestor axis will always include the root block. -
CHILD
The children of the context block. -
DESCENDANT
The descendants of the context block; a descendant is a child or a child of a child and so on. -
DESCENDANT_OR_SELF
The context block and the descendants of the context block. -
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
All the following siblings of the context block. -
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
All the preceding siblings of the context block.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-