/** * Use the given message regular expression to match against {@link InlineHintModel#getHint()} property. */ public static HintExists withMessage(String messagePattern) { return new HintExists(messagePattern); }
@Override public HintExists processElement(ParserContext handlerManager, Element element) throws ConfigurationException { String messagePattern = $(element).attr(MESSAGE); String in = $(element).attr("in"); if (StringUtils.isBlank(messagePattern)) { throw new WindupException("Error, '" + ELEMENT_NAME + "' element must have a non-empty '" + MESSAGE + "' attribute"); } HintExists hintExists = HintExists.withMessage(messagePattern); return hintExists.in(in); } }
@Override public HintExists processElement(ParserContext handlerManager, Element element) throws ConfigurationException { String messagePattern = $(element).attr(MESSAGE); String in = $(element).attr("in"); if (StringUtils.isBlank(messagePattern)) { throw new WindupException("Error, '" + ELEMENT_NAME + "' element must have a non-empty '" + MESSAGE + "' attribute"); } HintExists hintExists = HintExists.withMessage(messagePattern); return hintExists.in(in); } }
/** * Use the given message regular expression to match against {@link InlineHintModel#getHint()} property. */ public static HintExists withMessage(String messagePattern) { return new HintExists(messagePattern); }