public Schedule(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 (e.getChildren(Xml.ITEM) != null) {
    @SuppressWarnings("unchecked") List<Element> eScheduleItems=e.getChildren(Xml.ITEM);
    log.debug("schedule: {} has {} items",getName(),eScheduleItems.size());
    for (    Element eScheduleItem : eScheduleItems) {
      register(new ScheduleItem(eScheduleItem));
    }
  }
}

public Schedule ( 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 ( e . getChildren ( Xml . ITEM ) != null ) { @ SuppressWarnings ( "unchecked" ) List < Element > eScheduleItems = e . getChildren ( Xml . ITEM ) ; log . debug ( "schedule: {} has {} items" , getName ( ) , eScheduleItems . size ( ) ) ; for ( Element eScheduleItem : eScheduleItems ) { register ( new ScheduleItem ( eScheduleItem ) ) ; } } }
construct this entry from xml . this member has to remain synchronized with the detailed dtd in operations - config . xml
