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