Class SimpleScoreJaxbAdapter


  • public class SimpleScoreJaxbAdapter
    extends AbstractScoreJaxbAdapter<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 SimpleScore unmarshal​(String scoreString)
        Specified by:
        unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<String,​SimpleScore>