public class XStreamScoreConverter extends Object implements com.thoughtworks.xstream.converters.Converter
Score implementations require specific subclasses:
For BendableScore, use XStreamBendableScoreConverter.| Constructor and Description |
|---|
XStreamScoreConverter(Class<? extends org.optaplanner.core.api.score.Score> scoreClass,
Class<? extends org.optaplanner.core.impl.score.definition.ScoreDefinition> scoreDefinitionClass) |
XStreamScoreConverter(org.optaplanner.core.impl.score.definition.ScoreDefinition scoreDefinition) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Class type) |
void |
marshal(Object scoreObject,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context) |
Object |
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context) |
public XStreamScoreConverter(org.optaplanner.core.impl.score.definition.ScoreDefinition scoreDefinition)
public boolean canConvert(Class type)
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcherpublic void marshal(Object scoreObject, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
marshal in interface com.thoughtworks.xstream.converters.Converterpublic Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
unmarshal in interface com.thoughtworks.xstream.converters.ConverterCopyright © 2006–2015 JBoss by Red Hat. All rights reserved.