@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); } }