01: // DAVEntityTag.java
02: // $Id: DAVEntityTag.java,v 1.1 2000/09/20 15:07:47 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;
06:
07: import org.w3c.www.http.HttpEntityTag;
08:
09: /**
10: * @version $Revision: 1.1 $
11: * @author Benoît Mahé (bmahe@w3.org)
12: */
13: public class DAVEntityTag extends HttpEntityTag {
14:
15: boolean isnot = false;
16:
17: public boolean isNot() {
18: return isnot;
19: }
20:
21: public String toString() {
22: if (isnot) {
23: return "Not " + toExternalForm();
24: } else {
25: return toExternalForm();
26: }
27: }
28:
29: public DAVEntityTag(byte raw[], int off, int len, boolean isnot) {
30: super();
31: addBytes(raw, off, len);
32: this.isnot = isnot;
33: }
34:
35: }
|