Package de.tum.in.test.api
Enum PathType
java.lang.Object
java.lang.Enum<PathType>
de.tum.in.test.api.PathType
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PathType>,java.lang.constant.Constable
public enum PathType extends java.lang.Enum<PathType>
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description EXACTAbsolute path must match exactly; given path may be specified relativeGLOBapplies relative GLOB for a relativized pathGLOB_ABSOLUTEapplies absolute GLOB for an absolute pathREGEXapplies relative RegEx for a relativized pathREGEX_ABSOLUTEapplies absolute RegEx for an absolute pathSTARTS_WITHThe path must start with the given path; given path may be specified relative -
Method Summary
Modifier and Type Method Description abstract java.nio.file.PathMatcherconvertToPathMatcher(java.lang.String s)static PathTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PathType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EXACT
Absolute path must match exactly; given path may be specified relative -
STARTS_WITH
The path must start with the given path; given path may be specified relative -
GLOB
applies relative GLOB for a relativized path- See Also:
FileSystem.getPathMatcher(String)
-
REGEX
applies relative RegEx for a relativized path- See Also:
FileSystem.getPathMatcher(String)
-
GLOB_ABSOLUTE
applies absolute GLOB for an absolute path- See Also:
FileSystem.getPathMatcher(String)
-
REGEX_ABSOLUTE
applies absolute RegEx for an absolute path- See Also:
FileSystem.getPathMatcher(String)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
convertToPathMatcher
public abstract java.nio.file.PathMatcher convertToPathMatcher(java.lang.String s)- Parameters:
s- the format/pattern- Returns:
- a
PathMatcherthat is configured to match absolute paths.
-