Package fr.soleil.data.service

Examples of fr.soleil.data.service.GenericDescriptor


        target.setData(data);
    }

    @Override
    public GenericDescriptor getDataType() {
        GenericDescriptor[] desc = new GenericDescriptor[] { new GenericDescriptor(String.class),
                new GenericDescriptor(Object.class) };
        return new GenericDescriptor(String.class, desc);
    }
View Full Code Here


    @SuppressWarnings("unchecked")
    @Override
    public boolean isTargetAssignable(ITarget target) {
        boolean result = false;
        if (target != null && target instanceof CometeCaps) {
            GenericDescriptor targetDesc = ((CometeCaps) target).getDataType();
            result = getTargetType().isAssignableFrom(targetDesc);
        }
        return result;
    }
View Full Code Here

    @SuppressWarnings("unchecked")
    public <U> void addCheckerToSource(final AbstractChecker checker, final IKey key) {
        if (checker != null && key != null) {
            final AbstractDataSource<U> source = getSource(key);
            for (final AbstractController<?> controller : getUsedControllers()) {
                final GenericDescriptor controllerDesc = controller.getSourceType();
                if (controllerDesc != null && controllerDesc.isAssignableFrom(source.getDataType())) {
                    ((AbstractController<U>) controller).addCheckerToSource(checker, source);
                }
            }
        }
    }
View Full Code Here

        return ITextTarget.class;
    }

    @Override
    protected GenericDescriptor getTargetType() {
        return new GenericDescriptor(String.class);
    }
View Full Code Here

        target.setData(data);
    }

    @Override
    public GenericDescriptor getDataType() {
        GenericDescriptor[] desc = new GenericDescriptor[] { new GenericDescriptor(String.class),
                new GenericDescriptor(Object.class) };
        return new GenericDescriptor(String.class, desc);
    }
View Full Code Here

        }
    }

    @Override
    public GenericDescriptor getDataType() {
        return new GenericDescriptor(String.class);
    }
View Full Code Here

        }
    }

    @Override
    public GenericDescriptor getDataType() {
        return new GenericDescriptor(Number.class);
    }
View Full Code Here

        target.setNumberMatrix(data);
    }

    @Override
    public GenericDescriptor getDataType() {
        return new GenericDescriptor(Object[].class);
    }
View Full Code Here

        return ITextTarget.class;
    }

    @Override
    protected GenericDescriptor getTargetType() {
        return new GenericDescriptor(String.class);
    }
View Full Code Here

    @SuppressWarnings("unchecked")
    public <U> void addCheckerToSource(final AbstractChecker checker, final IKey key) {
        if (checker != null && key != null) {
            final AbstractDataSource<U> source = getSource(key);
            for (final AbstractController<?> controller : getUsedControllers()) {
                final GenericDescriptor controllerDesc = controller.getSourceType();
                if (controllerDesc != null && controllerDesc.isAssignableFrom(source.getDataType())) {
                    ((AbstractController<U>) controller).addCheckerToSource(checker, source);
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of fr.soleil.data.service.GenericDescriptor

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.