01: // DAVLockScope.java
02: // $Id: DAVLockScope.java,v 1.3 2000/10/12 16:19:20 bmahe Exp $
03: // (c) COPYRIGHT MIT, INRIA and Keio, 2000.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05: package org.w3c.www.webdav.xml;
06:
07: import org.w3c.dom.Element;
08:
09: /**
10: * @version $Revision: 1.3 $
11: * @author Benoît Mahé (bmahe@w3.org)
12: */
13: public class DAVLockScope extends DAVNode {
14:
15: public static final short UNDEFINED = 0;
16: public static final short EXCLUSIVE = 1;
17: public static final short SHARED = 1;
18:
19: public short getLockScope() {
20: if (getDAVNode(EXCLUSIVE_NODE) != null) {
21: return EXCLUSIVE;
22: } else if (getDAVNode(SHARED_NODE) != null) {
23: return SHARED;
24: } else {
25: return UNDEFINED;
26: }
27: }
28:
29: DAVLockScope(Element element) {
30: super(element);
31: }
32:
33: }
|