Package scriptella.text
Class PropertyFormat
java.lang.Object
scriptella.text.PropertyFormat
Holds formatting/parsing rules for a property.
- Since:
- 1.1
- Author:
- Fyodor Kupolov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringBuilderappendCommaSeparator(StringBuilder stringBuilder) protected FormatcharintintgetType()booleanisTrim()voidsetClassName(String className) Sets class name of a custom formatter (subclass of java.text.Format).voidvoidsetNullString(String nullString) voidsetPadChar(char padChar) voidsetPadLeft(int padLeft) voidsetPadRight(int padRight) voidsetPattern(String pattern) voidsetTrim(boolean trim) voidtoString()
-
Constructor Details
-
PropertyFormat
public PropertyFormat()
-
-
Method Details
-
setPattern
- Throws:
IllegalArgumentException
-
getType
-
setType
-
getFormat
-
setLocale
-
isTrim
public boolean isTrim() -
setTrim
public void setTrim(boolean trim) -
getClassName
-
setClassName
Sets class name of a custom formatter (subclass of java.text.Format).- Parameters:
className- class name of a custom formatter
-
getNullString
-
setNullString
-
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
-
format
-
toString
-
appendCommaSeparator
-