Class ConvertitoreClassiJs

java.lang.Object
it.ovunque.serializza.xstream.ConvertitoreClassiJs
All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher

public class ConvertitoreClassiJs extends Object implements com.thoughtworks.xstream.converters.Converter
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    ConvertitoreClassiJs(Class<?> classe, boolean ancheSottoclassi)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Determines whether the converter can marshall a particular type.
    void
    marshal(Object sorgente, com.thoughtworks.xstream.io.HierarchicalStreamWriter scrittoreRidotto, com.thoughtworks.xstream.converters.MarshallingContext contesto)
    Convert an object to textual data.
    static void
    ordinaCampi(boolean devoOrdinare)
     
    unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader lettore, com.thoughtworks.xstream.converters.UnmarshallingContext contesto)
    Convert textual data back into an object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConvertitoreClassiJs

      public ConvertitoreClassiJs(Class<?> classe)
    • ConvertitoreClassiJs

      public ConvertitoreClassiJs(Class<?> classe, boolean ancheSottoclassi)
  • Method Details

    • ordinaCampi

      public static void ordinaCampi(boolean devoOrdinare)
    • canConvert

      public boolean canConvert(Class tipo)
      Description copied from interface: com.thoughtworks.xstream.converters.ConverterMatcher
      Determines whether the converter can marshall a particular type.
      Specified by:
      canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher
      Parameters:
      tipo - the Class representing the object type to be converted
    • marshal

      public void marshal(Object sorgente, com.thoughtworks.xstream.io.HierarchicalStreamWriter scrittoreRidotto, com.thoughtworks.xstream.converters.MarshallingContext contesto)
      Description copied from interface: com.thoughtworks.xstream.converters.Converter
      Convert an object to textual data.
      Specified by:
      marshal in interface com.thoughtworks.xstream.converters.Converter
      Parameters:
      sorgente - The object to be marshalled.
      scrittoreRidotto - A stream to write to.
      contesto - A context that allows nested objects to be processed by XStream.
    • unmarshal

      public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader lettore, com.thoughtworks.xstream.converters.UnmarshallingContext contesto)
      Description copied from interface: com.thoughtworks.xstream.converters.Converter
      Convert textual data back into an object.
      Specified by:
      unmarshal in interface com.thoughtworks.xstream.converters.Converter
      Parameters:
      lettore - The stream to read the text from.
      Returns:
      The resulting object.