01: // DAVPropFind.java
02: // $Id: DAVPropFind.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.Element;
08: import org.w3c.dom.Node;
09:
10: /**
11: * @version $Revision: 1.4 $
12: * @author Benoît Mahé (bmahe@w3.org)
13: */
14: public class DAVPropFind extends DAVNode {
15:
16: DAVProperties dp = null;
17:
18: public boolean findPropNames() {
19: return (getDAVNode(PROPNAME_NODE) != null);
20: }
21:
22: public boolean findAllProps() {
23: return (getDAVNode(ALLPROP_NODE) != null);
24: }
25:
26: public DAVProperties getProperties() {
27: if (dp == null) {
28: Element e = (Element) getDAVNode(PROP_NODE);
29: if (e != null) {
30: dp = new DAVProperties(e);
31: }
32: }
33: return dp;
34: }
35:
36: DAVPropFind(Element element) {
37: super(element);
38: }
39:
40: }
|