Class BendableLongScoreJaxbAdapter

java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Score_>
org.optaplanner.persistence.jaxb.api.score.AbstractScoreJaxbAdapter<org.optaplanner.core.api.score.buildin.bendablelong.BendableLongScore>
org.optaplanner.persistence.jaxb.api.score.buildin.bendablelong.BendableLongScoreJaxbAdapter

public class BendableLongScoreJaxbAdapter extends AbstractScoreJaxbAdapter<org.optaplanner.core.api.score.buildin.bendablelong.BendableLongScore>
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 Details

    • BendableLongScoreJaxbAdapter

      public BendableLongScoreJaxbAdapter()
  • Method Details

    • unmarshal

      public org.optaplanner.core.api.score.buildin.bendablelong.BendableLongScore unmarshal(String scoreString)
      Specified by:
      unmarshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,org.optaplanner.core.api.score.buildin.bendablelong.BendableLongScore>