|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.tmatesoft.svn.core.SVNDepth
public class SVNDepth
This class contains enumeration that describes depth, that is used. The order of these depths is important: the higher the number, the deeper it descends. You can use it to compare two depths numerically to decide which goes deeper.
| Field Summary | |
|---|---|
static SVNDepth |
EMPTY
Just the named directory D, no entries. |
static SVNDepth |
EXCLUDE
Exclude (don't descend into) directory D. |
static SVNDepth |
FILES
D and its file children, but not subdirectories. |
static SVNDepth |
IMMEDIATES
D and its immediate children (D and its entries). |
static SVNDepth |
INFINITY
D and all descendants (full recursion from D). |
static SVNDepth |
UNKNOWN
Depth undetermined or ignored. |
| Method Summary | |
|---|---|
static java.lang.String |
asString(SVNDepth depth)
Appropriate name of depth is returned. |
int |
compareTo(java.lang.Object o)
Compares this object to another one. |
boolean |
equals(java.lang.Object obj)
Says whether this object and obj are equal. |
static SVNDepth |
fromID(int id)
Based on depth id returns SVNDepth value. |
static SVNDepth |
fromRecurse(boolean recurse)
Treats recursion as INFINITY depth and FILES otherwise |
static SVNDepth |
fromString(java.lang.String string)
Based on string value finds SVNDepth value. |
int |
getId()
Gets numerical Id of depth |
static SVNDepth |
getInfinityOrEmptyDepth(boolean recurse)
Returns INFINITY if recurse is true, else
returns EMPTY. |
static SVNDepth |
getInfinityOrFilesDepth(boolean recurse)
The same as getInfinityOrEmptyDepth(boolean), but FILES is returned when recursive. |
static SVNDepth |
getInfinityOrImmediatesDepth(boolean recurse)
The same as getInfinityOrEmptyDepth(boolean), but IMMEDIATES is returned when recursive. |
java.lang.String |
getName()
Gets the name of depth |
static SVNDepth |
getUnknownOrEmptyDepth(boolean recurse)
Returns UNKNOWN if recurse is true, else
returns EMPTY. |
static SVNDepth |
getUnknownOrFilesDepth(boolean recurse)
The same as getUnknownOrEmptyDepth(boolean), but FILES is returned when recursive. |
static SVNDepth |
getUnknownOrImmediatesDepth(boolean recurse)
The same as getUnknownOrEmptyDepth(boolean), but IMMEDIATES is returned when recursive. |
boolean |
isRecursive()
Returns a recursion boolean based on depth. |
static boolean |
recurseFromDepth(SVNDepth depth)
Based on depth determines if it is recursive or not. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final SVNDepth UNKNOWN
public static final SVNDepth EXCLUDE
public static final SVNDepth EMPTY
public static final SVNDepth FILES
public static final SVNDepth IMMEDIATES
public static final SVNDepth INFINITY
| Method Detail |
|---|
public int getId()
public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isRecursive()
FILES).
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - object to compare with
-1 if o is null, or not an SVNDepth
instance, or its id is greater than this object's id; 0 if ids this object and o
are equal; 1 if id of this object is greater than the one of o.public boolean equals(java.lang.Object obj)
obj are equal.
equals in class java.lang.Objectobj - another object to compare with
public static java.lang.String asString(SVNDepth depth)
depth is returned. If depth does not represent
a recognized depth, "INVALID-DEPTH" is returned.
depth - depth, which name needs to be returned
public static boolean recurseFromDepth(SVNDepth depth)
depth - depth value
isRecursive(),
fromRecurse(boolean)public static SVNDepth fromRecurse(boolean recurse)
INFINITY depth and FILES otherwise
recurse - indicator of recursion
isRecursive(),
recurseFromDepth(SVNDepth)public static SVNDepth fromString(java.lang.String string)
SVNDepth value.
string - depth value represented by string
public static SVNDepth fromID(int id)
SVNDepth value.
id - depth id
public static SVNDepth getInfinityOrEmptyDepth(boolean recurse)
INFINITY if recurse is true, else
returns EMPTY.
Code should never need to use this, it is called only from pre-depth APIs, for compatibility.
recurse - boolean
public static SVNDepth getInfinityOrFilesDepth(boolean recurse)
getInfinityOrEmptyDepth(boolean), but FILES is returned when recursive.
Code should never need to use this, it is called only from pre-depth APIs, for compatibility.
recurse - boolean
public static SVNDepth getInfinityOrImmediatesDepth(boolean recurse)
getInfinityOrEmptyDepth(boolean), but IMMEDIATES is returned when recursive.
Code should never need to use this, it is called only from pre-depth APIs, for compatibility.
recurse - boolean
public static SVNDepth getUnknownOrEmptyDepth(boolean recurse)
UNKNOWN if recurse is true, else
returns EMPTY.
Code should never need to use this, it is called only from pre-depth APIs, for compatibility.
recurse - boolean
public static SVNDepth getUnknownOrFilesDepth(boolean recurse)
getUnknownOrEmptyDepth(boolean), but FILES is returned when recursive.
Code should never need to use this, it is called only from pre-depth APIs, for compatibility.
recurse - boolean
public static SVNDepth getUnknownOrImmediatesDepth(boolean recurse)
getUnknownOrEmptyDepth(boolean), but IMMEDIATES is returned when recursive.
Code should never need to use this, it is called only from pre-depth APIs, for compatibility.
recurse - boolean
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||