Examples of format()


Examples of org.ggf.drmaa.PartialTimestampFormat.format()

         PartialTimestampFormat format = new PartialTimestampFormat();
        
         date.set(PartialTimestamp.HOUR_OF_DAY, 13);
         date.set(PartialTimestamp.MINUTE, 0);
        
         System.out.println(format.format(date));
        
         date.setModifier(PartialTimestamp.DAY_OF_MONTH, 1);
        
         System.out.println(format.format(date));
         System.out.println(date.getTime().toString());
View Full Code Here

Examples of org.gwtwidgets.client.util.SimpleDateFormat.format()

    String sformat = "dd/MM/yyyy HH:mm:ss";
    GWT.log(sformat, null);
    SimpleDateFormat format = new SimpleDateFormat("EEEE dd-MM-yyyy HH:mm:ss");
    SimpleDateParser parser = new SimpleDateParser(sformat);
    Date date = parser.parse("05/10/1977 12:45:31");
    String text = format.format(date);
    _assert("Wednesday 05-10-1977 12:45:31".equals(text));
  }
 
  private void testDateFormat4() {
   
View Full Code Here

Examples of org.hibernate.validator.internal.engine.messageinterpolation.FormatterWrapper.format()

    Object[] formattingParameters = new Object[params.length - 1];
    System.arraycopy( params, 1, formattingParameters, 0, params.length - 1 );

    Object returnValue;
    try {
      returnValue = formatterWrapper.format( (String) params[0], formattingParameters );
      context.setPropertyResolved( true );
    }
    catch ( IllegalFormatException e ) {
      throw new ELException( "Error in Formatter#format call", e );
    }
View Full Code Here

Examples of org.jasig.portal.utils.TableFormatter.format()

                new TableEntry<String>(typeId, "-", "s"),
                new TableEntry<Boolean>(ops.contains(Operations.EXPORT), "-", "b"),
                new TableEntry<Boolean>(ops.contains(Operations.DELETE), "-", "b"));
        }
       
        tableFormatter.format(f);
    }
   
    public static void format(Iterable<? extends IPortalData> data, Logger l) {
        final Formatter f = new Formatter(new AppendableLogger(l, LogLevel.INFO));
       
View Full Code Here

Examples of org.javatari.atari.cartridge.Cartridge.format()

        for (CartridgeFormatOption option : formatOptions)
          formats.add(option.format);
      } catch (ROMFormatUnsupportedException e) {
        // Leave formats empty
      }
      if (!formats.contains(cart.format())) formats.add(0, cart.format());
      romFormatLb.setListData(formats.toArray());
      romFormatLb.setSelectedValue(cart.format(), true);
      romFormatLb.setEnabled(!formats.isEmpty() && !room.isClientMode());
      defaultsB.setText("Auto Detect");
      defaultsB.setVisible(!room.isClientMode());
View Full Code Here

Examples of org.jboss.as.cli.ModelNodeFormatter.format()

        } else {
            final ModelNodeFormatter formatter = ModelNodeFormatter.Factory.forType(result.getType());
            if(buf == null) {
                buf = new StringBuilder();
            }
            formatter.format(buf, 0, result);
        }
        return buf;
    }

    protected ModelNode buildWritePropertyRequest(CommandContext ctx) throws CommandFormatException {
View Full Code Here

Examples of org.jboss.bpm.console.client.model.util.SimpleDateFormat.format()

  {
    String s = "";
    SimpleDateFormat df = new SimpleDateFormat();
    Date d = record.getAsDate(fieldName);
    if (d != null)
      s = df.format(d);

    return s;
  }
}
View Full Code Here

Examples of org.jboss.dashboard.export.ExportManager.format()

        ExportOptions options = expMgr.createExportOptions();
        options.setIgnoreKPIs(false);
        options.setIgnoreDataProviders(false);
        options.setKPIs(getSelectedKPIs());
        options.setDataProviders(getSelectedDataProviders());
        String xml = expMgr.format(options);

        // Send XML bytes as a stream response.
        int id = xml.hashCode();
        if (id < 0) id = id*-1;
        return new SendStreamResponse(new ByteArrayInputStream(xml.getBytes()), "inline;filename=kpiExport_" + id + ".xml");
View Full Code Here

Examples of org.jboss.seam.solder.messages.Message.format()

                    if (formatString == null) {
                        return null;
                    }
                    ArrayList<Object> newArgs = new ArrayList<Object>();
                    Throwable cause = extractCause(parameterAnnotations, args, newArgs);
                    final Message.Format format = message.format();
                    switch (format) {
                        case PRINTF: {
                            logger.logf(level, cause, formatString, newArgs.toArray());
                            return null;
                        }
View Full Code Here

Examples of org.jeecgframework.core.annotation.query.QueryTimeFormat.format()

        } else if ("class java.util.Date".equals(type)) {
          QueryTimeFormat format = origDescriptors[i].getReadMethod()
              .getAnnotation(QueryTimeFormat.class);
          SimpleDateFormat userDefined = null;
          if (format != null) {
            userDefined = new SimpleDateFormat(format.format());
          }
          if (StringUtils.isNotBlank(beginValue)) {
            if (userDefined != null) {
              cq.ge(aliasName, time.parse(beginValue));
            } else if (beginValue.length() == 19) {
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.