e.g. Calendar Search Help
You must enter a value before pressing Search
Search Results OK to copy? Examples 1 through 10 of 15 (0.0010 seconds)
Class: org.springframework.beans.propertyeditors.FileEditor  ©, Rating: 0% of 0, C1

32 33 public void setAsText(String text) throws IllegalArgumentException { 34 if (StringUtils.hasText(text)) { 35 setValue(new File(text)); 36 }

Class: org.springframework.beans.propertyeditors.ClassEditor  ©, Rating: 0% of 0, C1

39 40 public void setAsText(String text) throws IllegalArgumentException { 41 if (StringUtils.hasText(text)) { 42 try { 43 setValue(ClassUtils.forName(text.trim()));

Class: org.springframework.beans.propertyeditors.CustomDateEditor  ©, Rating: 0% of 0, C1

66 */ 67 public void setAsText(String text) throws IllegalArgumentException { 68 if (this.allowEmpty && !StringUtils.hasText(text)) { 69 // treat empty String as null value 70 setValue(null);

Class: org.springframework.beans.factory.support.BeanDefinitionReaderUtils  ©, Rating: 0% of 0, C2

097 generatedId = ((ChildBeanDefinition) beanDefinition).getParentName(); 098 } 099 if (!StringUtils.hasText(generatedId)) { 100 throw new BeanDefinitionStoreException(beanDefinition.getResourceDescription(), "", 101 "Unnamed bean definition specifies neither 'class' nor 'parent' - can't generate name");

Class: org.springframework.beans.propertyeditors.CustomNumberEditor  ©, Rating: 0% of 0, C2

104 */ 105 public void setAsText(String text) throws IllegalArgumentException { 106 if (this.allowEmpty && !StringUtils.hasText(text)) { 107 setValue(null); 108 }

Class: org.springframework.beans.propertyeditors.CustomBooleanEditor  ©, Rating: 0% of 0, C3

100 101 public void setAsText(String text) throws IllegalArgumentException { 102 if (this.allowEmpty && !StringUtils.hasText(text)) { 103 setValue(null); 104 }

Class: org.springframework.validation.ValidationUtils  ©, Rating: 0% of 0, C1

163 Errors errors, String field, String errorCode, Object[] errorArgs, String defaultMessage) { 164 Object value = errors.getFieldValue(field); 165 if (value == null ||!StringUtils.hasText(value.toString())) { 166 errors.rejectValue(field, errorCode, errorArgs, defaultMessage); 167 }

Class: org.springframework.util.Assert  ©, Rating: 0% of 0, C1

137 */ 138 public static void hasText(String text, String message) { 139 if (!StringUtils.hasText(text)) { 140 throw new IllegalArgumentException(message); 141 }

Class: org.springframework.validation.DataBinder  ©, Rating: 0% of 0, C3

316 for (int i = 0; i < this.requiredFields.length; i++) { 317 PropertyValue pv = pvs.getPropertyValue(this.requiredFields[i]); 318 if (pv == null || pv.getValue() == null || 319 (pv.getValue() instanceof String && !StringUtils.hasText((String) pv.getValue()))) { 320 // create field error with code "required"

Class: org.springframework.util.StringUtilsTests  ©, Rating: 0% of 0, C1

037 038 public void testHasTextValid() throws Exception { 039 assertEquals(true, StringUtils.hasText("t")); 040 } 041

Result Page:  1.0  |  2.0   Next