Package br.net.woodstock.rockframework.core.string

Examples of br.net.woodstock.rockframework.core.string.StringFormatter


  private StringFormatter    format;

  public TextConverter(final String pattern) {
    super();
    this.format = new StringFormatter(pattern);
  }
View Full Code Here


    this.format = new StringFormatter(pattern);
  }

  public TextConverter(final String pattern, final char character) {
    super();
    this.format = new StringFormatter(pattern, character);
  }
View Full Code Here

  public void doTag() throws IOException {
    if (this.value == null) {
      return;
    }

    StringFormatter format = new StringFormatter(this.format, this.character);
    String value = this.value.toString();
    Writer writer = this.getJspContext().getOut();
    String formated = "";

    try {
      formated = format.format(value);
      formated = Strings.escapeHTML(formated);
    } catch (ArrayIndexOutOfBoundsException e) {
      RockFrameworkLogger.getLogger().warn("Error formating '" + value + "'  with mask '" + this.format + "'");
      formated = FormatTag.ERROR_VALUE;
    }
View Full Code Here

TOP

Related Classes of br.net.woodstock.rockframework.core.string.StringFormatter

Copyright © 2018 www.massapicom. 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.