001/** 002 * Copyright 2010-2014 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 */ 016package org.kuali.common.util.metainf; 017 018import java.io.File; 019import java.util.List; 020 021import org.kuali.common.util.CollectionUtils; 022 023/** 024 * @deprecated 025 */ 026@Deprecated 027public class MetaInfContext { 028 029 /** 030 * These default values help ensure backwards compatibility with deprecated config classes using MetaInfContext 031 */ 032 public static final String DEFAULT_PREFIX = "classpath:"; 033 public static final boolean DEFAULT_SORT = true; 034 035 String prefix = DEFAULT_PREFIX; 036 boolean sort = DEFAULT_SORT; 037 File baseDir; 038 File outputFile; 039 List<String> includes; 040 List<String> excludes; 041 boolean addPropertiesFile; 042 boolean addLineCount; 043 044 public File getBaseDir() { 045 return baseDir; 046 } 047 048 public void setBaseDir(File baseDir) { 049 this.baseDir = baseDir; 050 } 051 052 public File getOutputFile() { 053 return outputFile; 054 } 055 056 public void setOutputFile(File outputFile) { 057 this.outputFile = outputFile; 058 } 059 060 public String getPrefix() { 061 return prefix; 062 } 063 064 public void setPrefix(String prefix) { 065 this.prefix = prefix; 066 } 067 068 public boolean isSort() { 069 return sort; 070 } 071 072 public void setSort(boolean sort) { 073 this.sort = sort; 074 } 075 076 public List<String> getIncludes() { 077 return includes; 078 } 079 080 public void setIncludes(List<String> includes) { 081 this.includes = includes; 082 } 083 084 public List<String> getExcludes() { 085 return excludes; 086 } 087 088 public void setExcludes(List<String> excludes) { 089 this.excludes = excludes; 090 } 091 092 public boolean isAddPropertiesFile() { 093 return addPropertiesFile; 094 } 095 096 public void setAddPropertiesFile(boolean addPropertiesFile) { 097 this.addPropertiesFile = addPropertiesFile; 098 } 099 100 public boolean isAddLineCount() { 101 return addLineCount; 102 } 103 104 public void setAddLineCount(boolean addLineCount) { 105 this.addLineCount = addLineCount; 106 } 107 108 @Override 109 public String toString() { 110 StringBuilder sb = new StringBuilder(); 111 112 sb.append("addPropertiesFile: ").append(addPropertiesFile); 113 sb.append("addLineCount: ").append(addLineCount); 114 sb.append("includes: ").append(CollectionUtils.getCSV(getIncludes())); 115 sb.append("excludes: ").append(CollectionUtils.getCSV(getExcludes())); 116 sb.append("output: ").append(outputFile.toString()); 117 sb.append("basedir: ").append(baseDir.toString()); 118 sb.append("prefix: ").append(prefix); 119 sb.append("sort: ").append(sort); 120 121 return sb.toString(); 122 } 123}