Class IngestDocumentConverter

  • All Implemented Interfaces:
    com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher

    public class IngestDocumentConverter
    extends AbstractConverter
    Marshals/unmarshals Attivio documents to/from XML.
    • Constructor Detail

      • IngestDocumentConverter

        public IngestDocumentConverter()
    • Method Detail

      • canConvert

        public boolean canConvert​(java.lang.Class clazz)
        Tells whether this converter is capable of converting objects of the specified class
      • marshal

        public void marshal​(java.lang.Object source,
                            com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
                            com.thoughtworks.xstream.converters.MarshallingContext context)
        Marshals an Attivio document.
      • unmarshal

        public java.lang.Object unmarshal​(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
                                          com.thoughtworks.xstream.converters.UnmarshallingContext context)
        Unmarshals an Attivio document.
        Parameters:
        reader - the reader
        context - the context
        Returns:
        the Attivio document
      • unmarshal

        public static void unmarshal​(IngestDocument doc,
                                     com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
                                     com.thoughtworks.xstream.converters.UnmarshallingContext context,
                                     com.thoughtworks.xstream.mapper.Mapper mapper)
        Static method to unmarshal an AttivioDocument.