Package com.volantis.xml.namespace

Examples of com.volantis.xml.namespace.ImmutableExpandedName


    // javadoc inherited
    protected void registerExpressionFunctions(ExpressionContext context) {
        //add a new function capable of returning an empty sequence.
        context.registerFunction(
            new ImmutableExpandedName("", "empty-sequence"),
            new Function() {
                public Value invoke(ExpressionContext context, Value[] args) {
                    return Sequence.EMPTY;
                }
            });
View Full Code Here


    protected void registerExpressionFunctions(
            ExpressionContext expressionContext) {
        super.registerExpressionFunctions(expressionContext);

        expressionContext.registerFunction(
                new ImmutableExpandedName("", "sequence"),
                new SequenceBuilderFunction());
    }
View Full Code Here

     * @return The name.
     */
    protected static ImmutableExpandedName createExpandedName(
            final String localName) {
        String namespaceURI = WEB_DRIVER_NAMESPACE;
        return new ImmutableExpandedName(namespaceURI, localName);
    }
View Full Code Here

public class IndexOfFunctionTestCase extends PipelineTestAbstract {


    // javadoc inherited
    public void registerExpressionFunctions(ExpressionContext context) {
        context.registerFunction(new ImmutableExpandedName(
                Namespace.PIPELINE.getURI(), "index-of"),
                new IndexOfFunction()
        );
    }
View Full Code Here

     * Tests the {@link AbstractAddAdapterRule#startElement} method
     * @throws Exception if an error occurs
     */
    public void testStartElement() throws Exception {
        // create an expanded name       
        ExpandedName eName = new ImmutableExpandedName("testNamespace",
                                                       "testLocalName");
        Attributes atts = new AttributesImpl();       
       
        XMLPipeline pipeline = dynamicProcess.getPipeline();       
       
View Full Code Here

        // retrieve the pipeline
        XMLPipeline pipeline = dynamicProcess.getPipeline();
        // add a process to the head of the pipeline       
        pipeline.addHeadProcess(adapterProcess);
           
        ExpandedName eName = new ImmutableExpandedName("testNamespace",
                                                       "testLocalName");
   
        // call end element on the rule
        rule.endElement(dynamicProcess, eName, adapterProcess);
       
View Full Code Here

        XMLPipeline pipeline = dynamicProcess.getPipeline();
        // add the process to the head of the pipeline       
        pipeline.addHeadProcess(adapterProcess);       
       
        // create an expanded name       
        ExpandedName eName = new ImmutableExpandedName("testNamespace",
                                                       "testLocalName");
       
        try {
            // call end element on the rule
            rule.endElement(dynamicProcess, eName, new MockAdapterProcess());
View Full Code Here

    public static final ImmutableExpandedName VALUE = createName("value");
    public static final ImmutableExpandedName FROM = createName("from");
    public static final ImmutableExpandedName TARGET = createName("target");

    private static ImmutableExpandedName createName(String localName) {
        return new ImmutableExpandedName(Namespace.WEB_DRIVER.getURI(),
                localName);
    }
View Full Code Here

     * Tests the {@link AbstractAddProcessRule#startElement} method
     * @throws Exception if an error occurs
     */
    public void testStartElement() throws Exception {
        // create an expanded name       
        ExpandedName eName = new ImmutableExpandedName("testNamespace",
                                                       "testLocalName");

        Attributes atts = createStartElementAttributes();

        XMLPipeline pipeline = dynamicProcess.getPipeline();                      
View Full Code Here

    public void testEndElement() throws Exception {
        // retrieve the pipeline
        XMLPipeline pipeline = dynamicProcess.getPipeline();

        // create an expanded name
        ExpandedName eName = new ImmutableExpandedName("testNamespace",
                                                       "testLocalName");

        // ask the rule to create a process
        XMLProcess process = rule.createProcess(dynamicProcess,
                                                eName,
View Full Code Here

TOP

Related Classes of com.volantis.xml.namespace.ImmutableExpandedName

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.