Class SimpleScoreJaxbAdapter


  • public class SimpleScoreJaxbAdapter
    extends AbstractScoreJaxbAdapter<org.optaplanner.core.api.score.buildin.simple.SimpleScore>
    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 Detail

      • SimpleScoreJaxbAdapter

        public SimpleScoreJaxbAdapter()
    • Method Detail

      • unmarshal

        public org.optaplanner.core.api.score.buildin.simple.SimpleScore unmarshal​(String scoreString)
        Specified by:
        unmarshal in class XmlAdapter<String,​org.optaplanner.core.api.score.buildin.simple.SimpleScore>