Example usage for org.springframework.integration.config.xml IntegrationNamespaceUtils createElementDescription

List of usage examples for org.springframework.integration.config.xml IntegrationNamespaceUtils createElementDescription

Introduction

In this page you can find the example usage for org.springframework.integration.config.xml IntegrationNamespaceUtils createElementDescription.

Prototype

public static String createElementDescription(Element element) 

Source Link

Document

Provides a user friendly description of an element based on its node name and, if available, its "id" attribute value.

Usage

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