Examples of format()


Examples of cascading.tuple.Tuple.format()

    protected void collect( TupleEntry tupleEntry ) throws IOException
      {
      if( pathFields != null )
        {
        Tuple pathValues = tupleEntry.selectTuple( pathFields );
        String path = pathValues.format( pathTemplate );

        getCollector( path ).add( tupleEntry.selectTuple( parentFields ) );
        }
      else
        {
View Full Code Here

Examples of ch.qos.logback.core.util.CachingDateFormatter.format()

    if (inError)
      return;

    CachingDateFormatter sdf = new CachingDateFormatter(datePatternStr);
    String val = sdf.format(timeReference);

    addInfo("Adding property to the context with key=\"" + keyStr
        + "\" and value=\"" + val + "\" to the context");
    context.putProperty(keyStr, val);
  }
View Full Code Here

Examples of client.net.sf.saxon.ce.expr.number.NumberFormatter.format()

            nf.prepare(format.evaluateAsString(context).toString());
        } else {
            nf = formatter;
        }

        CharSequence s = nf.format(vec, gpsize, gpseparator, letterVal, ordinalVal, numb);
        return new StringValue(s);
    }


}
View Full Code Here

Examples of cn.com.annotations.Element.format()

        for (Field field : fields) {
            element = field.getAnnotation(Element.class);
            if (element != null && !StringUtil.isEmpty(element.defaultValue())) {
                _VALIDATOR.validate(element);
                // 保存元素内容
                elementValue.put(field.getName(), _FORMATTER.converObject(element.format(), element.defaultValue()));

            }
        }
    }
View Full Code Here

Examples of com.alibaba.citrus.util.ToStringBuilder.format()

        }

        if (!resources.isEmpty() && log.isDebugEnabled()) {
            ToStringBuilder buf = new ToStringBuilder();

            buf.format("Found %d versioned schema files for contribution %s:", resources.size(), mainName);
            buf.append(resources);

            log.debug(buf.toString());
        }
View Full Code Here

Examples of com.alibaba.citrus.util.internal.ToStringBuilder.format()

        ToStringBuilder buf = new ToStringBuilder();

        buf.append(getBeanDescription()).start();

        for (RequestContextFactory<?> factory : factories) {
            buf.format("  %s with features %s, ordering %s\n", factory.getRequestContextInterface().getSimpleName(),
                    asList(factory.getFeatures()), asList(factory.featureOrders()));
        }

        return buf.end().toString();
    }
View Full Code Here

Examples of com.alibaba.fastjson.annotation.JSONField.format()

    private void _writeObject(MethodVisitor mw, FieldInfo fieldInfo, Context context, Label _end) {
        String format = null;
        JSONField annotation = fieldInfo.getAnnotation(JSONField.class);

        if (annotation != null) {
            format = annotation.format();

            if (format.trim().length() == 0) {
                format = null;
            }
        }
View Full Code Here

Examples of com.ancientprogramming.fixedformat4j.format.FixedFormatter.format()

    return formatter.parse(value, instructions);
  }

  public String format(Object value, FormatInstructions instructions) {
    FixedFormatter formatter = actualFormatter(context.getDataType());
    return formatter.format(value, instructions);
  }

  public FixedFormatter actualFormatter(final Class<? extends Object> dataType) {
    Class<? extends FixedFormatter> formatterClass = KNOWN_FORMATTERS.get(dataType);
View Full Code Here

Examples of com.ardublock.translator.AutoFormat.format()

      AutoFormat formatter = new AutoFormat();
      String codeOut = code.toString();
     
      if (context.isNeedAutoFormat)
      {
        codeOut = formatter.format(codeOut);
      }
     
      if (!context.isInArduino())
      {
        System.out.println(codeOut);
View Full Code Here

Examples of com.bazaarvoice.snitch.Formatter.format()

                    // Only render as an array if we have a name collision
                    writer.beginArray();
                }
                for (Variable variable : vars) {
                    Formatter formatter = _snitch.getFormatter(variable);
                    formatter.format(variable.getValue(), writer);
                }
                if (vars.size() > 1) {
                    writer.endArray();
                }
            }
View Full Code Here
TOP
Copyright © 2015 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.