Package org.brixcms.markup.variable

Examples of org.brixcms.markup.variable.VariableTransformer


import org.brixcms.web.nodepage.toolbar.ToolbarBehavior;

public class PageRenderingPage extends BrixMarkupNodeWebPage {
    public static MarkupSource transform(MarkupSource source, AbstractContainer container) {
        source = new HeadTransformer(source);
        source = new VariableTransformer(source, container);
        source = new TitleTransformer(source, container);
        return source;
    }
View Full Code Here



    public MarkupSource getMarkupSource() {
        MarkupSource source = new PageMarkupSource((AbstractContainer) getModelObject());
        source = new PanelTransformer(source);
        source = new VariableTransformer(source, getModelObject());
        source = new TitleTransformer(source, (AbstractContainer) getModelObject());
        return source;
    }
View Full Code Here

     * Returns collection of possible variable keys for this node.
     */
    public Collection<String> getVariableKeys() {
        Set<String> keys = new HashSet<String>();
        PageMarkupSource source = new PageMarkupSource(this);
        VariableTransformer transfomer = new VariableTransformer(source, this);
        Item i = transfomer.nextMarkupItem();
        while (i != null) {
            if (i instanceof VariableKeyProvider) {
                Collection<String> k = ((VariableKeyProvider) i).getVariableKeys();
                if (k != null) {
                    keys.addAll(k);
                }
            }
            i = transfomer.nextMarkupItem();
        }

        keys.addAll(SitePlugin.get().getGlobalVariableKeys(getSession()));

        return keys;
View Full Code Here

TOP

Related Classes of org.brixcms.markup.variable.VariableTransformer

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.