org.tmatesoft.svn.core

Class SVNNodeKind

public final class SVNNodeKind extends Object implements Comparable

The SVNNodeKind class is used to describe the kind of a directory entry (node, in other words). This can be:

Version: 1.1.1

Author: TMate Software Ltd.

See Also: SVNDirEntry

Field Summary
static SVNNodeKindDIR
Defines the directory node kind
static SVNNodeKindFILE
Defines the file node kind
static SVNNodeKindNONE
This node kind is used to say that a node is missing
static SVNNodeKindUNKNOWN
This node kind is used to say that the kind of a node is actually unknown
Method Summary
intcompareTo(Object o)
Compares this object with another one.
static SVNNodeKindparseKind(String kind)
Parses the passed string and finds out the node kind.
StringtoString()
Represents the current SVNNodeKind object as a string.

Field Detail

DIR

public static final SVNNodeKind DIR
Defines the directory node kind

FILE

public static final SVNNodeKind FILE
Defines the file node kind

NONE

public static final SVNNodeKind NONE
This node kind is used to say that a node is missing

UNKNOWN

public static final SVNNodeKind UNKNOWN
This node kind is used to say that the kind of a node is actually unknown

Method Detail

compareTo

public int compareTo(Object o)
Compares this object with another one. Each SVNNodeKind constant has got its own unique id.

Parameters: o an object to compare with

Returns:

parseKind

public static SVNNodeKind parseKind(String kind)
Parses the passed string and finds out the node kind. For instance, parseKind("dir") will return DIR.

Parameters: kind a node kind as a string

Returns: an SVNNodeKind representation

toString

public String toString()
Represents the current SVNNodeKind object as a string.

Returns: a string representation of this object.

Copyright © 2004-2007 TMate Software Ltd. All Rights Reserved.