Product.java 文件源码

java
阅读 28 收藏 0 点赞 0 评论 0

项目:dwoss 作者:
/**
 * 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);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号