Class XStreamMarshallableSupport<D>
- java.lang.Object
-
- it.tidalwave.thesefoolishthings.examples.person.XStreamMarshallableSupport<D>
-
- All Implemented Interfaces:
Marshallable
- Direct Known Subclasses:
DefaultPersonRegistryXStreamMarshallable
,ListOfPersonsXStreamMarshallable
,PersonXStreamMarshallable
public abstract class XStreamMarshallableSupport<D> extends java.lang.Object implements Marshallable
A facility class for implementing aMarshallable
using XStream. Subclass properly and eventually overridegetMarshallingObject(java.lang.Object)
when only a part of the datum must be considered by XStream.- Author:
- Fabrizio Giudici
-
-
Field Summary
-
Fields inherited from interface it.tidalwave.role.io.Marshallable
_Marshallable_
-
-
Constructor Summary
Constructors Constructor Description XStreamMarshallableSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
getMarshallingObject(D datum)
void
marshal(java.io.OutputStream os)
Marshals this object to anOutputStream
.
-
-
-
Method Detail
-
marshal
public final void marshal(@Nonnull java.io.OutputStream os) throws java.io.IOException
Description copied from interface:Marshallable
Marshals this object to anOutputStream
.- Specified by:
marshal
in interfaceMarshallable
- Parameters:
os
- theOutputStream
- Throws:
java.io.IOException
- in case of errors
-
getMarshallingObject
@Nonnull protected java.lang.Object getMarshallingObject(@Nonnull D datum)
-
-