Package fr.soleil.data.adapter

Examples of fr.soleil.data.adapter.NumberToStringDataAdapter


    @Override
    protected void initPlugins(IDataSourceProducer producer, AbstractDataSource<?> source,
            ITextTarget target) {
        super.initPlugins(producer, source, target);
        NumberToStringDataAdapter numberAdapter = getNumberAdapter(source);
        if (numberAdapter != null) {
            FormatPlugin foundedPlugin = getPlugin(target, FormatPlugin.class);
            if (foundedPlugin != null) {
                try {
                    foundedPlugin.addPlugin(source.getOriginDescriptor(), numberAdapter);
View Full Code Here


    @Override
    protected void filterPlugins(final List<AbstractPlugin<?>> plugins,
            final IDataSourceProducer producer, final AbstractDataSource<?> source,
            final ITextTarget target) {
        final List<AbstractPlugin<?>> toRemove = new ArrayList<AbstractPlugin<?>>();
        NumberToStringDataAdapter numberAdapter = getNumberAdapter(source);
        for (final AbstractPlugin<?> plugin : plugins) {
            boolean connectionState;
            try {
                plugin.setFirstInitAllowed(firstInitAllowed);
                connectionState = plugin.addPlugin(producer, source.getOriginDescriptor(), target)
View Full Code Here

        toRemove.clear();
    }

    @SuppressWarnings("unchecked")
    protected NumberToStringDataAdapter getNumberAdapter(AbstractDataSource<?> source) {
        NumberToStringDataAdapter result = null;
        if ((numberController != null) && (source.getDataType() != null)
                && Number.class.equals(source.getDataType().getConcernedClass())) {
            result = numberController.getAdapter((AbstractDataSource<Number>) source);
        }
        return result;
View Full Code Here

TOP

Related Classes of fr.soleil.data.adapter.NumberToStringDataAdapter

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.