public static FileExists withFileName(String filename) { return new FileExists(filename); }
@Override public FileExists processElement(ParserContext handlerManager, Element element) throws ConfigurationException { String fileName = $(element).attr(FILENAME); if (StringUtils.isBlank(fileName)) { throw new WindupException("Error, '" + ELEMENT_NAME + "' element must have a non-empty '" + FILENAME + "' attribute"); } return FileExists.withFileName(fileName); } }
@Override public FileExists processElement(ParserContext handlerManager, Element element) throws ConfigurationException { String fileName = $(element).attr(FILENAME); if (StringUtils.isBlank(fileName)) { throw new WindupException("Error, '" + ELEMENT_NAME + "' element must have a non-empty '" + FILENAME + "' attribute"); } return FileExists.withFileName(fileName); } }
public static FileExists withFileName(String filename) { return new FileExists(filename); }