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

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    EXACT
    Absolute path must match exactly; given path may be specified relative
    GLOB
    applies relative GLOB for a relativized path
    GLOB_ABSOLUTE
    applies absolute GLOB for an absolute path
    REGEX
    applies relative RegEx for a relativized path
    REGEX_ABSOLUTE
    applies absolute RegEx for an absolute path
    STARTS_WITH
    The path must start with the given path; given path may be specified relative
  • Method Summary

    Modifier and Type Method Description
    abstract java.nio.file.PathMatcher convertToPathMatcher​(java.lang.String s)  
    static PathType valueOf​(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.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

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

    • EXACT

      public static final PathType EXACT
      Absolute path must match exactly; given path may be specified relative
    • STARTS_WITH

      public static final PathType STARTS_WITH
      The path must start with the given path; given path may be specified relative
    • GLOB

      public static final PathType GLOB
      applies relative GLOB for a relativized path
      See Also:
      FileSystem.getPathMatcher(String)
    • REGEX

      public static final PathType REGEX
      applies relative RegEx for a relativized path
      See Also:
      FileSystem.getPathMatcher(String)
    • GLOB_ABSOLUTE

      public static final PathType GLOB_ABSOLUTE
      applies absolute GLOB for an absolute path
      See Also:
      FileSystem.getPathMatcher(String)
    • REGEX_ABSOLUTE

      public static final PathType REGEX_ABSOLUTE
      applies absolute RegEx for an absolute path
      See Also:
      FileSystem.getPathMatcher(String)
  • Method Details

    • values

      public static PathType[] 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

      public static PathType 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 name
      java.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 PathMatcher that is configured to match absolute paths.