Class AbstractMarshaller<A>

java.lang.Object
ch.tocco.nice2.persist.history.impl.xml.AbstractMarshaller<A>
All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher
Direct Known Subclasses:
DetachedEntityMarshaller

public abstract class AbstractMarshaller<A> extends Object implements com.thoughtworks.xstream.converters.Converter
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractMarshaller(Class<? extends A> type)
     
    protected
    AbstractMarshaller(Class<? extends A> type, boolean subtypes)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    final void
    marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
     
    protected A
    read(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
     
    final Object
    unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
     
    protected abstract void
    write(A source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
     

    Methods inherited from class java.lang.Object

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

    • AbstractMarshaller

      protected AbstractMarshaller(Class<? extends A> type, boolean subtypes)
    • AbstractMarshaller

      protected AbstractMarshaller(Class<? extends A> type)
  • Method Details

    • unmarshal

      public final Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
      Specified by:
      unmarshal in interface com.thoughtworks.xstream.converters.Converter
    • read

      protected A read(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
    • marshal

      public final void marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
      Specified by:
      marshal in interface com.thoughtworks.xstream.converters.Converter
    • write

      protected abstract void write(A source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
    • canConvert

      public boolean canConvert(Class type)
      Specified by:
      canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher