3
* ====================================================================
4
* Copyright (c) 2003-2004 CollabNet. All rights reserved.
6
* This software is licensed as described in the file COPYING, which
7
* you should have received as part of this distribution. The terms
8
* are also available at http://subversion.tigris.org/license-1.html.
9
* If newer versions of this license are posted there, you may use a
10
* newer version instead, at your option.
12
* This software consists of voluntary contributions made by many
13
* individuals. For exact contribution history, see the revision
14
* history and logs, available at http://subversion.tigris.org/.
15
* ====================================================================
18
package org.tigris.subversion.javahl;
21
* Poor mans enum for svn_node_kind_t
23
public final class NodeKind
26
public static final int none = 0;
29
public static final int file = 1;
32
public static final int dir = 2;
34
/* something's here, but we don't know what */
35
public static final int unknown = 3;
38
* mapping for the constants to text
40
private static final String[] statusNames =
48
* Returns the textual representation for a NodeKind
49
* @param kind kind of node
50
* @return english text
52
public static final String getNodeKindName(int kind)
54
return statusNames[kind];