List of usage examples for org.springframework.integration.config.xml IntegrationNamespaceUtils createElementDescription
public static String createElementDescription(Element element)
From source file:org.springframework.integration.config.xml.ChainParser.java
private void validateChild(Element element, ParserContext parserContext) { final Object source = parserContext.extractSource(element); final String order = element.getAttribute(IntegrationNamespaceUtils.ORDER); if (StringUtils.hasText(order)) { parserContext.getReaderContext().error(IntegrationNamespaceUtils.createElementDescription(element) + " must not define " + "an 'order' attribute when used within a chain.", source); }//from w ww .j av a 2s. c o m final List<Element> pollerChildElements = DomUtils.getChildElementsByTagName(element, "poller"); if (!pollerChildElements.isEmpty()) { parserContext.getReaderContext().error(IntegrationNamespaceUtils.createElementDescription(element) + " must not define " + "a 'poller' sub-element when used within a chain.", source); } }