Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
PartNameConverter |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright (c) 2009, Swiss Federal Department of Defence Civil Protection and Sport | |
3 | * (http://www.vbs.admin.ch) | |
4 | * Copyright (c) 2009, Ergon Informatik AG (http://www.ergon.ch) | |
5 | * All rights reserved. | |
6 | * | |
7 | * Licensed under the Open Permis License which accompanies this distribution, | |
8 | * and is available at http://www.openpermis.org/BSDlicenceKent.txt | |
9 | */ | |
10 | package org.openpermis.editor.policy.gui.binding; | |
11 | ||
12 | import org.jdesktop.beansbinding.Converter; | |
13 | ||
14 | ||
15 | /** | |
16 | * Converter that converts {@link String} to {@link String} and vice versa. | |
17 | * @since 0.1.0 | |
18 | */ | |
19 | 0 | public class PartNameConverter extends Converter<String, String> |
20 | { | |
21 | ||
22 | //---- Converter | |
23 | ||
24 | /** | |
25 | * @note Add name validity rule and auto-extensions here. | |
26 | * @since 0.1.0 | |
27 | */ | |
28 | @Override | |
29 | public String convertForward (String value) { | |
30 | 0 | return value; |
31 | } | |
32 | ||
33 | /** | |
34 | * @note Add name validity rule and auto-extensions here. | |
35 | * @since 0.1.0 | |
36 | */ | |
37 | @Override | |
38 | public String convertReverse (String value) { | |
39 | 0 | return value; |
40 | } | |
41 | ||
42 | } |