Class DSLVariableValuesConverter

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

    public class DSLVariableValuesConverter
    extends com.thoughtworks.xstream.converters.collections.CollectionConverter
    This XStream converter converts legacy String DSL values into DSLVariableValue objects. XStream blindly unmarshalls members of a Collection according to their persisted XML type. For legacy DSLSentences this is a String whereas for newer (and correctly) it is DSLVariableValue.
    • Constructor Summary

      Constructors 
      Constructor Description
      DSLVariableValuesConverter​(com.thoughtworks.xstream.mapper.Mapper mapper)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addCurrentElementToCollection​(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context, Collection collection, Collection target)  
      • Methods inherited from class com.thoughtworks.xstream.converters.collections.CollectionConverter

        canConvert, createCollection, marshal, populateCollection, populateCollection, unmarshal
      • Methods inherited from class com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter

        mapper, readBareItem, readCompleteItem, readItem, writeBareItem, writeCompleteItem, writeItem, writeNullItem
    • Constructor Detail

      • DSLVariableValuesConverter

        public DSLVariableValuesConverter​(com.thoughtworks.xstream.mapper.Mapper mapper)
    • Method Detail

      • addCurrentElementToCollection

        protected void addCurrentElementToCollection​(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
                                                     com.thoughtworks.xstream.converters.UnmarshallingContext context,
                                                     Collection collection,
                                                     Collection target)
        Overrides:
        addCurrentElementToCollection in class com.thoughtworks.xstream.converters.collections.CollectionConverter