public Route(Element e){
  Attribute a;
  if ((a=e.getAttribute(Xml.ID)) != null) {
    _id=a.getValue();
  }
 else {
    log.warn("no id attribute in route 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.LOCATION) != null) {
    @SuppressWarnings("unchecked") List<Element> eRouteLocations=e.getChildren(Xml.LOCATION);
    log.debug("route: ({}) has {} locations",getName(),eRouteLocations.size());
    for (    Element eRouteLocation : eRouteLocations) {
      register(new RouteLocation(eRouteLocation));
    }
  }
}

public Route ( Element e ) { Attribute a ; if ( ( a = e . getAttribute ( Xml . ID ) ) != null ) { _id = a . getValue ( ) ; } else { log . warn ( "no id attribute in route 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 . LOCATION ) != null ) { @ SuppressWarnings ( "unchecked" ) List < Element > eRouteLocations = e . getChildren ( Xml . LOCATION ) ; log . debug ( "route: ({}) has {} locations" , getName ( ) , eRouteLocations . size ( ) ) ; for ( Element eRouteLocation : eRouteLocations ) { register ( new RouteLocation ( eRouteLocation ) ) ; } } }
construct this entry from xml . this member has to remain synchronized with the detailed dtd in operations - config . xml
