1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.datadictionary; |
17 | |
|
18 | |
import org.kuali.rice.kns.datadictionary.validation.constraint.ValidCharactersConstraint; |
19 | |
import org.kuali.student.datadictionary.dto.ValidCharactersConstraintInfo; |
20 | |
|
21 | |
|
22 | |
|
23 | |
|
24 | |
|
25 | 155 | public class Rice2StudentValidCharactersConstraintConverter { |
26 | |
|
27 | 1 | private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(Rice2StudentValidCharactersConstraintConverter.class); |
28 | |
|
29 | |
public ValidCharactersConstraintInfo convert(ValidCharactersConstraint rice) { |
30 | 155 | ValidCharactersConstraintInfo.Builder bldr = new ValidCharactersConstraintInfo.Builder(); |
31 | 155 | bldr.setApplyClientSide(rice.getApplyClientSide()); |
32 | 155 | bldr.setJsValue(rice.getJsValue()); |
33 | 155 | bldr.setLabelKey(rice.getLabelKey()); |
34 | 155 | bldr.setValue (rice.getValue()); |
35 | 155 | return bldr.build(); |
36 | |
} |
37 | |
} |