Package com.volantis.mcs.xml.schema.model

Examples of com.volantis.mcs.xml.schema.model.ContentModel


        // Initialise the content models for the elements.
        MIXED_TEXT = bounded(choice()
                .add(PCDATA)
                .add(TEXT));

        ContentModel MIXED_FLOW_LIST = bounded(choice()
                .add(PCDATA)
                .add(FLOW)
                .add(LIST));

        MIXED_FLOW = bounded(choice()
                .add(PCDATA)
                .add(FLOW));

        ContentModel LIST_CONTENT = sequence()
                .add(bounded(label).optional())
                .add(bounded(li).atLeastOne());

        // Set the content models for the elements.
        a.setContentModel(MIXED_TEXT);
View Full Code Here


            .add(calendar_display);

        // Some of the elements can contain arbitary text but not widget
        // controls, possibly because they are nested within controls
        // themselves.
        ContentModel MIXED_TEXT_EXCLUDING_CONTROLS =
                wrapper(xhtml2.MIXED_TEXT).exclude(WIDGET_CONTROLS);

        button.setContentModel(MIXED_TEXT_EXCLUDING_CONTROLS);
        display.setContentModel(EMPTY);
        dismiss.setContentModel(MIXED_TEXT_EXCLUDING_CONTROLS);
View Full Code Here

//        // Exclude any form controls from appearing within other form elements
//        // that can contain text.
//         UI_INLINE.exclude(FORM_CONTROLS);

        // (PCDATA|UI_INLINE)*
        ContentModel MIXED_UI_INLINE = bounded(
                choice().add(PCDATA).add(UI_INLINE));

        label.setContentModel(MIXED_UI_INLINE);

        // label, (UI_COMMON)*
 
View Full Code Here

TOP

Related Classes of com.volantis.mcs.xml.schema.model.ContentModel

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.