1 /**
2 * Copyright 2010-2012 The Kuali Foundation
3 *
4 * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
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, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package org.kuali.common.util.spring;
17
18 public class ToStringContext {
19
20 // The location to convert into a string
21 String location;
22
23 // The encoding for the content in that location
24 String encoding;
25
26 // If true, the content is trimmed before returning
27 boolean trim;
28
29 // If true, the location (if it is a file) is deleted after being read in
30 boolean delete;
31
32 public String getLocation() {
33 return location;
34 }
35
36 public void setLocation(String location) {
37 this.location = location;
38 }
39
40 public String getEncoding() {
41 return encoding;
42 }
43
44 public void setEncoding(String encoding) {
45 this.encoding = encoding;
46 }
47
48 public boolean isTrim() {
49 return trim;
50 }
51
52 public void setTrim(boolean trim) {
53 this.trim = trim;
54 }
55
56 public boolean isDelete() {
57 return delete;
58 }
59
60 public void setDelete(boolean delete) {
61 this.delete = delete;
62 }
63 }