Examples of Converter


Examples of Converter

           ConverterHome home =
               (ConverterHome)PortableRemoteObject.narrow(objref,
                                            ConverterHome.class);

           Converter currencyConverter = home.create();
           double amount = currencyConverter.dollarToYen(100.00);
           System.out.println(String.valueOf(amount));
           amount = currencyConverter.yenToEuro(100.00);
           System.out.println(String.valueOf(amount));

           System.exit(0);

       } catch (Exception ex) {
View Full Code Here

Examples of ar.glyphsets.implicitgeometry.Indexed.Converter

    while (reader.hasNext()) {
      String[] parts = reader.next();
      if (parts == null) {continue;}
     
      Converter item = converter.applyTo(parts);
      I value = valuer.value(item);
      G shape = shaper.shape(item);

      Glyph<G,I> g = new SimpleGlyph<G,I>(shape, value);
      try {m.invoke(glyphs, g);}
View Full Code Here

Examples of at.ofai.gate.appdoc.converters.Converter

    }
    String text = (String) args.get(0);
    String fromFormat = (String) args.get(1);
    String toFormat = (String) args.get(2);
    //System.out.println("ConvertString.exec called with "+fromFormat+"/"+toFormat+">>>"+text+"<<<");
    Converter converter = ConverterFactory.getConverter(fromFormat, toFormat);
    String converted = converter.convert(text);
    return new freemarker.template.SimpleScalar(converted);
  }
View Full Code Here

Examples of br.com.bfmapper.Converter

public class PneuMappingRules implements RulesMapper {

  @Override
  public void loadRules() {
    MappingRules.addRule(new Converter(PneuCanonico.class, Pneu.class) {{
      add("codigo", "id").withShallowCopy();
    }});
  }
View Full Code Here

Examples of ch.njol.skript.classes.Converter

    }
   
    @SuppressWarnings({"rawtypes", "unchecked"})
    @Override
    public Relation compare(final T1 o1, final T2 o2) {
      final Converter c1 = this.c1;
      final Object t1 = c1 == null ? o1 : c1.convert(o1);
      if (t1 == null)
        return Relation.NOT_EQUAL;
      final Converter c2 = this.c2;
      final Object t2 = c2 == null ? o2 : c2.convert(o2);
      if (t2 == null)
        return Relation.NOT_EQUAL;
      return c.compare(t1, t2);
    }
View Full Code Here

Examples of ch.qos.logback.core.pattern.Converter

  public String toString() {
    return pattern;
  }

  public DateTokenConverter getDateTokenConverter() {
    Converter p = headTokenConverter;

    while (p != null) {
      if (p instanceof DateTokenConverter) {
        return (DateTokenConverter) p;
      }

      p = p.getNext();
    }

    return null;
  }
View Full Code Here

Examples of com.alibaba.toolkit.util.typeconvert.Converter

     * @param targetType Ŀ������
     *
     * @return ����ǰλ��ת����ָ��<code>targetType</code>��<code>Converter</code>
     */
    public Converter getConverter(Class targetType) {
        return new Converter() {
            public Object convert(Object value, ConvertChain chain) {
                FlagSet flagSet    = (FlagSet) value;
                Class   targetType = chain.getTargetType();

                if (String.class.equals(targetType)) {
View Full Code Here

Examples of com.alvazan.orm.api.z8spi.conv.Converter

    }
  }

  private void fillInThisOneInstance(T self) {
    MetaIdField<T> idField = classMeta.getIdField();
    Converter converter = idField.getConverter();
    byte[] nonVirtKey = converter.convertToNoSql(entityId);
    DboTableMeta metaDbo = classMeta.getMetaDbo();
    DboColumnIdMeta idMeta = metaDbo.getIdColumnMeta();
    byte[] virtKey = idMeta.formVirtRowKey(nonVirtKey);
   
    List<byte[]> rowKeys = new ArrayList<byte[]>();
View Full Code Here

Examples of com.basho.riak.client.api.convert.Converter

   
    @SuppressWarnings("unchecked")
    @Override
    protected RiakFuture<Response, Location> executeAsync(RiakCluster cluster)
    {
        Converter converter;
       
        if (typeReference == null)
        {
            converter = ConverterFactory.getInstance().getConverter(value.getClass());
        }
        else
        {
            converter = ConverterFactory.getInstance().getConverter(typeReference);
        }
       
        final OrmExtracted orm = converter.fromDomain(value, namespace, key);
       
        // If there's no vector clock in the object, use one possibly given via
        // the builder.
        if (orm.getRiakObject().getVClock() == null)
        {
View Full Code Here

Examples of com.sleepycat.persist.evolve.Converter

        /* Get class mutations. */
        String oldName = oldFormat.getClassName();
        int oldVersion = oldFormat.getVersion();
        Renamer renamer = mutations.getRenamer(oldName, oldVersion, null);
        Deleter deleter = mutations.getDeleter(oldName, oldVersion, null);
        Converter converter =
            mutations.getConverter(oldName, oldVersion, null);
        if (deleter != null && (converter != null || renamer != null)) {
            addInvalidMutation
                (oldFormat, null, deleter,
                 "Class Deleter not allowed along with a Renamer or " +
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.