01: // DAVPropertyBehavior.java
02: // $Id: DAVPropertyBehavior.java,v 1.2 2000/10/16 12:30:22 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.2 $
12: * @author Benoît Mahé (bmahe@w3.org)
13: */
14: public class DAVPropertyBehavior extends DAVNode {
15:
16: public boolean omit() {
17: return (getDAVNode(OMIT_NODE) != null);
18: }
19:
20: public boolean keepaliveAll() {
21: String star = getTextChildValue(KEEPALIVE_NODE).trim();
22: return ((star != null) && (star.equals("*")));
23: }
24:
25: public String[] getHrefs() {
26: Node keepalive = getDAVNode(KEEPALIVE_NODE);
27: if (keepalive != null) {
28: return getMultipleTextChildValue(keepalive, HREF_NODE);
29: }
30: return null;
31: }
32:
33: DAVPropertyBehavior(Element element) {
34: super(element);
35: }
36:
37: }
|