001    /**
002     * Copyright 2010-2012 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.common.util.spring;
017    
018    public class ToStringContext {
019    
020            // The location to convert into a string
021            String location;
022    
023            // The encoding for the content in that location
024            String encoding;
025    
026            // If true, the content is trimmed before returning
027            boolean trim;
028    
029            // If true, the location (if it is a file) is deleted after being read in
030            boolean delete;
031    
032            public String getLocation() {
033                    return location;
034            }
035    
036            public void setLocation(String location) {
037                    this.location = location;
038            }
039    
040            public String getEncoding() {
041                    return encoding;
042            }
043    
044            public void setEncoding(String encoding) {
045                    this.encoding = encoding;
046            }
047    
048            public boolean isTrim() {
049                    return trim;
050            }
051    
052            public void setTrim(boolean trim) {
053                    this.trim = trim;
054            }
055    
056            public boolean isDelete() {
057                    return delete;
058            }
059    
060            public void setDelete(boolean delete) {
061                    this.delete = delete;
062            }
063    }