private static ShowInfo parseNextShowInfo ( Element eShowInfo ) { ShowInfo showInfo = new ShowInfo ( ) ; String text ; // ShowID showInfo . setShowID ( DOMHelper . getValueFromElement ( eShowInfo , "showid" ) ) ; // ShowName text = DOMHelper . getValueFromElement ( eShowInfo , "showname" ) ; if ( ! TVRageApi . isValidString ( text ) ) { text = DOMHelper . getValueFromElement ( eShowInfo , "name" ) ; } showInfo . setShowName ( text ) ; // ShowLink text = DOMHelper . getValueFromElement ( eShowInfo , "showlink" ) ; if ( ! TVRageApi . isValidString ( text ) ) { text = DOMHelper . getValueFromElement ( eShowInfo , "link" ) ; } showInfo . setShowLink ( text ) ; // Country text = DOMHelper . getValueFromElement ( eShowInfo , COUNTRY ) ; if ( ! TVRageApi . isValidString ( text ) ) { text = DOMHelper . getValueFromElement ( eShowInfo , "origin_country" ) ; } showInfo . setCountry ( text ) ; // Started showInfo . setStarted ( DOMHelper . getValueFromElement ( eShowInfo , "started" ) ) ; // StartDate showInfo . setStartDate ( DOMHelper . getValueFromElement ( eShowInfo , "startdate" ) ) ; // Ended showInfo . setEnded ( DOMHelper . getValueFromElement ( eShowInfo , "ended" ) ) ; // Seasons showInfo . setTotalSeasons ( DOMHelper . getValueFromElement ( eShowInfo , "seasons" ) ) ; // Status showInfo . setStatus ( DOMHelper . getValueFromElement ( eShowInfo , "status" ) ) ; // Classification showInfo . setClassification ( DOMHelper . getValueFromElement ( eShowInfo , "classification" ) ) ; // Summary showInfo . setSummary ( DOMHelper . getValueFromElement ( eShowInfo , SUMMARY ) ) ; // Runtime showInfo . setRuntime ( DOMHelper . getValueFromElement ( eShowInfo , "runtime" ) ) ; // Air Time showInfo . setAirTime ( DOMHelper . getValueFromElement ( eShowInfo , "airtime" ) ) ; // Air Day showInfo . setAirDay ( DOMHelper . getValueFromElement ( eShowInfo , "airday" ) ) ; // Time Zone showInfo . setTimezone ( DOMHelper . getValueFromElement ( eShowInfo , "timezone" ) ) ; // Network processNetwork ( showInfo , eShowInfo ) ; // AKAs processAka ( showInfo , eShowInfo ) ; // Genres processGenre ( showInfo , eShowInfo ) ; return showInfo ; }
Parse the show info element into a ShowInfo object