当前位置: 首页>>代码示例>>Java>>正文


Java SoapObject.getPropertyAsString方法代码示例

本文整理汇总了Java中org.ksoap2.serialization.SoapObject.getPropertyAsString方法的典型用法代码示例。如果您正苦于以下问题:Java SoapObject.getPropertyAsString方法的具体用法?Java SoapObject.getPropertyAsString怎么用?Java SoapObject.getPropertyAsString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.ksoap2.serialization.SoapObject的用法示例。


在下文中一共展示了SoapObject.getPropertyAsString方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: FromProperties

import org.ksoap2.serialization.SoapObject; //导入方法依赖的package包/类
@Override
public void FromProperties(SoapObject so) {
    idPropType = Integer.parseInt(so.getProperty("PropTypeID").toString());
    szTitle = so.getProperty("Title").toString();
    szSortKey = so.getPropertySafelyAsString("SortKey");
    szFormatString = so.getProperty("FormatString").toString();
    szDescription = ReadNullableString(so, "Description");
    cptType = CFPPropertyType.valueOf(so.getProperty("Type").toString());
    cptFlag = Integer.parseInt(so.getProperty("Flags").toString());
    IsFavorite = Boolean.parseBoolean(so.getProperty("IsFavorite").toString());
    SoapObject PrevVals = (SoapObject) so.getProperty("PreviousValues");
    int cVals = PrevVals.getPropertyCount();
    PreviousValues = new String[cVals];
    for (int i = 0; i < cVals; i++)
        PreviousValues[i] = PrevVals.getPropertyAsString(i);
}
 
开发者ID:ericberman,项目名称:MyFlightbookAndroid,代码行数:17,代码来源:CustomPropertyType.java

示例2: FromProperties

import org.ksoap2.serialization.SoapObject; //导入方法依赖的package包/类
public void FromProperties(SoapObject so) {
    CatClass = so.getPropertyAsString("CatClass");
    Category = so.getPropertyAsString("Category");
    Class = so.getPropertyAsString("Class");
    AltCatClass = Integer.parseInt(so.getPropertyAsString("AltCatClass"));
    IdCatClass = CatClassID.valueOf(so.getPropertyAsString("IdCatClass"));
}
 
开发者ID:ericberman,项目名称:MyFlightbookAndroid,代码行数:8,代码来源:CategoryClass.java

示例3: FromProperties

import org.ksoap2.serialization.SoapObject; //导入方法依赖的package包/类
@Override
public void FromProperties(SoapObject so) {
    Code = so.getProperty("Code").toString();
    try {
        Aliases = so.getPropertyAsString("Aliases");
    } catch (Exception e) {
        Aliases = "";
    }
    EarliestDate = IsoDate.stringToDate(so.getProperty("EarliestVisitDate").toString(), IsoDate.DATE);
    LatestDate = IsoDate.stringToDate(so.getProperty("LatestVisitDate").toString(), IsoDate.DATE);
    NumberOfVisits = Integer.parseInt(so.getProperty("NumberOfVisits").toString());
    airport = new Airport();
    airport.FromProperties((SoapObject) so.getProperty("Airport"));
}
 
开发者ID:ericberman,项目名称:MyFlightbookAndroid,代码行数:15,代码来源:VisitedAirport.java


注:本文中的org.ksoap2.serialization.SoapObject.getPropertyAsString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。