public abstract class FormatContext extends AbstractContext
The parent class for all serializer/deserializer contexts.
The context format type (plain text, XML, JSON, ...) is specified by
sub-classes. Classes may identify the plain text format through the
DefaultTextFormat
annotation
or the default XML format through the
DefaultXMLFormat
annotation.
@DefaultTextFormat(Complex.Cartesian.class) @DefaultXMLFormat(Complex.XML.class) public Complex { public static final class Cartesian extends javolution.text.TextFormat<Complex> { ... } public static final class Polar extends javolution.text.TextFormat<Complex> { ... } public static final class XML extends javolution.text.XMLFormat<Complex> { ... } ... }
Modifier | Constructor and Description |
---|---|
protected |
FormatContext()
Default constructor.
|
Copyright © 2005-2013 Javolution. All Rights Reserved.