public class ValidateResultImpl extends Object implements ValidateResult
Constructor and Description |
---|
ValidateResultImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addError(ErrorDescription errorDescription)
添加错误描述
|
void |
addError(String name,
String errorInfo)
添加错误
|
List<ErrorDescription> |
getErrorList()
返回所有的错误信息
|
boolean |
hasError()
返回是否有错误
|
String |
toString() |
public void addError(String name, String errorInfo)
ValidateResult
addError
in interface ValidateResult
public void addError(ErrorDescription errorDescription)
ValidateResult
addError
in interface ValidateResult
public List<ErrorDescription> getErrorList()
ValidateResult
getErrorList
in interface ValidateResult
public boolean hasError()
ValidateResult
hasError
in interface ValidateResult
Copyright © 2006–2018 TinyGroup. All rights reserved.