1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.seasar.tuigwaa.cms.core;
17
18 /***
19 * @author someda
20 */
21 public class CmsResponse {
22
23 private byte[] bytes_;
24 private String string_;
25 private int nParseError_ = 0;
26 private int nLexicalError_ = 0;
27 private boolean isCached_ = false;
28
29 public CmsResponse(){
30 }
31
32 public byte[] getBytes(){
33 return bytes_;
34 }
35
36 public void setBytes(byte[] bytes){
37 this.bytes_ = bytes;
38 }
39
40 public String getString(){
41 return string_;
42 }
43
44 public void setString(String string){
45 this.string_ = string;
46 }
47
48 public int getNLexicalError() {
49 return nLexicalError_;
50 }
51
52 public void setNLexicalError(int lexicalError) {
53 nLexicalError_ = lexicalError;
54 }
55
56 public int getNParseError() {
57 return nParseError_;
58 }
59
60 public void setNParseError(int parseError) {
61 nParseError_ = parseError;
62 }
63
64 public int getTotalError(){
65 return nParseError_ + nLexicalError_;
66 }
67
68 public boolean isCached() {
69 return isCached_;
70 }
71
72 public void setCached(boolean isCached) {
73 this.isCached_ = isCached;
74 }
75
76
77
78 }