Class PropertyFormat

java.lang.Object
scriptella.text.PropertyFormat

public class PropertyFormat extends Object
Holds formatting/parsing rules for a property.
Since:
1.1
Author:
Fyodor Kupolov
  • Constructor Details

    • PropertyFormat

      public PropertyFormat()
  • Method Details

    • setPattern

      public void setPattern(String pattern) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getFormat

      protected Format getFormat()
    • setLocale

      public void setLocale(Locale locale)
    • isTrim

      public boolean isTrim()
    • setTrim

      public void setTrim(boolean trim)
    • getClassName

      public String getClassName()
    • setClassName

      public void setClassName(String className)
      Sets class name of a custom formatter (subclass of java.text.Format).
      Parameters:
      className - class name of a custom formatter
    • getNullString

      public String getNullString()
    • setNullString

      public void setNullString(String nullString)
    • getPadLeft

      public int getPadLeft()
    • setPadLeft

      public void setPadLeft(int padLeft)
    • getPadRight

      public int getPadRight()
    • setPadRight

      public void setPadRight(int padRight)
    • getPadChar

      public char getPadChar()
    • setPadChar

      public void setPadChar(char padChar)
    • parse

      public Object parse(String value)
    • format

      public String format(Object object)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • appendCommaSeparator

      protected static StringBuilder appendCommaSeparator(StringBuilder stringBuilder)