Package com.volantis.xml.pipeline.sax.dynamic

Examples of com.volantis.xml.pipeline.sax.dynamic.NamespaceRuleSet


            // javadoc inherited
            public void configure(DynamicProcessConfiguration configuration) {

                // obtain the namespace rule set that this configuration
                // will populate
                NamespaceRuleSet ruleSet = configuration.getNamespaceRules(
                        Namespace.FLICKR.getURI(), true);

                // add the rule for the list photos adapter process
                ruleSet.addRule("list-photos", ListPhotosRule.getDefaultInstance());
            }
        };
    }
View Full Code Here



                // add the integration specific rules
                // obtain the namespace rule set that this configuration
                // will populate
                NamespaceRuleSet ruleSet = configuration.getNamespaceRules(
                        INTEGRATION.getURI(), true);
           
                // add the rule for the variableDeclaration adapter process
                ruleSet.addRule("variableDeclaration",
                                new AbstractAddAdapterRule() {
                                    // javadoc inherited
                                    public AdapterProcess
                                            createAdapterProcess(DynamicProcess dynamicProcess) {
                                        return new
                                                VariableDeclarationAdapterProcess();
                                    }
                                });

                // add the rule for the variableScope adapter process
                ruleSet.addRule("variableScope",
                                new AbstractAddAdapterRule() {
                                    // javadoc inherited
                                    public AdapterProcess
                                            createAdapterProcess(DynamicProcess dynamicProcess) {
                                        return new
                                                VariableScopeAdapterProcess();
                                    }
                                });               
           
                // add the rule for the counter adapter process
                ruleSet.addRule("counter",
                                new AbstractAddAdapterRule() {
                                    // javadoc inherited
                                    public AdapterProcess
                                            createAdapterProcess(DynamicProcess dynamicProcess) {
                                        return new CounterAdapterProcess(
                                                TestPipelineFactory.this);
                                    }
                                });

                ruleSet.addRule("reenter", new ReenterRule());

                ruleSet.addRule("alternate-complexity", new AlternateComplexityRule());

                // add the generate error rule
                ruleSet.addRule("generateError", new GenerateErrorRule());
               
                // add the FailOnExecute rule
                ruleSet.addRule("failOnExecute", new FailOnExecuteRule());
            }
        };
    }     
View Full Code Here

    Map ruleSets = new HashMap();
   
    // javadoc inherited       
    public NamespaceRuleSet getNamespaceRules(String namespaceURI,
                                              boolean create) {
        NamespaceRuleSet ruleSet = getNamespaceRules(namespaceURI);
        if (null == ruleSet && create) {
            ruleSet = new SimpleNamespaceRuleSet(namespaceURI);
            ruleSets.put(namespaceURI, ruleSet);
        }
        return ruleSet;
View Full Code Here

    }

    // javadoc inherited
    public DynamicElementRule getRule(ExpandedName element) {
        DynamicElementRule rule = null;
        NamespaceRuleSet ruleSet =
                getNamespaceRules(element.getNamespaceURI());
        if (ruleSet != null) {
            rule = ruleSet.getRule(element.getLocalName());
        }
        return rule;
    }
View Full Code Here

            // javadoc inherited
            public void configure(DynamicProcessConfiguration configuration) {

                // obtain the namespace rule set that this configuration
                // will populate
                NamespaceRuleSet ruleSet = configuration.getNamespaceRules(
                        Namespace.SERVLET.getURI(), true);

                // add the rule for the includeServlet operation process
                ruleSet.addRule("includeServlet",
                                new AbstractAddAdapterRule() {
                                    // javadoc inherited
                                    public AdapterProcess
                                            createAdapterProcess(DynamicProcess dynamicProcess) {
                                        return new
                                                IncludeSrvResAdapterProcess();
                                    }
                                });

                // add the rule for the includeJSP operation process
                ruleSet.addRule("includeJSP",
                                new AbstractAddAdapterRule() {
                                    // javadoc inherited
                                    public AdapterProcess
                                            createAdapterProcess(DynamicProcess dynamicProcess) {
                                        return new
View Full Code Here

        DynamicProcessConfiguration dynamicConfiguration =
                (DynamicProcessConfiguration)
                configuration.retrieveConfiguration(DynamicProcessConfiguration.class);

        NamespaceRuleSet ruleSet = dynamicConfiguration.getNamespaceRules(
                Namespace.PIPELINE.getURI(), true);

        ruleSet.addRule("urlRewriter",
                new AbstractAddProcessRule() {
                    protected XMLProcess createProcess(DynamicProcess dynamicProcess,
                                                       ExpandedName elementName,
                                                       Attributes attributes)
                            throws SAXException {
View Full Code Here

                }

                if (rule != null) {
                    // get hold of the rule set for the given namespace (creating
                    // it if it does not exist)
                    NamespaceRuleSet ruleSet =
                                dynamicConfiguration.getNamespaceRules(
                                            namespaceURI, true);
                    // finally add the rule to the rule set
                    ruleSet.addRule(localName, rule);
                }

            }
        }
    }
View Full Code Here

        // These are only required in the XML environment since the JSP
        // environment handles everything in the hand-written JSP tags
        // directly

        // get the NamespaceRulesSet for the empty namespace
        NamespaceRuleSet rules
                = dynamicConfiguration.getNamespaceRules("", true);

        // add the rule for the usePipeline process
        rules.addRule("usePipeline", NoopRule.getDefaultInstance());

        // An alias for the urid:fetch process
        rules.addRule("include", FetchRule.getDefaultInstance());

        // get hold of the rule set for the CDM namespace
        rules = dynamicConfiguration.getNamespaceRules(CDM.getURI(),
                true);


        // add the rule for the usePipeline process
        rules.addRule("usePipeline", NoopRule.getDefaultInstance());

        // An alias for the urid:fetch process
        rules.addRule("include", FetchRule.getDefaultInstance());
    }
View Full Code Here

TOP

Related Classes of com.volantis.xml.pipeline.sax.dynamic.NamespaceRuleSet

Copyright © 2018 www.massapicom. 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.