org.drools.workbench.models.commons.backend.rule
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.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.
| Methods inherited from class com.thoughtworks.xstream.converters.collections.CollectionConverter |
canConvert, marshal, populateCollection, populateCollection, unmarshal |
| Methods inherited from class com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter |
createCollection, mapper, readItem, writeItem |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DSLVariableValuesConverter
public DSLVariableValuesConverter(com.thoughtworks.xstream.mapper.Mapper mapper)
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
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.