Class DSLVariableValuesConverter
- java.lang.Object
-
- com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter
-
- com.thoughtworks.xstream.converters.collections.CollectionConverter
-
- org.drools.workbench.models.commons.backend.rule.DSLVariableValuesConverter
-
- All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter,com.thoughtworks.xstream.converters.ConverterMatcher
public class DSLVariableValuesConverter extends com.thoughtworks.xstream.converters.collections.CollectionConverterThis 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 voidaddCurrentElementToCollection(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
-
-
-
-
Method Detail
-
addCurrentElementToCollection
protected void addCurrentElementToCollection(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context, Collection collection, Collection target)- Overrides:
addCurrentElementToCollectionin classcom.thoughtworks.xstream.converters.collections.CollectionConverter
-
-