public TreeVisitor getVisitor()

in camel-upgrade-recipes/src/main/java/org/apache/camel/upgrade/camel43/CamelResequenceEIPXmlRecipe.java [77:93]


    public TreeVisitor<?, ExecutionContext> getVisitor() {
        return new XmlIsoVisitor<>() {

            @Override
            public Xml.Tag visitTag(final Xml.Tag tag, final ExecutionContext ctx) {
                Xml.Tag t = super.visitTag(tag, ctx);

                if (XML_RESEQUENCE_STREAM_CONFIG_MATCHER.matches(getCursor())) {
                    t = t.withName("streamConfig");
                } else if (XML_RESEQUENCE_BATCH_CONFIG_MATCHER.matches(getCursor())) {
                    t = t.withName("batchConfig");
                }

                return t;
            }
        };
    }