Examples of convert()


Examples of at.ofai.gate.appdoc.converters.Converter.convert()

    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 bibliothek.gui.dock.perspective.Perspective.convert()

     
      Map<String, DockLayoutComposition> stations = new HashMap<String, DockLayoutComposition>();
      for( String key : perspective.getStationKeys() ){
        CStationPerspective station = perspective.getStation( key );
        if( station.asDockable() == null || station.asDockable().getParent() == null ){
          stations.put( key, conversion.convert( station.intern() ));
        }
      }
     
      conversion.getSituation().writeCompositionsXML( stations, root.addElement( "stations" ) );
     
View Full Code Here

Examples of br.com.caelum.vraptor.TwoWayConverter.convert()

      Object result = new Evaluator().get(params, key);
      if (result != null) {
        Class type = result.getClass();
        if (converters.existsTwoWayFor(type)) {
          TwoWayConverter converter = converters.twoWayConverterFor(type);
          result = converter.convert(result);
        }
      }
      base = base.replaceAll("\\{" + key + "\\*?\\}", result == null ? "" : result.toString());
    }
    return base;
View Full Code Here

Examples of br.com.caelum.vraptor.observer.upload.UploadedFileConverter.convert()

  public void testIfUploadedFileIsConverted() {
    when(request.getAttribute("myfile")).thenReturn(file);
   
    UploadedFileConverter converter = new UploadedFileConverter(request);
   
    UploadedFile uploadedFile = converter.convert("myfile", UploadedFile.class);
    assertEquals(file, uploadedFile);
  }
}
View Full Code Here

Examples of ch.agent.t2.time.SystemTime.convert()

   * @return the current time
   */
  public static TimeIndex now(TimeDomain domain) {
    try {
      TimeIndex t = new SystemTime();
      return t.convert(domain, Adjustment.DOWN);
    } catch (T2Exception e) {
      // should not occur because of the adjustment
      throw new RuntimeException(e);
    }
  }
View Full Code Here

Examples of ch.agent.t2.time.TimeIndex.convert()

   * @return the current time
   */
  public static TimeIndex now(TimeDomain domain) {
    try {
      TimeIndex t = new SystemTime();
      return t.convert(domain, Adjustment.DOWN);
    } catch (T2Exception e) {
      // should not occur because of the adjustment
      throw new RuntimeException(e);
    }
  }
View Full Code Here

Examples of ch.njol.skript.classes.Converter.convert()

   
    @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)
View Full Code Here

Examples of ch.qos.logback.core.pattern.Converter.convert()

  public String convert(Object o) {
    Converter p = headTokenConverter;
    StringBuffer buf = new StringBuffer();
    while (p != null) {
      buf.append(p.convert(o));
      p = p.getNext();
    }
    return buf.toString();
  }
View Full Code Here

Examples of ch.qos.logback.core.rolling.helper.FileNamePattern.convert()

  }


  protected void addExpectedFileName_ByDate(String patternStr, long millis) {
    FileNamePattern fileNamePattern = new FileNamePattern(patternStr, context);
    String fn = fileNamePattern.convert(new Date(millis));
    expectedFilenameList.add(fn);
  }

  void addExpectedFileNamedIfItsTime_ByDate(String fileNamePatternStr) {
    if (passThresholdTime(nextRolloverThreshold)) {
View Full Code Here

Examples of client.net.sf.saxon.ce.value.AtomicValue.convert()

            AtomicValue av = item.getTypedValue();
            count++;
            if (count > 1) {
                return false;
            }
            if (!!(av.convert(targetType, true) instanceof ValidationFailure)) {
                return false;
            }
        }
        return count != 0 || allowEmpty;
    }
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.