001 /**
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017 package org.apache.camel.example.model;
018
019 import java.io.Serializable;
020
021 public class Report implements Serializable {
022
023 private static final long serialVersionUID = 1L;
024
025 private Integer id;
026 private String title;
027 private String content;
028 private String reply;
029
030 /**
031 * @return the id
032 */
033 public Integer getId() {
034 return id;
035 }
036
037 /**
038 * @param id the id to set
039 */
040 public void setId(Integer id) {
041 this.id = id;
042 }
043
044 /**
045 * @return the title
046 */
047 public String getTitle() {
048 return title;
049 }
050
051 /**
052 * @param title the title to set
053 */
054 public void setTitle(String title) {
055 this.title = title;
056 }
057
058 /**
059 * @return the content
060 */
061 public String getContent() {
062 return content;
063 }
064
065 /**
066 * @param content the content to set
067 */
068 public void setContent(String content) {
069 this.content = content;
070 }
071
072 /**
073 * @return the reply
074 */
075 public String getReply() {
076 return reply;
077 }
078
079 /**
080 * @param reply the reply to set
081 */
082 public void setReply(String reply) {
083 this.reply = reply;
084 }
085
086 public String toString() {
087 StringBuilder result = new StringBuilder();
088 result.append(">> ***********************************************" + "\n");
089 result.append(">> Report id : " + this.id + "\n");
090 result.append(">> Report title : " + this.title + "\n");
091 result.append(">> Report content : " + this.content + "\n");
092 result.append(">> Report reply : " + this.reply + "\n");
093 result.append(">> ***********************************************" + "\n");
094 return result.toString();
095 }
096 }