01: /**
02: * Copyright (c) 2004-2005 jManage.org
03: *
04: * This is a free software; you can redistribute it and/or
05: * modify it under the terms of the license at
06: * http://www.jmanage.org.
07: *
08: * Unless required by applicable law or agreed to in writing, software
09: * distributed under the License is distributed on an "AS IS" BASIS,
10: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11: * See the License for the specific language governing permissions and
12: * limitations under the License.
13: */package org.jmanage.testapp.mbeans;
14:
15: /**
16: *
17: *
18: * <p>
19: * Date: Aug 31, 2005
20: * @author Rakesh Kalra
21: */
22: public class DataFormat implements DataFormatMBean {
23:
24: String xml1 = "<?xml version=\"1.0\"?>\n\n<root><a>1</a><b>2</b></root>";
25: String xml2 = "<root><a>1</a><b>2</b></root>";
26: String html = "<b>This is a test</b>";
27:
28: // test get and set
29: public String getXML() {
30: return xml1;
31: }
32:
33: public void setXML(String xml) {
34: this .xml1 = xml;
35: }
36:
37: // test read only attribute
38: public String getXMLData() {
39: return xml2;
40: }
41:
42: // test operation
43: public String retrieveXMLData() {
44: return xml1;
45: }
46:
47: // test get and set
48: public String getHTML() {
49: return html;
50: }
51:
52: public void setHTML(String html) {
53: this .html = html;
54: }
55:
56: // test read only attribute
57: public String getHTMLData() {
58: return html;
59: }
60:
61: // test operation
62: public String retrieveHTMLData() {
63: return html;
64: }
65: }
|