Examples of convert()


Examples of com.dubture.composer.ui.converter.License2StringConverter.convert()

        decoration.setShowOnlyOnFocus(true);
   
    new AutoCompleteField(licenseEntry.getText(), new LicenseContentAdapter(), ComposerConstants.LICENSES);
   
    final License2StringConverter converter = new License2StringConverter();
    licenseEntry.setValue(converter.convert(composerPackage.getLicense()), true);
   
    licenseEntry.addFormEntryListener(new FormEntryAdapter() {
      String2LicenseConverter converter;
      public void focusGained(FormEntry entry) {
        converter = new String2LicenseConverter(composerPackage);
View Full Code Here

Examples of com.dubture.composer.ui.converter.String2KeywordsConverter.convert()

    if (settingsGroup.getType().length() > 0) {
      composerPackage.setType(settingsGroup.getType());
    }

    if (settingsGroup.getKeywords().length() > 0) {
      keywordConverter.convert(settingsGroup.getKeywords());
    }

    String json = composerPackage.toJson();
    ByteArrayInputStream bis = new ByteArrayInputStream(json.getBytes());
View Full Code Here

Examples of com.germinus.util.objectformatter.JsonFormatter.convert()

            if (scriptTag) {
                out.write(cb + "(");
            }
            JsonFormatter jsFmt = new JsonFormatter();
            jsFmt.setRootElement("page");
            out.print(jsFmt.convert(pages));
            if (scriptTag) {
                out.write(");");
            }
        } catch (DAOException ex) {
            Logger.getLogger(PageController.class.getName()).log(Level.SEVERE, null, ex);
View Full Code Here

Examples of com.google.inject.spi.TypeConverter.convert()

            return (V) value; // no conversion required
        }
        final TypeConverter converter = converterCache.getTypeConverter( expectedType );
        if ( null != converter )
        {
            return (V) converter.convert( (String) value, expectedType );
        }
        return null;
    }

    // ----------------------------------------------------------------------
View Full Code Here

Examples of com.google.sitebricks.conversion.MvelTypeConverter.convert()

public class MvelTypeConverterTest
{
  @Test
  public void simpleConversions() {
    MvelTypeConverter converter = new MvelTypeConverter();
    assert converter.convert(45, String.class).equals("45");
  }
}
View Full Code Here

Examples of com.google.typography.font.tools.conversion.woff.WoffWriter.convert()

    Font font = fontArray[0];

    try {
      FileOutputStream fos = new FileOutputStream(outputFile);
      WoffWriter w = new WoffWriter();
      WritableFontData woffData = w.convert(font);
      woffData.copyTo(fos);
      if (debug)
        System.out.println("WOFF File created successfully: "
            + getWOFFfilename());
    } catch (IOException e) {
View Full Code Here

Examples of com.hazelcast.client.impl.exceptionconverters.ClientExceptionConverter.convert()

        boolean isError = false;
        Object clientResponseObject;
        if (response instanceof Throwable) {
            isError = true;
            ClientExceptionConverter converter = ClientExceptionConverters.get(getClientType());
            clientResponseObject = converter.convert((Throwable) response);
        } else {
            clientResponseObject = response != null ? response : new DefaultData();
        }
        clientEngine.sendResponse(this, clientResponseObject, callId, isError, false);
    }
View Full Code Here

Examples of com.jaxws.json.codec.decode.WSJSONPopulator.convert()

              if(!WSJSONPopulator.isJSONPrimitive(parameterType)){
                val = jsonPopulator.populateObject(jsonPopulator.getNewInstance(parameterType),
                    (Map<String,Object>)operationParameters.get(part.getKey()),jsonwebService,
                    (List<MIMEPart>) invocationProperties.get(JSONCodec.MIME_ATTACHMENTS));
              } else {
                val  = jsonPopulator.convert(parameterType, null, operationParameters.get(part.getKey()),
                    seiMethod != null ? seiMethod.getAnnotation(JSONWebService.class) : null, null);
              }
              parameterObjects[part.getValue().getIndex()] = val;
      }
     
View Full Code Here

Examples of com.jidesoft.utils.WildcardSupport.convert()

            if (_searchText != null && _searchText.equals(searchingText) && _pattern != null) {
                return _pattern.matcher(text).find();
            }

            WildcardSupport wildcardSupport = getWildcardSupport();
            String s = wildcardSupport.convert(searchingText);
            if (searchingText.equals(s)) {
                return isFromStart() ? text.startsWith(searchingText) : text.indexOf(searchingText) != -1;
            }
            _searchText = searchingText;
View Full Code Here

Examples of com.jmex.model.converters.AseToJme.convert()

    private void loadASE() {
        AseToJme converter = new AseToJme();
        URL objFile = getClass().getResource("/models/test/cube-1m.ase");
        ByteArrayOutputStream BO = new ByteArrayOutputStream();
        try {
            converter.convert(objFile.openStream(), BO);
            Node obj = (Node) BinaryImporter.getInstance().load(new ByteArrayInputStream(BO.toByteArray()));
            obj.setName("OBJ");
            rootNode.attachChild(obj);
        } catch (IOException e) {
            e.printStackTrace();
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.