Package com.volantis.mcs.xdime.initialisation

Examples of com.volantis.mcs.xdime.initialisation.ElementFactory


public class TickerResponseElementHandler extends ElementFactoryMapPopulator {

    // Javadoc inherited.
    public void populateMap(ElementFactoryMapBuilder builder) {

        builder.addMapping(TickerResponseElements.FEED_POLLER, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new FeedPollerElement(context);
             }
        });

        builder.addMapping(TickerResponseElements.ADD_ITEM, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new AddItemElement(context);
            }
        });

        builder.addMapping(TickerResponseElements.TITLE, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new TitleElement(context);
            }
        });

        builder.addMapping(TickerResponseElements.ICON, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new IconElement(context);
            }
        });

        builder.addMapping(TickerResponseElements.DESCRIPTION, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new DescriptionElement(context);
            }
        });

        builder.addMapping(TickerResponseElements.PLAIN_DESCRIPTION, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new PlainDescriptionElement(context);
            }
        });

        builder.addMapping(TickerResponseElements.REMOVE_ITEM, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new RemoveItemElement(context);
            }
        });

        builder.addMapping(TickerResponseElements.SET_SKIP_TIMES, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new SetSkipTimesElement(context);
            }
        });

        builder.addMapping(TickerResponseElements.SKIP_TIME, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new SkipTimeElement(context);
            }
        });

        builder.addMapping(TickerResponseElements.SET_URL, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new SetURLElement(context);
            }
        });

        builder.addMapping(TickerResponseElements.SET_POLLING_INTERVAL, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new SetPollingIntervalElement(context);
            }
        });
View Full Code Here

TOP

Related Classes of com.volantis.mcs.xdime.initialisation.ElementFactory

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.