/**
* Instance Validation. Validates: value brand is a brand.
* <p>
* @return null if valid, or a error message
*/
@Null(message = "ViolationMessage is not null, but '${validatedValue}'")
public String getViolationMessage() {
if ( brand != null && !brand.isBrand() ) return brand.getName() + " is not a Brand";
return null;
}
ProductSeries.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:dwoss
作者:
评论列表
文章目录