public abstract class XMLContext extends FormatContext
A context for xml serialization/deserialization.
The default xml format for any class is given by the
Format
inheritable annotation.
A default xml format exists for the following predefined types:
TextFormat
)
Modifier | Constructor and Description |
---|---|
protected |
XMLContext()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static XMLContext |
enter()
Enters and returns a new xml context instance.
|
static <T> XMLFormat<T> |
getFormat(Class<? extends T> type)
Returns the xml format for the specified type; if none defined
the default object xml format (based on
TextFormat ) is returned. |
protected abstract <T> XMLFormat<T> |
searchFormat(Class<? extends T> type)
Searches the xml format for the specified type.
|
abstract <T> void |
setFormat(Class<? extends T> type,
XMLFormat<T> format)
Sets the xml format for the specified type (and its sub-types).
|
current, current, enter, enterInner, exit, getOuter, inherit, inner
public static XMLContext enter()
public static <T> XMLFormat<T> getFormat(Class<? extends T> type)
TextFormat
) is returned.public abstract <T> void setFormat(Class<? extends T> type, XMLFormat<T> format)
Copyright © 2005-2013 Javolution. All Rights Reserved.