01: // DAVActiveLock.java
02: // $Id: DAVActiveLock.java,v 1.6 2000/10/20 16:12:46 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: import org.w3c.dom.Node;
09:
10: /**
11: * @version $Revision: 1.6 $
12: * @author Benoît Mahé (bmahe@w3.org)
13: */
14: public class DAVActiveLock extends DAVLockEntry {
15:
16: public String getDepth() {
17: return getTextChildValue(DEPTH_NODE);
18: }
19:
20: public Node getOwner() {
21: return getDAVNode(OWNER_NODE);
22: }
23:
24: public String getTimeout() {
25: return getTextChildValue(TIMEOUT_NODE);
26: }
27:
28: /**
29: * Get the locktoken (A array of href)
30: * @return a String array
31: */
32: public String[] getLockToken() {
33: Node n = getDAVNode(LOCKTOKEN_NODE);
34: if (n != null) {
35: return getMultipleTextChildValue(n, HREF_NODE);
36: }
37: return null;
38: }
39:
40: DAVActiveLock(Element element) {
41: super(element);
42: }
43:
44: }
|