1 package org.hibernate.validator; 3 4 9 public class InvalidValue { 10 private final String message; 11 private final Object value; 12 private final String propertyName; 13 private final Class beanClass; 14 private final Object bean; 15 16 public InvalidValue(String message, Class beanClass, String propertyName, Object value, Object bean) { 17 this.message = message; 18 this.value = value; 19 this.beanClass = beanClass; 20 this.propertyName = propertyName; 21 this.bean = bean; 22 } 23 24 public Class getBeanClass() { 25 return beanClass; 26 } 27 28 public String getMessage() { 29 return message; 30 } 31 32 public String getPropertyName() { 33 return propertyName; 34 } 35 36 public Object getValue() { 37 return value; 38 } 39 40 public Object getBean() { 41 return bean; 42 } 43 44 public String toString() { 45 return propertyName + ' ' + message; 46 } 47 48 } 49 | Popular Tags |