Package com.volantis.mcs.xdime.initialisation

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


        extends ElementFactoryMapPopulator {

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

        builder.addMapping(XHTML2Elements.A, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new AnchorElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.ABBR, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new AbbreviationElement(context);
            }
        });
       
        builder.addMapping(XHTML2Elements.ACCESS, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new AccessElement(context);
            }
        });
       
        builder.addMapping(XHTML2Elements.ADDRESS, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new AddressElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.BLOCKQUOTE, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new BlockQuoteElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.BODY, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new BodyElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.CAPTION, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new CaptionElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.CITE, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new CiteElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.CODE, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new CodeElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.DD, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new DefinitionDataElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.DFN, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new DefinitionElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.DIV, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new DivElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.DL, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new DefinitionListElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.DT, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new DefinitionTermElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.EM, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new EmphasisElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.H1, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new Heading1Element(context);
            }
        });
        builder.addMapping(XHTML2Elements.H2, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new Heading2Element(context);
            }
        });
        builder.addMapping(XHTML2Elements.H3, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new Heading3Element(context);
            }
        });
        builder.addMapping(XHTML2Elements.H4, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new Heading4Element(context);
            }
        });
        builder.addMapping(XHTML2Elements.H5, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new Heading5Element(context);
            }
        });
        builder.addMapping(XHTML2Elements.H6, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new Heading6Element(context);
            }
        });
        builder.addMapping(XHTML2Elements.HEAD, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new HeadElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.HTML, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new HtmlElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.KBD, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new UserInputElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.LABEL, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ListLabelElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.LI, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ListItemElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.LINK, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new LinkElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.META, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new MetaInformationElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.NL, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new NavigationListElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.OBJECT, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ObjectElementImpl(context);
            }
        });
        builder.addMapping(XHTML2Elements.OL, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new OrderedListElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.P, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ParagraphElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.PARAM, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ParametersElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.PRE, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new PreserveElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.QUOTE, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new QuoteElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.SAMP, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new SampleElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.SPAN, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new SpanElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.STRONG, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new StrongElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.STYLE, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new StyleElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.SUB, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new SubscriptElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.SUP, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new SuperscriptElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.TABLE, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new TableElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.TBODY, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new TableBodyElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.TD, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new TableDataElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.TFOOT, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new TableFooterElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.TH, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new TableHeaderCellElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.THEAD, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new TableHeaderElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.TITLE, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new TitleElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.TR, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new TableRowElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.UL, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new UnorderedListElement(context);
            }
        });
        builder.addMapping(XHTML2Elements.VAR, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new VariableElement(context);
            }
        });
    }
View Full Code Here


public class WidgetElementHandler extends ElementFactoryMapPopulator {

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

