public abstract class Representation
extends java.lang.Object
implements java.io.Serializable
The general idea for serialization of objects here is to have a structured intermediate format,
so that you can convert between Java object <-> Representation <-> Serialized format.
This conversion is done by a Converter class (the specific subclass depends on the chosen serialized format).
A Representation is a structured tree of (other) representations.
This allows one to universally represent structured objects.
Leaves are (boxed) primitives such as BigInteger, String, or byte[].
| Constructor and Description |
|---|
Representation() |
| Modifier and Type | Method and Description |
|---|---|
BigIntegerRepresentation |
bigInt()
Typecasts this object to a
BigIntegerRepresentation. |
ByteArrayRepresentation |
bytes()
Typecasts this object to a
ByteArrayRepresentation. |
ListRepresentation |
list()
Typecasts this object to a
ListRepresentation. |
MapRepresentation |
map()
Typecasts this object to a
MapRepresentation. |
ObjectRepresentation |
obj()
Typecasts this object to a
ObjectRepresentation. |
RepresentableRepresentation |
repr()
Typecasts this object to a
RepresentableRepresentation. |
StringRepresentation |
str()
Typecasts this object to a
StringRepresentation. |
public MapRepresentation map()
MapRepresentation.public BigIntegerRepresentation bigInt()
BigIntegerRepresentation.public ByteArrayRepresentation bytes()
ByteArrayRepresentation.public ListRepresentation list()
ListRepresentation.public ObjectRepresentation obj()
ObjectRepresentation.public RepresentableRepresentation repr()
RepresentableRepresentation.public StringRepresentation str()
StringRepresentation.