Package com.volantis.mcs.wbsax

Examples of com.volantis.mcs.wbsax.ElementNameFactory


        strings = new StringFactory(codec);
        s_x = strings.create("s x");
        s_y = strings.create("s y");

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

        attributes = new AttributeStartFactory();
        attributes.registerAttributeStart(3, "a");
View Full Code Here


    protected StringReferenceFactory references;

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

        urlListener = new TestURLListener();
       
        wbdomFactory = new DissectableWBDOMFactory(conf);

        // Register the codes used in the input files
        elementNames = new ElementNameFactory();
        elementNames.registerElement( 0, "root");
        elementNames.registerElement( 1, "b");
        elementNames.registerElement( 2, "br");
        conf.registerEmptyElement(    2, "br");    // set BR as empty
        elementNames.registerElement( 3, "p");
View Full Code Here

    private static String mark = "(c) Volantis Systems Ltd 2003.";

    protected void initialise() {
        CharsetCode charset = new CharsetCode(3, "US-ASCII");
        codec.setCharset(charset);
        elements = new ElementNameFactory();
        elements.registerElement(0x5, "BR");
        elements.registerElement(0x6, "CARD");
        elements.registerElement(0x7, "XYZ");
    }
View Full Code Here

    // Inherit Javadoc.
    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

    private static String mark = "(c) Volantis Systems Ltd 2003.";

    protected void initialise() {
        CharsetCode charset = new CharsetCode(0x6A, "UTF-8");
        codec.setCharset(charset);
        elements = new ElementNameFactory();
        elements.registerElement(0x5, "CARD");
        elements.registerElement(0x6, "INPUT");
        elements.registerElement(0x7, "XYZ");
        elements.registerElement(0x8, "DO");
       
View Full Code Here

                new DissectableWBDOMFactory(conf);
        DissectionWBSAXParser parser =
                new DissectionWBSAXParser(wbdomFactory, conf);

        // Register the codes used in the input file
        ElementNameFactory elementNames = new ElementNameFactory();
        elementNames.registerElement(0, "root");
        elementNames.registerElement(1, "p");
        elementNames.registerElement(2, "div");
        elementNames.registerElement(4, "dl");
        elementNames.registerElement(5, "dt");
        elementNames.registerElement(6, "dd");
        elementNames.registerElement(7, "a");
        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();
       
View Full Code Here

        cardElements.add("onevent");
        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.ElementNameFactory

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.