Interface NBPathsAPI.GetPathname

All Superinterfaces:
NBPathsAPI.DoSearch, NBPathsAPI.GetExtensions
All Known Subinterfaces:
NBPathsAPI.Facets, NBPathsAPI.GetPrefixes
All Known Implementing Classes:
NBIO
Enclosing interface:
NBPathsAPI

public static interface NBPathsAPI.GetPathname extends NBPathsAPI.GetExtensions
  • Method Details

    • pathname

      NBPathsAPI.GetExtensions pathname(String... name)
      Provide the names of the resources to be resolved. More than one resource may be provided. If no name is provided, then a wildcard search is assumed.
      Parameters:
      name - The name of the resource to load
      Returns:
      this builder
    • search

      NBPathsAPI.DoSearch search(String... name)
      Provide a combined prefix, name and suffix in a combined form. For each search template provided, the value is sliced up into the three components (prefix, name, extension) and added as if they were specified separately using the following rules:
      1. Any suffix like
        .name
        is stripped off as the extension.
      2. Any literal (non-pattern) path parts are taken as the prefix.
      3. The remainder is taken as the name.
      Examples:
      • my/prefix/path/..?/name.txt yields:
        • prefix: my/prefix/path/
        • name: ..?/name
        • extension: .txt
      • .*.yaml yeilds:
        • prefix: ./
        • name: .*
        • extension: .yaml
      Parameters:
      name -
      Returns: