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);
}
});