Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
TypeFormatter |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright 2004 Jonathan M. Lehr | |
3 | * | |
4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. | |
5 | * You may obtain a copy of the License at | |
6 | * | |
7 | * http://www.apache.org/licenses/LICENSE-2.0 | |
8 | * | |
9 | * 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.rice.kns.web.format; | |
18 | // end Kuali Foundation modification | |
19 | ||
20 | /** | |
21 | * begin Kuali Foundation modification | |
22 | * This class is used to format objects. | |
23 | * end Kuali Foundation modification | |
24 | * | |
25 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
26 | */ | |
27 | 0 | public class TypeFormatter extends Formatter { |
28 | // begin Kuali Foundation modification | |
29 | private static final long serialVersionUID = -7766095355995725855L; | |
30 | // end Kuali Foundation modification | |
31 | ||
32 | public final static String ERROR_KEY = "error.type"; | |
33 | ||
34 | static final String PARSE_MSG = "Unable to parse type "; | |
35 | static final String FORMAT_MSG = "Unable to format type "; | |
36 | ||
37 | protected Object convertToObject(String stringValue) { | |
38 | ||
39 | // TODO Auto-generated method stub | |
40 | 0 | return super.convertToObject(stringValue); |
41 | } | |
42 | ||
43 | public Object format(Object target) { | |
44 | // TODO Auto-generated method stub | |
45 | 0 | return super.formatForPresentation(target); |
46 | } | |
47 | } |