Package org.tmatesoft.svn.core
Class SVNNodeKind
java.lang.Object
org.tmatesoft.svn.core.SVNNodeKind
- All Implemented Interfaces:
Serializable,Comparable
The SVNNodeKind class is used to describe the kind of a
directory entry (node, in other words). This can be:
- a directory - the node is a directory
- a file - the node is a file
- none - the node is missing (does not exist)
- unknown - the node kind can not be recognized
- Since:
- 1.2
- Version:
- 1.3
- Author:
- TMate Software Ltd.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SVNNodeKindDefines the directory node kindstatic final SVNNodeKindDefines the file node kindstatic final SVNNodeKindThis node kind is used to say that a node is missingstatic final SVNNodeKindThis node kind is used to say that the kind of a node is actually unknown -
Method Summary
Modifier and TypeMethodDescriptionintCompares this object with another one.intgetID()static SVNNodeKindgetNodeKindById(int id) static SVNNodeKindParses the passed string and finds out the node kind.toString()Represents the current SVNNodeKind object as a string.
-
Field Details
-
NONE
This node kind is used to say that a node is missing -
FILE
Defines the file node kind -
DIR
Defines the directory node kind -
UNKNOWN
This node kind is used to say that the kind of a node is actually unknown
-
-
Method Details
-
getNodeKindById
-
parseKind
Parses the passed string and finds out the node kind. For instance,parseKind("dir")will returnDIR.- Parameters:
kind- a node kind as a string- Returns:
- an SVNNodeKind representation
-
toString
Represents the current SVNNodeKind object as a string. -
compareTo
Compares this object with another one. Each SVNNodeKind constant has got its own unique id.- Specified by:
compareToin interfaceComparable- Parameters:
o- an object to compare with- Returns:
- -1 - if
ois either null, or is not an instance of SVNNodeKind, or the id of this object is smaller than the id ofo; - 1 - if the id of this object is bigger than the id of
o; - 0 - if and only if
ois the same constant value as this one (has the same id)
- -1 - if
-
getID
public int getID()
-