/** * Specifies the regular expression to use when searching {@link ClassificationModel} entries. */ public static ClassificationExists withClassification(String classificationPattern) { return new ClassificationExists(classificationPattern); }
@Override public ClassificationExists processElement(ParserContext handlerManager, Element element) throws ConfigurationException { String classificationPattern = $(element).attr(CLASSIFICATION); String in = $(element).attr("in"); if (StringUtils.isBlank(classificationPattern)) { throw new WindupException("Error, '" + ELEMENT_NAME + "' element must have a non-empty '" + CLASSIFICATION + "' attribute"); } ClassificationExists classificationExists = ClassificationExists.withClassification(classificationPattern); return classificationExists.in(in); } }
@Override public ClassificationExists processElement(ParserContext handlerManager, Element element) throws ConfigurationException { String classificationPattern = $(element).attr(CLASSIFICATION); String in = $(element).attr("in"); if (StringUtils.isBlank(classificationPattern)) { throw new WindupException("Error, '" + ELEMENT_NAME + "' element must have a non-empty '" + CLASSIFICATION + "' attribute"); } ClassificationExists classificationExists = ClassificationExists.withClassification(classificationPattern); return classificationExists.in(in); } }
/** * Specifies the regular expression to use when searching {@link ClassificationModel} entries. */ public static ClassificationExists withClassification(String classificationPattern) { return new ClassificationExists(classificationPattern); }