Drools Workbench - Common Model 6.0.0.Beta3

org.drools.workbench.models.commons.backend.rule
Class DSLVariableValuesConverter

java.lang.Object
  extended by com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter
      extended by com.thoughtworks.xstream.converters.collections.CollectionConverter
          extended by 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.


Constructor Summary
DSLVariableValuesConverter(com.thoughtworks.xstream.mapper.Mapper mapper)
           
 
Method Summary
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, 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
 

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

Drools Workbench - Common Model 6.0.0.Beta3

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.