本文整理汇总了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);
}
示例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"));
}
示例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"));
}