Код: Выделить всё
@XmlElement(name = "selectableMatrix")
public ObservableList getSelectableMatrix() {
return selectableMatrix;
}
Что мне нужно сделать ?
РЕДАКТИРОВАТЬ
Я попробовал, как предложил Скотт ниже, ObservableList. Я получил
Код: Выделить всё
org.glassfish.jaxb.runtime.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
javafx.collections.ObservableList ist eine Schnittstelle, und JAXB kann keine Schnittstellen verarbeiten.
this problem is related to the following location:
at javafx.collections.ObservableList
at protected javafx.collections.ObservableList de.levin.domain.SessionFlowModel.selectableMatrix
at de.levin.domain.SessionFlowModel
Поэтому я добавил аннотацию @XmlJavaTypeAdapter
Код: Выделить всё
@XmlJavaTypeAdapter(ObservableListAdapter.class) // Since JAXB can't deal with interfaces, use this adapter class
protected ObservableList selectableMatrix; // matrix indicating whether a transition between two exercises is possible or not
Подробнее здесь: https://stackoverflow.com/questions/791 ... st-in-jaxb
Мобильная версия