Examples of convert()


Examples of org.exolab.castor.mapping.TypeConvertor.convert()

                    // First convert the actual value to the field value
                    if (fieldClass != valueClass) {
                        try {
                            TypeConvertor tc = getTypeConvertorRegistry().getConvertor(
                                    valueClass, fieldClass, null);
                            internalValue = tc.convert(internalValue);
                        } catch (MappingException e) {
                            throw new IllegalArgumentException("Query parameter "
                                    + (_fieldNum + 1) + " cannot be converted from " + valueClass
                                    + " to " + paramClass + ", because no convertor can be found.");
                        }
View Full Code Here

Examples of org.exolab.jms.message.MessageConverter.convert()

     * @throws JMSException for any error
     */
    private Message convert(Message message) throws JMSException {
        MessageConverter converter =
                MessageConverterFactory.create(message);
        return converter.convert(message);
    }

}

View Full Code Here

Examples of org.fenixedu.academic.domain.degreeStructure.EctsComparabilityTable.convert()

                        }
                        addCell(BundleUtil.getString(Bundle.GEP, "label.competenceCourse.executionCodes"),
                                StringUtils.join(ids, ", "));
                        EctsComparabilityTable ects = table.getEctsTable();
                        for (int i = 10; i <= 20; i++) {
                            addCell(i + "", !ects.convert(i).equals(GradeScale.NA) ? ects.convert(i) : null);
                        }
                    }
                };
        return builder;
    }
View Full Code Here

Examples of org.fenixedu.academic.ui.renderers.htmlEditor.HtmlToTextConverter.convert()

    public static String convertToText(String html) {

        // TODO: Move HtmlToTextConverter code to here, so this util does not
        // have to know about renderers
        HtmlToTextConverter converter = new HtmlToTextConverter();
        return (String) converter.convert(String.class, html);
    }

    public static String convertToTextWithRegEx(String html) {
        return html.toString().replaceAll(REGEX_PATTERN, "");
    }
View Full Code Here

Examples of org.geoserver.wfsv.VersioningTransactionConverter.convert()

        throws IOException, ServiceException {
        final FeatureDiffReader[] diffReaders = (FeatureDiffReader[]) value;

        // create a new feature collcetion type with just the numbers
        VersioningTransactionConverter converter = new VersioningTransactionConverter();
        final TransactionType transaction = converter.convert(diffReaders, TransactionType.class);

        //declare wfs schema location
        BaseRequestType gft = (BaseRequestType) operation.getParameters()[0];

        Encoder encoder = new Encoder(configuration, configuration.schema());
View Full Code Here

Examples of org.geotools.util.Converter.convert()

        public Object convertToObject(String value, Locale locale) {
            for ( ConverterFactory factory : factories ) {
                try {
                    Converter converter = factory.createConverter( String.class, target, null );
                    if ( converter != null ) {
                        Object converted = converter.convert( value, target );
                        if ( converted != null ) {
                            return converted;
                        }
                    }
                }
View Full Code Here

Examples of org.glassfish.grizzly.http.util.B2CConverter.convert()

                log.log(Level.SEVERE, INVALID_URI_ENCODING);
                connector.setURIEncoding(null);
            }
            if (conv != null) {
                try {
                    conv.convert(bc, cc, cc.getBuffer().length - cc.getEnd());
                    uri.setChars(cc.getBuffer(), cc.getStart(),
                            cc.getLength());
                    return;
                } catch (IOException e) {
                    log.log(Level.SEVERE, INVALID_URI_CHAR_ENCODING);
View Full Code Here

Examples of org.gocha.collection.Convertor.convert()

    public Object getRoot()
    {
        Object obj = getRootObject();
        Convertor nWrap = getNodeWrapper();
        if( nWrap!=null )
            return nWrap.convert(obj);
       
        return obj;
    }

    protected Object getDefaultChild(){ return null; }
View Full Code Here

Examples of org.gradle.cli.SystemPropertiesCommandLineConverter.convert()

        converter.configure(parser);

        ParsedCommandLine options = parser.parse(args);

        Properties systemProperties = System.getProperties();
        systemProperties.putAll(converter.convert(options, new HashMap<String, String>()));

        File gradleUserHome = gradleUserHome(options);

        addSystemProperties(gradleUserHome, rootDir);
View Full Code Here

Examples of org.gradle.initialization.DefaultCommandLineConverter.convert()

    @Override
    public GradleExecuter withArguments(List<String> args) {
        CommandLineParser parser = new CommandLineParser();
        DefaultCommandLineConverter converter = new DefaultCommandLineConverter();
        converter.configure(parser);
        converter.convert(parser.parse(args), parameter);
        return this;
    }

    @Override
    public GradleExecuter withUserHomeDir(File userHomeDir) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.