1 31 32 package org.opencms.workplace.tools.content.check; 33 34 import java.util.Collections ; 35 import java.util.List ; 36 37 47 public class CmsContentCheckProperetyObject { 48 49 50 public static final String TYPE_BOTH = "both"; 51 52 53 public static final String TYPE_FILE = "file"; 54 55 56 public static final String TYPE_FOLDER = "folder"; 57 58 59 private boolean m_empty; 60 61 62 private boolean m_filename; 63 64 65 private int m_length; 66 67 68 private String m_propertyname; 69 70 71 private String m_type; 72 73 74 private List m_value; 75 76 79 public CmsContentCheckProperetyObject() { 80 81 m_propertyname = null; 82 m_type = TYPE_BOTH; 83 m_empty = false; 84 m_filename = false; 85 m_length = -1; 86 m_value = Collections.EMPTY_LIST; 87 } 88 89 94 public int getLength() { 95 96 return m_length; 97 } 98 99 104 public String getPropertyname() { 105 106 return m_propertyname; 107 } 108 109 114 public String getType() { 115 116 return m_type; 117 } 118 119 124 public List getValue() { 125 126 return m_value; 127 } 128 129 134 public boolean isEmpty() { 135 136 return m_empty; 137 } 138 139 144 public boolean isFilename() { 145 146 return m_filename; 147 } 148 149 154 public void setEmpty(boolean empty) { 155 156 m_empty = empty; 157 } 158 159 164 public void setFilename(boolean filename) { 165 166 m_filename = filename; 167 } 168 169 174 public void setLength(int length) { 175 176 m_length = length; 177 } 178 179 184 public void setPropertyname(String propertyname) { 185 186 m_propertyname = propertyname; 187 } 188 189 194 public void setType(String type) { 195 196 m_type = type; 197 } 198 199 204 public void setValue(List value) { 205 206 m_value = value; 207 } 208 209 213 public String toString() { 214 215 StringBuffer buf = new StringBuffer (); 216 buf.append(this.getClass().getName()); 217 buf.append(" [Propertyname="); 218 buf.append(m_propertyname); 219 buf.append(" Type="); 220 buf.append(m_type); 221 buf.append(" emptycheck="); 222 buf.append(m_empty); 223 buf.append(" filenamecheck="); 224 buf.append(m_filename); 225 buf.append(" min length="); 226 buf.append(m_length); 227 buf.append(" value="); 228 buf.append(m_value); 229 buf.append("]"); 230 return buf.toString(); 231 } 232 233 } 234 | Popular Tags |