本文整理汇总了Java中org.marc.everest.interfaces.ResultDetailType类的典型用法代码示例。如果您正苦于以下问题:Java ResultDetailType类的具体用法?Java ResultDetailType怎么用?Java ResultDetailType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ResultDetailType类属于org.marc.everest.interfaces包,在下文中一共展示了ResultDetailType类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isValidCDA
import org.marc.everest.interfaces.ResultDetailType; //导入依赖的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.ResultDetailType; //导入依赖的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.ResultDetailType; //导入依赖的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;
}