View Javadoc

1   /*
2    * Copyright 2004-2006 the Seasar Foundation and the Others.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
13   * either express or implied. See the License for the specific language
14   * governing permissions and limitations under the License.
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  }