01: // DAVStateToken.java
02: // $Id: DAVStateToken.java,v 1.2 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;
06:
07: /**
08: * @version $Revision: 1.2 $
09: * @author Benoît Mahé (bmahe@w3.org)
10: */
11: public class DAVStateToken {
12:
13: boolean isnot = false;
14: String token = null;
15:
16: public boolean isNot() {
17: return isnot;
18: }
19:
20: public String getStateToken() {
21: return token;
22: }
23:
24: public String toString() {
25: StringBuffer buffer = new StringBuffer();
26: if (isnot) {
27: buffer.append("Not ");
28: }
29: buffer.append("<").append(token).append(">");
30: return buffer.toString();
31: }
32:
33: public DAVStateToken(String token, boolean isnot) {
34: this.token = token;
35: this.isnot = isnot;
36: }
37:
38: }
|