| 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 | 0 | public class Rice2StudentValidCharactersConstraintConverter { |
| 26 | |
|
| 27 | 0 | private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(Rice2StudentValidCharactersConstraintConverter.class); |
| 28 | |
|
| 29 | |
public ValidCharactersConstraintInfo convert(ValidCharactersConstraint rice) { |
| 30 | 0 | ValidCharactersConstraintInfo.Builder bldr = new ValidCharactersConstraintInfo.Builder(); |
| 31 | 0 | bldr.setApplyClientSide(rice.getApplyClientSide()); |
| 32 | 0 | bldr.setJsValue(rice.getJsValue()); |
| 33 | 0 | bldr.setLabelKey(rice.getLabelKey()); |
| 34 | 0 | bldr.setValue (rice.getValue()); |
| 35 | 0 | return bldr.build(); |
| 36 | |
} |
| 37 | |
} |