Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/GWT_Sandbox/FormEngine/src/com/temp/shared/validators/Only7BitAlphaNumericUnderScoreValueValidator.java

Diff revisions: vs.
  @@ -17,17 +17,17 @@
17 17 }
18 18
19 19 @Override
20 - public E13nData checkValue(Object value) {
21 - if (!(value instanceof String)) {
22 - return new E13nData(TEMPLATE_ID_CODE).addSubstitutionNamedSubTemplateIdCode(TEMPLATE_NAME_WHY, SUBTEMPLATE_WHY_NOT_STRING);
20 + public E13nData checkValue( Object value ) {
21 + if ( !(value instanceof String) ) {
22 + return new E13nData( TEMPLATE_ID_CODE ).addSubstitutionNamedSubTemplateIdCode( TEMPLATE_NAME_WHY, SUBTEMPLATE_WHY_NOT_STRING );
23 23 }
24 24 String userData = value.toString().trim();
25 - if (userData.length() == 0) {
26 - return new E13nData(TEMPLATE_ID_CODE).addSubstitutionNamedSubTemplateIdCode(TEMPLATE_NAME_WHY, SUBTEMPLATE_WHY_EMPTY_STRING);
25 + if ( userData.length() == 0 ) {
26 + return new E13nData( TEMPLATE_ID_CODE ).addSubstitutionNamedSubTemplateIdCode( TEMPLATE_NAME_WHY, SUBTEMPLATE_WHY_EMPTY_STRING );
27 27 }
28 - for (int i = 0; i < userData.length(); i++) {
29 - char c = userData.charAt(i);
30 - if ( !CharacterUtils.isAlphaNumericUnderScore7BitAscii(c) ) {
28 + for ( int i = 0; i < userData.length(); i++ ) {
29 + char c = userData.charAt( i );
30 + if ( !CharacterUtils.isAlphaNumericUnderScore7BitAscii( c ) ) {
31 31
32 32 }
33 33 }