Class FileRef.PatternFileRef

java.lang.Object
org.nuxeo.common.utils.FileRef
org.nuxeo.common.utils.FileRef.PatternFileRef
Enclosing class:
FileRef

public static class FileRef.PatternFileRef extends FileRef
  • Field Details

    • file

      protected File file
    • key

      protected String key
    • value

      protected String value
  • Constructor Details

    • PatternFileRef

      public PatternFileRef(String path)
    • PatternFileRef

      public PatternFileRef(File file)
  • Method Details

    • getFile

      public File getFile()
      Description copied from class: FileRef
      Gets the file referenced by this object. If the FileRef could not be resolved then null is returned.
      Specified by:
      getFile in class FileRef
      Returns:
      the referred file or null if none was found.
    • getValue

      public String getValue()
    • getKey

      public String getKey()
    • hasPattern

      public boolean hasPattern()
      Description copied from class: FileRef
      Whether the referred file has a name pattern.
      Specified by:
      hasPattern in class FileRef
    • fillPatternVariables

      public void fillPatternVariables(Map<String,Object> vars)
      Description copied from class: FileRef
      Fill the given map with pattern variables.
      Specified by:
      fillPatternVariables in class FileRef