Class Depth

java.lang.Object
org.tigris.subversion.javahl.Depth

public final class Depth extends java.lang.Object
The concept of depth for directories. Note: This is similar to, but not exactly the same as, the WebDAV and LDAP concepts of depth.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Just the named directory D, no entries.
    static final int
    Exclude (i.e, don't descend into) directory D.
    static final int
    D + its file children, but not subdirs.
    static final int
    D + immediate children (D and its entries).
    static final int
    D + all descendants (full recursion from D).
    static final int
    Depth undetermined or ignored.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    fromADepth(Depth aDepth)
     
    static final int
    infinityOrEmpty(boolean recurse)
     
    static final int
    infinityOrFiles(boolean recurse)
     
    static final int
    infinityOrImmediates(boolean recurse)
     
    static Depth
    toADepth(int depth)
     
    static final int
    unknownOrEmpty(boolean recurse)
     
    static final int
    unknownOrFiles(boolean recurse)
     
    static final int
    unknownOrImmediates(boolean recurse)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • unknown

      public static final int unknown
      Depth undetermined or ignored.
      See Also:
    • exclude

      public static final int exclude
      Exclude (i.e, don't descend into) directory D.
      See Also:
    • empty

      public static final int empty
      Just the named directory D, no entries. Updates will not pull in any files or subdirectories not already present.
      See Also:
    • files

      public static final int files
      D + its file children, but not subdirs. Updates will pull in any files not already present, but not subdirectories.
      See Also:
    • immediates

      public static final int immediates
      D + immediate children (D and its entries). Updates will pull in any files or subdirectories not already present; those subdirectories' this_dir entries will have depth-empty.
      See Also:
    • infinity

      public static final int infinity
      D + all descendants (full recursion from D). Updates will pull in any files or subdirectories not already present; those subdirectories' this_dir entries will have depth-infinity. Equivalent to the pre-1.5 default update behavior.
      See Also:
  • Constructor Details

    • Depth

      public Depth()
  • Method Details

    • infinityOrEmpty

      public static final int infinityOrEmpty(boolean recurse)
      Returns:
      A depth value of infinity when recurse is true, or empty otherwise.
    • infinityOrFiles

      public static final int infinityOrFiles(boolean recurse)
      Returns:
      A depth value of infinity when recurse is true, or files otherwise.
    • infinityOrImmediates

      public static final int infinityOrImmediates(boolean recurse)
      Returns:
      A depth value of infinity when recurse is true, or immediates otherwise.
    • unknownOrEmpty

      public static final int unknownOrEmpty(boolean recurse)
      Returns:
      A depth value of unknown when recurse is true, or empty otherwise.
    • unknownOrFiles

      public static final int unknownOrFiles(boolean recurse)
      Returns:
      A depth value of unknown when recurse is true, or files otherwise.
    • unknownOrImmediates

      public static final int unknownOrImmediates(boolean recurse)
      Returns:
      A depth value of unknown when recurse is true, or immediates otherwise.
    • toADepth

      public static Depth toADepth(int depth)
    • fromADepth

      public static int fromADepth(Depth aDepth)