01: /*
02: * Copyright 2004 Jonathan M. Lehr
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
05: * You may obtain a copy of the License at
06: *
07: * http://www.apache.org/licenses/LICENSE-2.0
08: *
09: * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS"
10: * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language
11: * governing permissions and limitations under the License.
12: *
13: * MODIFIED BY THE KUALI FOUNDATION
14: */
15:
16: // begin Kuali Foundation modification
17: package org.kuali.core.web.format;
18:
19: // end Kuali Foundation modification
20:
21: /**
22: * begin Kuali Foundation modification
23: * This class is used to format objects.
24: * end Kuali Foundation modification
25: *
26: * @author Kuali Rice Team (kuali-rice@googlegroups.com)
27: */
28: public class TypeFormatter extends Formatter {
29: // begin Kuali Foundation modification
30: private static final long serialVersionUID = -7766095355995725855L;
31: // end Kuali Foundation modification
32:
33: public final static String ERROR_KEY = "error.type";
34:
35: static final String PARSE_MSG = "Unable to parse type ";
36: static final String FORMAT_MSG = "Unable to format type ";
37:
38: protected Object convertToObject(String stringValue) {
39:
40: // TODO Auto-generated method stub
41: return super .convertToObject(stringValue);
42: }
43:
44: public Object format(Object target) {
45: // TODO Auto-generated method stub
46: return super.formatForPresentation(target);
47: }
48: }
|