Package com.volantis.mcs.wbsax

Examples of com.volantis.mcs.wbsax.AttributeStartFactory


        elements = new ElementNameFactory();
        elements.registerElement(2, "e");
        e = elements.create("e");

        attributes = new AttributeStartFactory();
        attributes.registerAttributeStart(3, "a");
        attributes.registerAttributeStart(4, "b");
        attributes.registerAttributeStart(5, "accesskey"); // filter needs this
        a = attributes.create("a", null);
        b = attributes.create("b", null);
View Full Code Here


        optimiser.setPageContext(getPageContext());
        optimiser.startDocument(versionCode, publicIdCode, codec, stringTable,
                strings);
       
        // Send a href event to optimiser
        AttributeStartFactory attributeStartFactory = new AttributeStartFactory();
        TokenTable tokenTable = new WMLVersion1_1TokenTable();
        tokenTable.registerAttrStarts(attributeStartFactory);
        AttributeStartCode hrefStartCode
             = attributeStartFactory.create("href", null);
        optimiser.addAttribute(hrefStartCode);
       
        // send url to optimiser
        optimiser.addAttributeValue(new WBSAXString(codec,
            "http://www.my.com/page.jsp;jsessionid=123?parm=value#ref"));
       
        // Send a title event to optimiser
        AttributeStartCode titleStartCode
            = attributeStartFactory.create("title", null);
        optimiser.addAttribute(titleStartCode);
       
        // Send the value of the title to optimiser
        optimiser.addAttributeValue(new WBSAXString(codec, "my title"));
View Full Code Here

    public WBSAXTestData() {
        codec = new Codec();
        publicIds = new PublicIdFactory();
        elements = new ElementNameFactory();
        attrStarts = new AttributeStartFactory();
        attrValues = new AttributeValueFactory();
        if (requiresStringTable()) {
            stringTable = new StringTable();
        }
        strings = new StringFactory(codec);
View Full Code Here

        elementNames.registerElement( 7, "div");
        elementNames.registerElement( 8, "dl");
        elementNames.registerElement( 9, "dt");
        elementNames.registerElement(10, "dd");

        attrStarts = new AttributeStartFactory();
        attrStarts.registerAttributeStart(20, "attribute");
        attrStarts.registerAttributeStart(21, "href");

        charset = new CharsetCode(0x6A, "UTF-8");
        codec = new Codec(charset);
View Full Code Here

    protected void initialise() {
        CharsetCode charset = new CharsetCode(0x6A, "UTF-8");
        codec.setCharset(charset);
        elements = new ElementNameFactory();
       
        attrStarts = new AttributeStartFactory();
       
        attrValues = new AttributeValueFactory();
    }
View Full Code Here

        elements.registerElement(0x5, "CARD");
        elements.registerElement(0x6, "INPUT");
        elements.registerElement(0x7, "XYZ");
        elements.registerElement(0x8, "DO");
       
        attrStarts = new AttributeStartFactory();
        attrStarts.registerAttributeStart(0x5, "STYLE", "LIST");
        attrStarts.registerAttributeStart(0x6, "TYPE");
        attrStarts.registerAttributeStart(0x7, "TYPE", "TEXT");
        attrStarts.registerAttributeStart(0x8, "URL", "http://");
        attrStarts.registerAttributeStart(0x9, "NAME");
View Full Code Here

        conf.registerAtomicElement7);
        conf.registerUrlAttribute(      "a", "href");
        elementNames.registerElement(8, "br");
        conf.registerEmptyElement(   8, "br");
        elementNames.registerElement(9, "address"); // for testing empty element type
        AttributeStartFactory attrStarts = new AttributeStartFactory();
        attrStarts.registerAttributeStart(20, "href");

        SerialisationURLListener urlListener = new TestURLListener();
       
        CharsetCode charset = new CharsetCode(0x6A, "UTF-8");
        Codec codec = new Codec(charset);
View Full Code Here

        cardElements.add("timer");
        cardElements.add("do");
        cardElements.add(WMLConstants.BLOCH_ELEMENT);

        elementNameFactory = new ElementNameFactory();
        attributeStartFactory = new AttributeStartFactory();
        attributeValueFactory = new AttributeValueFactory();

        hrefRuleSet = new WmlRuleSet();
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.wbsax.AttributeStartFactory

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.