        builder.addMapping(WidgetElements.BUTTON, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ButtonElement(context);
            }
        });
        builder.addMapping(WidgetElements.DISPLAY, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new DisplayElement(context);
            }
        });
        builder.addMapping(WidgetElements.INPUT, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new InputElement(context);
            }
        });
        builder.addMapping(WidgetElements.NEXT, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new NextElement(context);
            }
        });
        builder.addMapping(WidgetElements.PREVIOUS, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new PreviousElement(context);
            }
        });
        builder.addMapping(WidgetElements.PLAY, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new PlayElement(context);
            }
        });
        builder.addMapping(WidgetElements.STOP, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new StopElement(context);
            }
        });
        builder.addMapping(WidgetElements.PAUSE, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new PauseElement(context);
            }
        });
        builder.addMapping(WidgetElements.DISMISS, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new DismissElement(context);
            }
        });
        builder.addMapping(WidgetElements.CAROUSEL, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new CarouselElement(context);
             }
        });
        builder.addMapping(WidgetElements.CLOCK_CONTENT, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ClockContentElement(context);
            }
        });
        builder.addMapping(WidgetElements.DIGITAL_CLOCK, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new DigitalClockElement(context);
            }
        });
        builder.addMapping(WidgetElements.STOPWATCH, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new StopwatchElement(context);
            }
        });
        builder.addMapping(WidgetElements.TIMER, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new TimerElement(context);
            }
        });
        builder.addMapping(WidgetElements.REFRESH, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new RefreshElement(context);
             }
        });
        builder.addMapping(WidgetElements.POPUP, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new PopupElement(context);
             }
        });
        builder.addMapping(WidgetElements.TICKER_TAPE, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new TickerTapeElement(context);
             }
        });
        builder.addMapping(WidgetElements.PROGRESS, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new ProgressElement(context);
             }
        });
        builder.addMapping(WidgetElements.FOLDING_ITEM, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new FoldingItemElement(context);
             }
        });
        builder.addMapping(WidgetElements.LOAD, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new LoadElement(context);
             }
        });
        builder.addMapping(WidgetElements.SUMMARY, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new SummaryElement(context);
             }
        });
        builder.addMapping(WidgetElements.DETAIL, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new DetailElement(context);
             }
        });
        builder.addMapping(WidgetElements.WIZARD, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new WizardElement(context);
             }
        });
        builder.addMapping(WidgetElements.LAUNCH, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new LaunchElement(context);
             }
        });
        builder.addMapping(WidgetElements.FIELD_EXPANDER, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new FieldExpanderElement(context);
             }
        });
        builder.addMapping(WidgetElements.VALIDATE, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new ValidateElement(context);
             }
        });
        builder.addMapping(WidgetElements.MESSAGE, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new MessageElement(context);
             }
        });
        builder.addMapping(WidgetElements.MULTIPLE_VALIDATOR, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new MultipleValidatorElement(context);
             }
        });
        builder.addMapping(WidgetElements.FIELD, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new FieldElement(context);
             }
        });
        builder.addMapping(WidgetElements.AUTOCOMPLETE, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new AutocompleteElement(context);
             }
        });
        builder.addMapping(WidgetElements.TABS, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new TabsElement(context);
            }
        });
        builder.addMapping(WidgetElements.TAB, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new TabElement(context);
            }
        });
        builder.addMapping(WidgetElements.MAP, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new MapElement(context);
            }
        });
        builder.addMapping(WidgetElements.MAP_VIEW, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new MapViewElement(context);
            }
        });
        builder.addMapping(WidgetElements.MAP_LOCATION_MARKER, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new MapLocationMarkerElement(context);
            }
        });
        builder.addMapping(WidgetElements.MAP_LOCATION_MARKERS, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new MapLocationMarkersElement(context);
            }
        });
        builder.addMapping(WidgetElements.LOG, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new LogElement(context);
            }
        });
        builder.addMapping(WidgetElements.DATE_PICKER, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new DatePickerElement(context);
            }
        });
        builder.addMapping(WidgetElements.MONTH_DISPLAY, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new MonthDisplayElement(context);
            }
        });
        builder.addMapping(WidgetElements.NEXT_MONTH, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new NextMonthElement(context);
            }
        });
        builder.addMapping(WidgetElements.PREVIOUS_MONTH, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new PreviousMonthElement(context);
            }
        });
        builder.addMapping(WidgetElements.YEAR_DISPLAY, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new YearDisplayElement(context);
            }
        });
        builder.addMapping(WidgetElements.NEXT_YEAR, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new NextYearElement(context);
            }
        });
        builder.addMapping(WidgetElements.PREVIOUS_YEAR, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new PreviousYearElement(context);
            }
        });
        builder.addMapping(WidgetElements.CALENDAR_DISPLAY, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new CalendarDisplayElement(context);
            }
        });
        builder.addMapping(WidgetElements.SET_TODAY, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new SetTodayElement(context);
            }
        });
        builder.addMapping(WidgetElements.HANDLER, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new HandlerElement(context);
            }
        });
        builder.addMapping(WidgetElements.SCRIPT, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ScriptElement(context);
            }
        });
        builder.addMapping(WidgetElements.BLOCK, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new BlockElement(context);
            }
        });
        builder.addMapping(WidgetElements.BLOCK_CONTENT, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new BlockContentElement(context);
            }
        });       
        builder.addMapping(WidgetElements.FETCH, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new FetchElement(context);
            }
        });
        builder.addMapping(WidgetElements.SELECT, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new SelectElement(context);
            }
        });               
        builder.addMapping(WidgetElements.OPTION, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new OptionElement(context);
            }
        });               
        builder.addMapping(WidgetElements.DECK, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new DeckElement(context);
            }
        });
        builder.addMapping(WidgetElements.DECK_PAGE, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new DeckPageElement(context);
            }
        });             
        builder.addMapping(WidgetElements.TABLE, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new TableElement(context);
            }
        });             
        builder.addMapping(WidgetElements.TBODY, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new TableBodyElement(context);
            }
        });             
    }
