Class HardSoftScoreJaxbAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,Score_>
org.optaplanner.persistence.jaxb.api.score.AbstractScoreJaxbAdapter<HardSoftScore>
org.optaplanner.persistence.jaxb.api.score.buildin.hardsoft.HardSoftScoreJaxbAdapter
JAXB binding support for a
Score
type.
For example: use @XmlJavaTypeAdapter(HardSoftScoreJaxbAdapter.class)
on a HardSoftScore score
field and it will marshalled to XML as <score>-999hard/-999soft</score>
.
-
Constructor Summary
-
Method Summary
Methods inherited from class org.optaplanner.persistence.jaxb.api.score.AbstractScoreJaxbAdapter
marshal
-
Constructor Details
-
HardSoftScoreJaxbAdapter
public HardSoftScoreJaxbAdapter()
-
-
Method Details
-
unmarshal
- Specified by:
unmarshal
in classXmlAdapter<String,
HardSoftScore>
-