Search in sources :

Example 1 with RevHistory

use of jmri.util.docbook.RevHistory in project JMRI by JMRI.

the class RevHistoryXml method storeDirectly.

public static Element storeDirectly(Object o) {
    final RevHistory r = (RevHistory) o;
    if (r == null) {
        return null;
    }
    Element e = historyElement(r);
    // and return
    return e;
}
Also used : Element(org.jdom2.Element) RevHistory(jmri.util.docbook.RevHistory)

Example 2 with RevHistory

use of jmri.util.docbook.RevHistory in project JMRI by JMRI.

the class RevHistoryXml method loadRevHistory.

public static RevHistory loadRevHistory(Element e) {
    RevHistory r = new RevHistory();
    java.util.List<Element> list = e.getChildren("revision", Namespace.getNamespace(NAMESPACE));
    for (int i = 0; i < list.size(); i++) {
        loadRevision(r, list.get(i));
    }
    return r;
}
Also used : Element(org.jdom2.Element) RevHistory(jmri.util.docbook.RevHistory)

Aggregations

RevHistory (jmri.util.docbook.RevHistory)2 Element (org.jdom2.Element)2