View Full Code Here

public class TickerElementHandler extends ElementFactoryMapPopulator {

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

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

        builder.addMapping(TickerElements.FEED, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new FeedElement(context);
            }
        });

        builder.addMapping(TickerElements.UPDATE_STATUS, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new UpdateStatusElement(context);
            }
        });

        builder.addMapping(TickerElements.ITEMS_COUNT, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ItemsCountElement(context);
            }
        });

        builder.addMapping(TickerElements.CHANNELS_COUNT, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ChannelsCountElement(context);
            }
        });

        builder.addMapping(TickerElements.ITEM_DISPLAY, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ItemDisplayElement(context);
            }
        });
        builder.addMapping(TickerElements.ITEM_TITLE, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ItemTitleElement(context);
            }
        });

        builder.addMapping(TickerElements.ITEM_ICON, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ItemIconElement(context);
            }
        });

        builder.addMapping(TickerElements.ITEM_DESCRIPTION, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ItemDescriptionElement(context);
            }
        });

        builder.addMapping(TickerElements.ITEM_PLAIN_DESCRIPTION, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ItemPlainDescriptionElement(context);
            }
        });

        builder.addMapping(TickerElements.ITEM_CHANNEL, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ItemChannelElement(context);
            }
        });
    }
View Full Code Here

        extends ElementFactoryMapPopulator {

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

        ElementFactory instanceFactory = new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new SIInstanceElementImpl(context);
            }
        };
        ElementFactory itemFactory = new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new SIItemElementImpl(context);
            }
        };
View Full Code Here

public class MCSElementHandler
        extends ElementFactoryMapPopulator {

    // Javadoc inherited.
    public void populateMap(ElementFactoryMapBuilder builder) {
        builder.addMapping(MCSElements.UNIT, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new UnitElement(context);
            }
        });
        builder.addMapping(MCSElements.HANDLER, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new HandlerElement(context);
            }
        });
        builder.addMapping(MCSElements.SCRIPT, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ScriptElement(context);
            }
        });
        builder.addMapping(MCSElements.BR, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new BreakElement(context);
            }
        });
    }
View Full Code Here

public class XFormsElementHandler extends ElementFactoryMapPopulator {

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

        builder.addMapping(XFormElements.MODEL, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new XFModelElementImpl(context);
             }
        });
        builder.addMapping(XFormElements.SUBMISSION, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new XFSubmissionElementImpl(context);
             }
        });
        builder.addMapping(XFormElements.INSTANCE, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new XFInstanceElementImpl(context);
             }
        });
        builder.addMapping(XFormElements.INPUT, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new XFInputElementImpl(context);
             }
        });
        builder.addMapping(XFormElements.ITEM, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new XFItemElementImpl(context);
             }
        });
        builder.addMapping(XFormElements.LABEL, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new XFLabelElementImpl(context);
             }
        });
        builder.addMapping(XFormElements.VALUE, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new XFValueElementImpl(context);
             }
        });
        builder.addMapping(XFormElements.SECRET, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new XFSecretElementImpl(context);
             }
        });
        builder.addMapping(XFormElements.SELECT, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new XFSelectElementImpl(context);
             }
        });
        builder.addMapping(XFormElements.SELECT1, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new XFSelect1ElementImpl(context);
             }
        });       
        builder.addMapping(XFormElements.SETVALUE, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new XFSetValueElementImpl(context);
             }
        });
        builder.addMapping(XFormElements.SUBMIT, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new XFSubmitElementImpl(context);
             }
        });
        builder.addMapping(XFormElements.TEXTAREA, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new XFTextAreaElementImpl(context);
             }
        });
        builder.addMapping(XFormElements.GROUP, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new XFGroupElementImpl(context);
             }
        });
    }
View Full Code Here

public class ResponseElementHandler extends ElementFactoryMapPopulator {

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

