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.WEB_SERVICE_DRIVER.getURI(), true);

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

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

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


                CacheRuleConfigurator.getDefaultInstance()
                        .configure(configuration);

                // obtain the namespace rule set that this configuration
                // will populate
                NamespaceRuleSet ruleSet = configuration.getNamespaceRules(
                        Namespace.PIPELINE.getURI(), true);
               
                // add the rule for the content adapter process
                ruleSet.addRule("content", ContentRule.getDefaultInstance());

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

                // add the rules for the URL to URLC process. This has two
                // aliases. The former, which is the original name, is now
                // deprecated as "DMS" is not a valid name in terms of
                // Product Management naming.
                // @todo later delete this deprecated rule when PM deems that it can be removed
                ruleSet.addRule("convertImageURLToDMS",
                                new AbstractAddAdapterRule() {
                                    // javadoc inherited
                                    public AdapterProcess createAdapterProcess(
                                            DynamicProcess dynamicProcess) {
                                        return new URLToURLCAdapterProcess();
                                    }
                                });

                ruleSet.addRule("convertImageURLToTranscoder",
                                new AbstractAddAdapterRule() {
                                    public AdapterProcess createAdapterProcess(
                                            DynamicProcess dynamicProcess) {
                                        return new URLToURLCAdapterProcess();
                                    }
                                });

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


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

                // Add the rules for the try operation.
                TryRuleConfigurator.getDefaultInstance()
                        .configure(configuration);

                // add the rule for the evaluation process
                ruleSet.addRule("evaluate", EvaluateRule.getDefaultInstance());

                // add the debug rules
                ruleSet.addRule("serialize",
                        SerializeRule.getDefaultInstance());

                // add the for-each rule.
                ruleSet.addRule("for-each", ForEachRule.getDefaultInstance());

                // add the rule for value element.
                ruleSet.addRule("value-of", ValueOfRule.getDefaultInstance());

                // Add the rules for DISelect operations.
                DIRulesRegisterer.getDefaultInstance().register(configuration);
            }
        };
View Full Code Here

public final class DefaultDIRulesRegisterer extends DIRulesRegisterer {

    // javadoc inherited
    public void register(DynamicProcessConfiguration dynamicConfiguration) {

        NamespaceRuleSet namespaceRules =
                dynamicConfiguration.getNamespaceRules(
                        Namespace.DISELECT.getURI(),
                        true);

        namespaceRules.addRule("value", ValueOfRule.getDefaultInstance());
    }
View Full Code Here

                                              boolean create) {

        // see if we already have a rule set registered for the
        // given namespace. Calling this method will throw an
        // IllegalArgumentException if the namespaceURI is null.
        NamespaceRuleSet namespaceRules = getNamespaceRules(namespaceURI);

        if (namespaceRules == null && create) {
            // create the NamespaceRuleSet and add it to the map
            namespaceRules = new SimpleNamespaceRuleSet(namespaceURI);
            ruleSets.put(namespaceURI, namespaceRules);
View Full Code Here

            throw new IllegalArgumentException(
                    "element argument cannot be null");
        }
        DynamicElementRule rule = null;
        // retrieve the NamespaceRuleSet for the given namespace
        NamespaceRuleSet namespaceRules =
                getNamespaceRules(element.getNamespaceURI());
        // if a rule set was found then look for a rule.
        if (namespaceRules != null) {
            rule = namespaceRules.getRule(element.getLocalName());
        }
        // return the rule - this may be null
        return rule;
    }
View Full Code Here

        DynamicProcessConfiguration dynamicConfig =
                (DynamicProcessConfiguration)
                config.retrieveConfiguration(DynamicProcessConfiguration.class);

        NamespaceRuleSet namespaceRules =
                dynamicConfig.getNamespaceRules(
                        Namespace.PIPELINE.getURI(),
                        true);
        namespaceRules.addRule("for-each", new ForEachRule());
        return config;
    }
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.URID.getURI(), true);

                // add the rule for the fetch adapter process
                ruleSet.addRule("fetch", FetchRule.getDefaultInstance());
            }
        };
    }
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.GOOGLE_DOCS.getURI(), true);

                // add the rule for the list docs adapter process
                ruleSet.addRule("list-docs", ListDocsRule.getDefaultInstance());

                // add the rule for the authenticate adapter process
                ruleSet.addRule("authenticate", AuthenticateRule.getDefaultInstance());

                ruleSet.addRule("fetch", FetchDocRule.getDefaultInstance());
            }
        };
    }
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.PICASA.getURI(), true);

                // add the rule for the list photos adapter process
                ruleSet.addRule("list-photos", ListPhotosRule.getDefaultInstance());
            }
        };
    }
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.WEB_DRIVER.getURI(), true);

                // add the rule for the parameters adapter process
                addRule(ruleSet, WebDriverElements.PARAMETERS,
                        NoopRule.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.