Class SimpleScoreJaxbAdapter

java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Score_>
org.optaplanner.persistence.jaxb.api.score.AbstractScoreJaxbAdapter<org.optaplanner.core.api.score.buildin.simple.SimpleScore>
org.optaplanner.persistence.jaxb.api.score.buildin.simple.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 Details

    • SimpleScoreJaxbAdapter

      public SimpleScoreJaxbAdapter()
  • Method Details

    • unmarshal

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