01: // DAVLockEntry.java
02: // $Id: DAVLockEntry.java,v 1.4 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.Node;
08: import org.w3c.dom.Element;
09:
10: /**
11: * @version $Revision: 1.4 $
12: * @author Benoît Mahé (bmahe@w3.org)
13: */
14: public class DAVLockEntry extends DAVNode {
15:
16: public DAVLockType getLockType() {
17: Node n = getDAVNode(LOCKTYPE_NODE);
18: if (n != null) {
19: return new DAVLockType((Element) n);
20: }
21: return null;
22: }
23:
24: public DAVLockScope getLockScope() {
25: Node n = getDAVNode(LOCKSCOPE_NODE);
26: if (n != null) {
27: return new DAVLockScope((Element) n);
28: }
29: return null;
30: }
31:
32: DAVLockEntry(Element element) {
33: super(element);
34: }
35:
36: }
|