01: /**
02: * @copyright
03: * ====================================================================
04: * Copyright (c) 2003-2005 CollabNet. All rights reserved.
05: *
06: * This software is licensed as described in the file COPYING, which
07: * you should have received as part of this distribution. The terms
08: * are also available at http://subversion.tigris.org/license-1.html.
09: * If newer versions of this license are posted there, you may use a
10: * newer version instead, at your option.
11: *
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: * ====================================================================
16: * @endcopyright
17: */package org.tigris.subversion.javahl;
18:
19: /**
20: * @since 1.2
21: * what happened to a lock during an operation
22: */
23: public interface LockStatus {
24: /**
25: * does not make sense for this operation
26: */
27: public static final int inapplicable = 0;
28: /**
29: * unknown lock state
30: */
31: public static final int unknown = 1;
32: /**
33: * the lock change did not change
34: */
35: public static final int unchanged = 2;
36: /**
37: * the item was locked
38: */
39: public static final int locked = 3;
40: /**
41: * the item was unlocked
42: */
43: public static final int unlocked = 4;
44:
45: public static final String[] stateNames = { "inapplicable",
46: "unknown", "unchanged", "locked", "unlocked", };
47: }
|