01: // DAVPropStat.java
02: // $Id: DAVPropStat.java,v 1.5 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.5 $
12: * @author Benoît Mahé (bmahe@w3.org)
13: */
14: public class DAVPropStat extends DAVNode {
15:
16: public String getStatus() {
17: return getTextChildValue(STATUS_NODE);
18: }
19:
20: public void setStatus(String line) {
21: addDAVNode(STATUS_NODE, line);
22: }
23:
24: public String getResponseDescription() {
25: return getTextChildValue(RESPONSEDESC_NODE);
26: }
27:
28: public DAVProperties getProps() {
29: Node node = getDAVNode(PROP_NODE);
30: if (node != null) {
31: return new DAVProperties((Element) node);
32: }
33: return null;
34: }
35:
36: DAVPropStat(Element element) {
37: super(element);
38: }
39:
40: }
|