public class PropertyFormat
extends java.lang.Object
Constructor and Description |
---|
PropertyFormat() |
Modifier and Type | Method and Description |
---|---|
protected static java.lang.StringBuilder |
appendCommaSeparator(java.lang.StringBuilder stringBuilder) |
java.lang.String |
format(java.lang.Object object) |
java.lang.String |
getClassName() |
protected java.text.Format |
getFormat() |
java.lang.String |
getNullString() |
char |
getPadChar() |
int |
getPadLeft() |
int |
getPadRight() |
java.lang.String |
getType() |
boolean |
isTrim() |
java.lang.Object |
parse(java.lang.String value) |
void |
setClassName(java.lang.String className)
Sets class name of a custom formatter (subclass of java.text.Format).
|
void |
setLocale(java.util.Locale locale) |
void |
setNullString(java.lang.String nullString) |
void |
setPadChar(char padChar) |
void |
setPadLeft(int padLeft) |
void |
setPadRight(int padRight) |
void |
setPattern(java.lang.String pattern) |
void |
setTrim(boolean trim) |
void |
setType(java.lang.String type) |
java.lang.String |
toString() |
public void setPattern(java.lang.String pattern) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.lang.String getType()
public void setType(java.lang.String type)
protected java.text.Format getFormat()
public void setLocale(java.util.Locale locale)
public boolean isTrim()
public void setTrim(boolean trim)
public java.lang.String getClassName()
public void setClassName(java.lang.String className)
className
- class name of a custom formatterpublic java.lang.String getNullString()
public void setNullString(java.lang.String nullString)
public int getPadLeft()
public void setPadLeft(int padLeft)
public int getPadRight()
public void setPadRight(int padRight)
public char getPadChar()
public void setPadChar(char padChar)
public java.lang.Object parse(java.lang.String value)
public java.lang.String format(java.lang.Object object)
public java.lang.String toString()
toString
in class java.lang.Object
protected static java.lang.StringBuilder appendCommaSeparator(java.lang.StringBuilder stringBuilder)
Copyright © Copyright 2006-2019 The Scriptella Project Team.