Package org.tigris.subversion.javahl
Class Depth
java.lang.Object
org.tigris.subversion.javahl.Depth
public final class Depth extends 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 int
empty
Just the named directory D, no entries.static int
exclude
Exclude (i.e, don't descend into) directory D.static int
files
D + its file children, but not subdirs.static int
immediates
D + immediate children (D and its entries).static int
infinity
D + all descendants (full recursion from D).static int
unknown
Depth undetermined or ignored. -
Constructor Summary
Constructors Constructor Description Depth()
-
Method Summary
Modifier and Type Method Description static int
fromADepth(Depth aDepth)
static int
infinityOrEmpty(boolean recurse)
static int
infinityOrFiles(boolean recurse)
static int
infinityOrImmediates(boolean recurse)
static Depth
toADepth(int depth)
static int
unknownOrEmpty(boolean recurse)
static int
unknownOrFiles(boolean recurse)
static int
unknownOrImmediates(boolean recurse)
-
Field Details
-
unknown
public static final int unknownDepth undetermined or ignored.- See Also:
- Constant Field Values
-
exclude
public static final int excludeExclude (i.e, don't descend into) directory D.- See Also:
- Constant Field Values
-
empty
public static final int emptyJust the named directory D, no entries. Updates will not pull in any files or subdirectories not already present.- See Also:
- Constant Field Values
-
files
public static final int filesD + its file children, but not subdirs. Updates will pull in any files not already present, but not subdirectories.- See Also:
- Constant Field Values
-
immediates
public static final int immediatesD + 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:
- Constant Field Values
-
infinity
public static final int infinityD + 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:
- Constant Field Values
-
-
Constructor Details
-
Depth
public Depth()
-
-
Method Details
-
infinityOrEmpty
public static final int infinityOrEmpty(boolean recurse) -
infinityOrFiles
public static final int infinityOrFiles(boolean recurse) -
infinityOrImmediates
public static final int infinityOrImmediates(boolean recurse)- Returns:
- A depth value of
infinity
whenrecurse
istrue
, orimmediates
otherwise.
-
unknownOrEmpty
public static final int unknownOrEmpty(boolean recurse) -
unknownOrFiles
public static final int unknownOrFiles(boolean recurse) -
unknownOrImmediates
public static final int unknownOrImmediates(boolean recurse)- Returns:
- A depth value of
unknown
whenrecurse
istrue
, orimmediates
otherwise.
-
toADepth
-
fromADepth
-