Package org.sonatype.mavenbook.weather.model

Examples of org.sonatype.mavenbook.weather.model.Condition


  location.setRegion( doc.valueOf("/rss/channel/y:location/@region") );
  location.setCountry( doc.valueOf("/rss/channel/y:location/@country") );
  location.setZip( zip );
  weather.setLocation( location );

  Condition condition = new Condition();
  condition.setText( doc.valueOf("/rss/channel/item/y:condition/@text") );
  condition.setTemp( doc.valueOf("/rss/channel/item/y:condition/@temp") );
  condition.setCode( doc.valueOf("/rss/channel/item/y:condition/@code") );
  condition.setDate( doc.valueOf("/rss/channel/item/y:condition/@date") );
  condition.setWeather( weather );
  weather.setCondition( condition );

  Atmosphere atmosphere = new Atmosphere();
  atmosphere.setHumidity( doc.valueOf("/rss/channel/y:atmosphere/@humidity") );
  atmosphere.setVisibility( doc.valueOf("/rss/channel/y:atmosphere/@visibility") );
View Full Code Here

TOP

Related Classes of org.sonatype.mavenbook.weather.model.Condition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.