public class Validator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
additionalFailureMessage
optional, such as: the second character of '2a10' is not a number.
|
protected String |
description
such as: must be number
|
protected Boolean |
result
pass or fail
|
protected Object |
target
save the target object.
|
| Constructor and Description |
|---|
Validator() |
protected Object target
protected String description
protected Boolean result
protected String additionalFailureMessage
public void validate(Object target)
public void validate()
public Boolean getResult()
public String getDescription()
public void setDescription(String description)
public Object getTarget()
public void setTarget(Object target)
Copyright © 2015. All Rights Reserved.