com.clickntap.tool.bean
Class BeanErrors
java.lang.Object
com.clickntap.tool.bean.BeanErrors
public class BeanErrors
- extends Object
|
Method Summary |
void |
assertBarcode39(String propertyName)
|
void |
assertDataIntegrity(String propertyName,
String className)
|
void |
assertDataIntegrity(String propertyName,
String className,
String classPropertyName)
|
void |
assertEmail(String propertyName)
|
void |
assertEmailIfNotEmpty(String propertyName)
|
void |
assertEmptyList(String propertyName)
|
void |
assertEmptyList(String propertyName,
String propertyErrorName)
|
void |
assertEquals(String propertyName1,
String propertyName2)
|
void |
assertEqualsMD5(String propertyName1,
String propertyName2)
|
void |
assertExists(String propertyName)
|
void |
assertGt(String propertyName1,
String propertyName2)
|
void |
assertImage(String propertyName)
|
void |
assertLt(String propertyName1,
String propertyName2)
|
void |
assertNotEmpty(String propertyName)
|
void |
assertNotNull(String propertyName)
|
void |
assertOnlyLetters(String propertyName)
|
void |
assertPassword(String propertyName)
|
void |
assertPercentage(String propertyName)
|
void |
assertPhoneNumber(String propertyName)
|
void |
assertPhoneNumber(String propertyName,
int maxLen)
|
void |
assertPositive(String propertyName)
|
void |
assertRegExp(String propertyName,
String regExp)
|
void |
assertTaxCode(String propertyName)
|
void |
assertTrue(String propertyName)
|
void |
assertUnique(String propertyName)
|
void |
assertWebName(String propertyName)
|
Object |
getTarget()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanErrors
public BeanErrors(Object target,
org.springframework.validation.Errors errors,
BeanManager beanManager)
getTarget
public Object getTarget()
assertEmptyList
public void assertEmptyList(String propertyName)
throws Exception
- Throws:
Exception
assertEmptyList
public void assertEmptyList(String propertyName,
String propertyErrorName)
throws Exception
- Throws:
Exception
assertBarcode39
public void assertBarcode39(String propertyName)
assertDataIntegrity
public void assertDataIntegrity(String propertyName,
String className)
throws Exception
- Throws:
Exception
assertDataIntegrity
public void assertDataIntegrity(String propertyName,
String className,
String classPropertyName)
throws Exception
- Throws:
Exception
assertWebName
public void assertWebName(String propertyName)
assertTaxCode
public void assertTaxCode(String propertyName)
assertPassword
public void assertPassword(String propertyName)
assertNotNull
public void assertNotNull(String propertyName)
assertNotEmpty
public void assertNotEmpty(String propertyName)
assertEquals
public void assertEquals(String propertyName1,
String propertyName2)
assertEqualsMD5
public void assertEqualsMD5(String propertyName1,
String propertyName2)
throws Exception
- Throws:
Exception
assertImage
public void assertImage(String propertyName)
throws Exception
- Throws:
Exception
assertEmail
public void assertEmail(String propertyName)
throws Exception
- Throws:
Exception
assertPhoneNumber
public void assertPhoneNumber(String propertyName,
int maxLen)
throws Exception
- Throws:
Exception
assertPhoneNumber
public void assertPhoneNumber(String propertyName)
throws Exception
- Throws:
Exception
assertRegExp
public void assertRegExp(String propertyName,
String regExp)
throws Exception
- Throws:
Exception
assertOnlyLetters
public void assertOnlyLetters(String propertyName)
throws Exception
- Throws:
Exception
assertEmailIfNotEmpty
public void assertEmailIfNotEmpty(String propertyName)
throws Exception
- Throws:
Exception
assertPositive
public void assertPositive(String propertyName)
throws Exception
- Throws:
Exception
assertPercentage
public void assertPercentage(String propertyName)
throws Exception
- Throws:
Exception
assertTrue
public void assertTrue(String propertyName)
throws Exception
- Throws:
Exception
assertGt
public void assertGt(String propertyName1,
String propertyName2)
throws Exception
- Throws:
Exception
assertLt
public void assertLt(String propertyName1,
String propertyName2)
throws Exception
- Throws:
Exception
assertUnique
public void assertUnique(String propertyName)
throws Exception
- Throws:
Exception
assertExists
public void assertExists(String propertyName)
throws Exception
- Throws:
Exception
Copyright © 2014. All rights reserved.