| Constructor and Description |
|---|
XmlRegistry() |
| Modifier and Type | Method and Description |
|---|---|
<T> XmlReader<T> |
getReader(Class<T> clazz)
Returns the
XmlReader for the specified type |
<T> XmlWriter<T> |
getWriter(Class<T> clazz)
Returns the
XmlWriter for the specified type |
<T> void |
register(Class<T> clazz,
XmlReader<T> reader)
Registers the
XmlReader for the specified type |
<T> void |
register(Class<T> clazz,
XmlWriter<T> writer)
Registers the
XmlWriter for the specified type |
public <T> void register(Class<T> clazz, XmlReader<T> reader)
XmlReader for the specified typeT - The typeclazz - The classreader - The XmlReaderpublic <T> void register(Class<T> clazz, XmlWriter<T> writer)
XmlWriter for the specified typeT - The typeclazz - The classwriter - The XmlWriterpublic <T> XmlReader<T> getReader(Class<T> clazz)
XmlReader for the specified typeCopyright © 2013 Harald Pehl. All Rights Reserved.