Package com.alibaba.citrus.springext.util.DomUtil

Examples of com.alibaba.citrus.springext.util.DomUtil.ElementSelector.accept()


        for (Element subElement : subElements(ruleElement)) {
            if (conditionSelector.accept(subElement)) {
                conditions.add(parseCondition(subElement, parserContext));
            } else if (substitutionSelector.accept(subElement)) {
                substitution = parseSubstitution(subElement, parserContext);
            } else if (handlersSelector.accept(subElement)) {
                handlers = parseHandlers(subElement, parserContext, ruleBuilder);
            }
        }

        ruleBuilder.addPropertyValue("conditions", conditions);
View Full Code Here


                parseStores(subElement, parserContext, builder);
            } else if (storeMappingsSelector.accept(subElement)) {
                parseStoreMappings(subElement, parserContext, builder);
            } else if (sessionModelEncodersSelector.accept(subElement)) {
                parseSessionModelEncoders(subElement, parserContext, builder);
            } else if (sessionInterceptorsSelector.accept(subElement)) {
                parseSessionInterceptors(subElement, parserContext, builder);
            }
        }
    }
View Full Code Here

        boolean hasGenerator = false;

        for (Element subElement : subElements(element)) {
            if (cookieSelector.accept(subElement)) {
                attributesToProperties(subElement, "config.id.cookie.", builder);
            } else if (urlEncodeSelector.accept(subElement)) {
                attributesToProperties(subElement, "config.id.urlEncode.", builder);
            } else if (!hasGenerator) {
                Object generator = parseConfigurationPointBean(subElement, generatorsConfigurationPoint, parserContext,
                        builder);
View Full Code Here

        List<Object> patterns = createManagedList(element, parserContext);

        for (Element subElement : subElements(element)) {
            if (matchSelector.accept(subElement)) {
                patterns.add(parseMatch(subElement, parserContext, false));
            } else if (matchRegexSelector.accept(subElement)) {
                patterns.add(parseMatch(subElement, parserContext, true));
            }
        }

        builder.addPropertyValue("config.storeMappings.patterns", patterns);
View Full Code Here

                        templateEnginesConfigurationPoint, parserContext, builder);
                engines.put(engine.getBeanName(), engine);
            }

            // mapping
            else if (mappingSelector.accept(subElement)) {
                String ext = normalizeExtension(subElement.getAttribute("extension"));
                String engineName = assertNotNull(trimToNull(subElement.getAttribute("engine")), "engine");

                assertNotNull(ext, "extension");
                assertTrue(!mappings.containsKey(ext), "duplicated extension: %s", ext);
View Full Code Here

        for (Element subElement : subElements(element)) {
            if (escapeSelector.accept(subElement)) {
                rules.add(parseEscape(subElement, parserContext, builder.getRawBeanDefinition(),
                        trimToNull(subElement.getAttribute("type"))));
            } else if (noescapeSelector.accept(subElement)) {
                rules.add(parseEscape(subElement, parserContext, builder.getRawBeanDefinition(), "noescape"));
            }
        }

        builder.addPropertyValue("escapeRules", rules);
View Full Code Here

        List<Object> fields = createManagedList(element, parserContext);

        for (Element subElement : subElements(element)) {
            if (importSelector.accept(subElement)) {
                imports.add(parseImportGroup(subElement, parserContext, groupConfigBuilder));
            } else if (fieldSelector.accept(subElement)) {
                fields.add(parseField(subElement, parserContext, groupConfigBuilder));
            }
        }

        groupConfigBuilder.addPropertyValue("imports", imports);
View Full Code Here

        ElementSelector advancedProperties = and(sameNs(element), name("advanced-properties"));

        for (Element subElement : subElements(element)) {
            if (plugins.accept(subElement)) {
                parsePlugins(subElement, parserContext, builder);
            } else if (advancedProperties.accept(subElement)) {
                parseAdvancedProperties(subElement, parserContext, builder);
            }
        }
    }
View Full Code Here

        ElementSelector encodersSelector = and(sameNs(element), name("encoders")); // request-contexts:encoders

        for (Element subElement : subElements(element)) {
            if (cookieSelector.accept(subElement)) {
                attributesToProperties(subElement, builder);
            } else if (encodersSelector.accept(subElement)) {
                parseEncoders(subElement, parserContext, builder);
            }
        }
    }
View Full Code Here

        ElementSelector encodersSelector = and(sameNs(element), name("encoders")); // request-contexts:encoders

        for (Element subElement : subElements(element)) {
            if (cookieSelector.accept(subElement)) {
                attributesToProperties(subElement, builder);
            } else if (encodersSelector.accept(subElement)) {
                parseEncoders(subElement, parserContext, builder);
            }
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.