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;
}
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;
}
Aggregations