        builder.addMapping(ResponseElements.HEAD, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new ResponseHeadElement(context);
             }
        });
        builder.addMapping(ResponseElements.RESPONSE, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new ResponseResponseElement(context);
             }
        });
        builder.addMapping(ResponseElements.BODY, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new ResponseBodyElement(context);
             }
        });
        builder.addMapping(ResponseElements.LINK, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new ResponseLinkElement(context);
             }
        });
        builder.addMapping(ResponseElements.CAROUSEL, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new ResponseCarouselElement(context);
             }
        });
        builder.addMapping(ResponseElements.CLOCK, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ResponseClockElement(context);
            }
       });
        builder.addMapping(ResponseElements.TIMER, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ResponseTimerElement(context);
            }
        });
        builder.addMapping(ResponseElements.TICKER_TAPE, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new ResponseTickerTapeElement(context);
             }
        });
        builder.addMapping(ResponseElements.PROGRESS, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new ResponseProgressElement(context);
             }
        });
        builder.addMapping(ResponseElements.FOLDING_ITEM, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new ResponseFoldingitemElement(context);
             }
        });
        builder.addMapping(ResponseElements.VALIDATION, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new ResponseValidationElement(context);
             }
        });
        builder.addMapping(ResponseElements.FIELD, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new ResponseFieldElement(context);
             }
        });
        builder.addMapping(ResponseElements.MESSAGE, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new ResponseMessageElement(context);
             }
        });
        builder.addMapping(ResponseElements.AUTOCOMPLETE, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new ResponseAutocompleteElement(context);
             }
        });
        builder.addMapping(ResponseElements.TAB, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ResponseTabElement(context);
            }
       });
       builder.addMapping(ResponseElements.DATE_PICKER, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ResponseDatePickerElement(context);
            }
       });
       builder.addMapping(ResponseElements.MAP, new ElementFactory() {
           public XDIMEElement createElement(XDIMEContextInternal context) {
            return new ResponseMapElement(context);
           }
       });
       builder.addMapping(ResponseElements.DECK, new ElementFactory() {
           public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ResponseDeckElement(context);
           }
       });
       builder.addMapping(ResponseElements.TABLE_BODY, new ElementFactory() {
           public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ResponseTableBodyElement(context);
           }
       });
       builder.addMapping(ResponseElements.ERROR, new ElementFactory() {
           public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ResponseErrorElement(context);
           }
       });
    }
View Full Code Here

public class XMLEventsElementHandler
        extends ElementFactoryMapPopulator {

    // Javadoc inherited.
    public void populateMap(ElementFactoryMapBuilder builder) {
        builder.addMapping(XMLEventsElements.LISTENER, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new ListenerElement(context);
             }
        });
    }
View Full Code Here

    public XDIMEElement createXDIMEElement(
            ElementType elementType,
            XDIMEContextInternal context) throws XDIMEException {

        XDIMEElement element = null;
        ElementFactory factory = factoryMap.getElementFactory(elementType);
        if (factory == null) {
            throw new XDIMEException(EXCEPTION_LOCALIZER.format(
                    "unknown-element", elementType));
        } else {
            element = factory.createElement(context);
        }
        return element;
    }
View Full Code Here

public class GalleryElementHandler extends ElementFactoryMapPopulator {

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

        builder.addMapping(GalleryElements.START_ITEM_NUMBER, new ElementFactory() {
             public XDIMEElement createElement(XDIMEContextInternal context) {
                 return new StartItemNumberElement(context);
             }
        });

        builder.addMapping(GalleryElements.GALLERY, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new GalleryElement(context);
            }
        });

        builder.addMapping(GalleryElements.ITEM_DISPLAY, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ItemDisplayElement(context);
            }
        });

        builder.addMapping(GalleryElements.ITEM, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ItemElement(context);
            }
        });

        builder.addMapping(GalleryElements.ITEM_NUMBER, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ItemNumberElement(context);
            }
        });

        builder.addMapping(GalleryElements.ITEMS_COUNT, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ItemsCountElement(context);
            }
        });
        builder.addMapping(GalleryElements.PAGE_NUMBER, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new PageNumberElement(context);
            }
        });

        builder.addMapping(GalleryElements.PAGES_COUNT, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new PagesCountElement(context);
            }
        });
        builder.addMapping(GalleryElements.ITEMS, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new ItemsElement(context);
            }
        });

        builder.addMapping(GalleryElements.SLIDESHOW, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new SlideshowElement(context);
            }
        });

        builder.addMapping(GalleryElements.END_ITEM_NUMBER, new ElementFactory() {
            public XDIMEElement createElement(XDIMEContextInternal context) {
                return new EndItemNumberElement(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.