public final class SVNNodeKind
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable
SVNDirEntry
,
Serialized FormModifier and Type | Field and Description |
---|---|
static SVNNodeKind |
DIR
Defines the directory node kind
|
static SVNNodeKind |
FILE
Defines the file node kind
|
private int |
myID |
static SVNNodeKind |
NONE
This node kind is used to say that a node is missing
|
private static long |
serialVersionUID |
static SVNNodeKind |
UNKNOWN
This node kind is used to say that the kind of a node is
actually unknown
|
Modifier | Constructor and Description |
---|---|
private |
SVNNodeKind(int id) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
Compares this object with another one.
|
private static SVNNodeKind |
fromID(int id) |
int |
getID() |
static SVNNodeKind |
getNodeKindById(int id) |
static SVNNodeKind |
parseKind(java.lang.String kind)
Parses the passed string and finds out the node kind.
|
private void |
readObject(java.io.ObjectInputStream is) |
private java.lang.Object |
readResolve() |
java.lang.String |
toString()
Represents the current SVNNodeKind object as a string.
|
private void |
writeObject(java.io.ObjectOutputStream os) |
private static final long serialVersionUID
public static final SVNNodeKind NONE
public static final SVNNodeKind FILE
public static final SVNNodeKind DIR
public static final SVNNodeKind UNKNOWN
private int myID
public static SVNNodeKind getNodeKindById(int id)
public static SVNNodeKind parseKind(java.lang.String kind)
parseKind("dir")
will return
DIR
.kind
- a node kind as a stringpublic java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- an object to compare witho
is either null,
or is not an instance of SVNNodeKind, or the id of
this object is smaller than the id of o
;
o
;
o
is the same constant
value as this one (has the same id)
private void writeObject(java.io.ObjectOutputStream os) throws java.io.IOException
java.io.IOException
private void readObject(java.io.ObjectInputStream is) throws java.io.IOException
java.io.IOException
private java.lang.Object readResolve()
private static SVNNodeKind fromID(int id)
public int getID()