本文整理汇总了Java中org.marc.everest.interfaces.IResultDetail.getType方法的典型用法代码示例。如果您正苦于以下问题:Java IResultDetail.getType方法的具体用法?Java IResultDetail.getType怎么用?Java IResultDetail.getType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.marc.everest.interfaces.IResultDetail
的用法示例。
在下文中一共展示了IResultDetail.getType方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isValidCDA
import org.marc.everest.interfaces.IResultDetail; //导入方法依赖的package包/类
public static Boolean isValidCDA(IFormatterGraphResult details) {
Boolean result = true;
for(IResultDetail dtl : details.getDetails()) {
if(!EverestUtils.isNullorEmptyorWhitespace(dtl.getMessage())) {
if(dtl.getType() == ResultDetailType.INFORMATION) {
log.info(dtl.getMessage());
} else if (dtl.getType() == ResultDetailType.WARNING) {
log.warn(dtl.getMessage());
} else {
log.error(dtl.getMessage(), dtl.getException());
}
}
result = false;
}
return result;
}
示例2: isValidCDAGraph
import org.marc.everest.interfaces.IResultDetail; //导入方法依赖的package包/类
/**
* Checks if graph operation on CDA is valid.
*
* @param details the details
* @return true if valid, false otherwise
*/
public static Boolean isValidCDAGraph(final IFormatterGraphResult details) {
Boolean result = true;
for(IResultDetail dtl : details.getDetails()) {
if(dtl.getType() == ResultDetailType.INFORMATION) {
log.info(dtl.getMessage());
} else if (dtl.getType() == ResultDetailType.WARNING) {
log.warn(dtl.getMessage());
} else {
log.error(dtl.getMessage());
}
result = false;
}
return result;
}
示例3: isValidCDAParse
import org.marc.everest.interfaces.IResultDetail; //导入方法依赖的package包/类
/**
* Checks if parse operation on CDA is valid.
*
* @param details the details
* @return true if valid, false otherwise
*/
public static Boolean isValidCDAParse(final IFormatterParseResult details) {
Boolean result = true;
for(IResultDetail dtl : details.getDetails()) {
if(dtl.getType() == ResultDetailType.INFORMATION) {
log.info(dtl.getMessage());
} else if (dtl.getType() == ResultDetailType.WARNING) {
log.warn(dtl.getMessage());
} else {
log.error(dtl.getMessage());
}
result = false;
}
return result;
}