|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.janrufmonitor.util.formatter.Formatter
public class Formatter
This class provides formatting functions for phonenumbers and names.
| Method Summary | |
|---|---|
static Formatter |
getInstance(IRuntime runtime)
Gets the singleton instance of the Formatter for the specified IRuntime instance. |
String |
getParsedCall(String text,
ICall call)
Deprecated. |
String |
getParsedCaller(String text,
ICaller caller)
Deprecated. |
String |
getParsedCalltime(String text,
Date date)
Deprecated. |
String |
getParsedName(String text,
IName name)
Deprecated. |
String |
getParsedPhonenumber(String text,
IPhonenumber pn)
Deprecated. |
IPhonenumber |
getPhonenumber(String phone,
String format)
Parses a phone string and tries to build a valid IPhonenumber object. |
String |
normalizePhonenumber(String phone)
|
String |
parse(String text,
Object o)
Parses the String object and replaces the standard placeholders with the value of the passed Object. |
String |
toCallablePhonenumber(String phone)
Formats a string with number information in a callable format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Formatter getInstance(IRuntime runtime)
runtime -
public String parse(String text,
Object o)
text - String containing the standard placeholders.o - object to get the data for replacement from
public IPhonenumber getPhonenumber(String phone,
String format)
phone -
public String getParsedCall(String text,
ICall call)
text - text to parsecall - object to get the information from
public String getParsedCalltime(String text,
Date date)
text - text to parsedate - object to get the information from
public String getParsedCaller(String text,
ICaller caller)
text - text to parsecaller - object to get the information from
public String getParsedPhonenumber(String text,
IPhonenumber pn)
text - text to parsephonenumber - object to get the information from
public String getParsedName(String text,
IName name)
text - text to parseName - object to get the information from
public String normalizePhonenumber(String phone)
public String toCallablePhonenumber(String phone)
phone -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||