01: // DAVLockType.java
02: // $Id: DAVLockType.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 DAVLockType extends DAVNode {
14:
15: public final static short UNDEFINED = 0;
16: public final static short WRITE = 1;
17:
18: public short getType() {
19: if (getDAVNode(WRITE_NODE) != null) {
20: return WRITE;
21: } else {
22: return UNDEFINED;
23: }
24: }
25:
26: DAVLockType(Element element) {
27: super(element);
28: }
29: }
|