public TrainSchedule(Element e){
  org.jdom2.Attribute a;
  if ((a=e.getAttribute(Xml.ID)) != null) {
    _id=a.getValue();
  }
 else {
    log.warn("no id attribute in schedule element when reading operations");
  }
  if ((a=e.getAttribute(Xml.NAME)) != null) {
    _name=a.getValue();
  }
  if ((a=e.getAttribute(Xml.COMMENT)) != null) {
    _comment=a.getValue();
  }
  if ((a=e.getAttribute(Xml.TRAIN_IDS)) != null) {
    String ids=a.getValue();
    String[] trainIds=ids.split(",");
    for (    String id : trainIds) {
      _trainIds.add(id);
    }
  }
}

public TrainSchedule ( Element e ) { org . jdom2 . Attribute a ; if ( ( a = e . getAttribute ( Xml . ID ) ) != null ) { _id = a . getValue ( ) ; } else { log . warn ( "no id attribute in schedule element when reading operations" ) ; } if ( ( a = e . getAttribute ( Xml . NAME ) ) != null ) { _name = a . getValue ( ) ; } if ( ( a = e . getAttribute ( Xml . COMMENT ) ) != null ) { _comment = a . getValue ( ) ; } if ( ( a = e . getAttribute ( Xml . TRAIN_IDS ) ) != null ) { String ids = a . getValue ( ) ; String [ ] trainIds = ids . split ( "," ) ; for ( String id : trainIds ) { _trainIds . add ( id ) ; } } }
construct this entry from xml . this member has to remain synchronized with the detailed dtd in operations - trains . xml
