Package org.wsdmdemo.service.weatherStation.impl

Examples of org.wsdmdemo.service.weatherStation.impl.TemperatureMetricTypeImpl


    return null;
  }
  public int getTemperature() throws FaultException {
    XmlObject[] tempArry=m_ws.getResourceProperty(weatherStationTempQname);
    if(tempArry.length>0){
      TemperatureMetricTypeImpl x=(TemperatureMetricTypeImpl)tempArry[0];
     
      String value=x.newCursor().getTextValue();
      return new Long(Math.round(x.doubleValue())).intValue();
    }
    return -1;
  }
View Full Code Here

TOP

Related Classes of org.wsdmdemo.service.weatherStation.impl.TemperatureMetricTypeImpl

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.