|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object th.co.edge.jseq.FormatterRegistry
public class FormatterRegistry
A singleton that holds all Formatter
s known to the system.
Method Summary | |
---|---|
Formatter |
get(java.lang.String type)
Returns the Formatter associated with the given name. |
java.lang.String |
getFormatterTypes()
Returns a comma-separated list with the names of the formatters that have been registered. |
static FormatterRegistry |
getInstance()
Returns the only instance of this singleton. |
void |
register(java.lang.String type,
Formatter formatter)
Registers a new Formatter so that it can be used |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static FormatterRegistry getInstance()
Formatter
s for some commonly used formats, e.g., text and
SVG, but more can be added using the register
method.
register(String, Formatter)
public Formatter get(java.lang.String type)
Formatter
associated with the given name.
type
- the name of the Formatter
to look up
Formatter
associated with type
public java.lang.String getFormatterTypes()
public void register(java.lang.String type, Formatter formatter)
Formatter
so that it can be used
type
- the name of the Formatter
formatter
- the Formatter
to associate with
type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |