Enum Filter.PathRestriction
- java.lang.Object
-
- java.lang.Enum<Filter.PathRestriction>
-
- org.apache.jackrabbit.oak.spi.query.Filter.PathRestriction
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Filter.PathRestriction>
- Enclosing interface:
- Filter
public static enum Filter.PathRestriction extends java.lang.Enum<Filter.PathRestriction>
The path restriction type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_CHILDREN
All direct and indirect child nodes (excluding the node with the given path).DIRECT_CHILDREN
All direct child nodes.EXACT
This exact node only.NO_RESTRICTION
All nodes.PARENT
A parent of this node.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
static Filter.PathRestriction
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Filter.PathRestriction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_RESTRICTION
public static final Filter.PathRestriction NO_RESTRICTION
All nodes.
-
PARENT
public static final Filter.PathRestriction PARENT
A parent of this node.
-
EXACT
public static final Filter.PathRestriction EXACT
This exact node only.
-
DIRECT_CHILDREN
public static final Filter.PathRestriction DIRECT_CHILDREN
All direct child nodes.
-
ALL_CHILDREN
public static final Filter.PathRestriction ALL_CHILDREN
All direct and indirect child nodes (excluding the node with the given path).
-
-
Method Detail
-
values
public static Filter.PathRestriction[] 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 (Filter.PathRestriction c : Filter.PathRestriction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Filter.PathRestriction 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 namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Filter.PathRestriction>
-
-