public final class NameScope
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static NameScope |
CHILD |
Resolve against the children of the base file.
|
static NameScope |
DESCENDENT |
Resolve against the descendents of the base file.
|
static NameScope |
DESCENDENT_OR_SELF |
Resolve against the descendents of the base file.
|
static NameScope |
FILE_SYSTEM |
Resolve against files in the same file system as the base file.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getName() |
Returns the name of the scope.
|
java.lang.String |
toString() |
Returns the name of the scope.
|
public static final NameScope CHILD
FILE_SYSTEM
. However, an exception is
thrown if the resolved file is not a direct child of the base file.public static final NameScope DESCENDENT
FILE_SYSTEM
. However, an exception is thrown
if the resolved file is not a descendent of the base file.public static final NameScope DESCENDENT_OR_SELF
FILE_SYSTEM
. However, an exception is thrown
if the resolved file is not a descendent of the base file, or the base
files itself.public static final NameScope FILE_SYSTEM
If the supplied name is an absolute path, then it is resolved relative to the root of the file system that the base file belongs to. If a relative name is supplied, then it is resolved relative to the base file.
The path may use any mix of /
, \
, or file
system specific separators to separate elements in the path. It may
also contain .
and ..
elements.
A path is considered absolute if it starts with a separator character, and relative if it does not.