Class TemplateConverter

java.lang.Object
org.esa.snap.core.gpf.descriptor.template.TemplateConverter
All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher

public class TemplateConverter extends Object implements com.thoughtworks.xstream.converters.Converter
Converter for XML serialization of templates.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TemplateConverter(com.thoughtworks.xstream.converters.Converter defaultConverter, com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
    marshal(Object o, com.thoughtworks.xstream.io.HierarchicalStreamWriter out, com.thoughtworks.xstream.converters.MarshallingContext context)
     
    unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader in, com.thoughtworks.xstream.converters.UnmarshallingContext context)
     

    Methods inherited from class java.lang.Object

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

    • TemplateConverter

      public TemplateConverter(com.thoughtworks.xstream.converters.Converter defaultConverter, com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
  • Method Details

    • canConvert

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

      public void marshal(Object o, com.thoughtworks.xstream.io.HierarchicalStreamWriter out, com.thoughtworks.xstream.converters.MarshallingContext context)
      Specified by:
      marshal in interface com.thoughtworks.xstream.converters.Converter
    • unmarshal

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