Package it.ovunque.serializza.xstream
Class ConvertitoreCollezioniJs
java.lang.Object
it.ovunque.serializza.xstream.ConvertitoreCollezioniJs
- All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter
,com.thoughtworks.xstream.converters.ConverterMatcher
public class ConvertitoreCollezioniJs
extends Object
implements com.thoughtworks.xstream.converters.Converter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canConvert
(Class tipoP) Determines whether the converter can marshall a particular type.void
marshal
(Object sorgente, com.thoughtworks.xstream.io.HierarchicalStreamWriter scrittore, com.thoughtworks.xstream.converters.MarshallingContext context) Convert an object to textual data.void
saltaNulli
(boolean salta) unmarshal
(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context) Convert textual data back into an object.
-
Constructor Details
-
ConvertitoreCollezioniJs
public ConvertitoreCollezioniJs() -
ConvertitoreCollezioniJs
-
-
Method Details
-
marshal
public void marshal(Object sorgente, com.thoughtworks.xstream.io.HierarchicalStreamWriter scrittore, com.thoughtworks.xstream.converters.MarshallingContext context) Description copied from interface:com.thoughtworks.xstream.converters.Converter
Convert an object to textual data.- Specified by:
marshal
in interfacecom.thoughtworks.xstream.converters.Converter
- Parameters:
sorgente
- The object to be marshalled.scrittore
- A stream to write to.context
- A context that allows nested objects to be processed by XStream.
-
unmarshal
public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context) Description copied from interface:com.thoughtworks.xstream.converters.Converter
Convert textual data back into an object.- Specified by:
unmarshal
in interfacecom.thoughtworks.xstream.converters.Converter
- Parameters:
reader
- The stream to read the text from.- Returns:
- The resulting object.
- See Also:
-
Converter.unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader, com.thoughtworks.xstream.converters.UnmarshallingContext)
-
canConvert
Description copied from interface:com.thoughtworks.xstream.converters.ConverterMatcher
Determines whether the converter can marshall a particular type.- Specified by:
canConvert
in interfacecom.thoughtworks.xstream.converters.ConverterMatcher
- Parameters:
tipoP
- the Class representing the object type to be converted
-
saltaNulli
public void saltaNulli(boolean salta)
-