/**
* Returns null if the instance is valid, or a string representing the error.
* <p>
* @return null if the instance is valid, or a string representing the error.
*/
@Null(message = "ViolationMessage is not null, but '${validatedValue}'")
public String getViolationMessage() {
if ( tradeName == null ) return null;
if ( !tradeName.isBrand() ) return tradeName + " is not a Brand";
if ( tradeName.getManufacturer().getPartNoSupport() == null ) return null; // No Support, so everything is ok.
return tradeName.getManufacturer().getPartNoSupport().violationMessages(partNo);
}
Product.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:dwoss
作者:
评论列表
文章目录