• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java PropertyInfo类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.ksoap2.serialization.PropertyInfo的典型用法代码示例。如果您正苦于以下问题:Java PropertyInfo类的具体用法?Java PropertyInfo怎么用?Java PropertyInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PropertyInfo类属于org.ksoap2.serialization包,在下文中一共展示了PropertyInfo类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getPropertyInfo

import org.ksoap2.serialization.PropertyInfo; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
public void getPropertyInfo(int i, Hashtable h, PropertyInfo pi) {
    FPProp fp = FPProp.values()[i];
    switch (fp) {
        case pidLat:
            pi.type = PropertyInfo.OBJECT_CLASS;
            pi.name = "Latitude";
            break;
        case pidLng:
            pi.type = PropertyInfo.OBJECT_CLASS;
            pi.name = "Longitude";
            break;
        default:
            break;
    }
}
 
开发者ID:ericberman,项目名称:MyFlightbookAndroid,代码行数:17,代码来源:LatLong.java


示例2: getPropertyInfo

import org.ksoap2.serialization.PropertyInfo; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
public void getPropertyInfo(int i, Hashtable h, PropertyInfo pi) {
    MakeModelProp mmp = MakeModelProp.values()[i];
    switch (mmp) {
        case pidMakeModelID:
            pi.type = PropertyInfo.INTEGER_CLASS;
            pi.name = "MakeModelID";
            break;
        case pidModelName:
            pi.type = PropertyInfo.STRING_CLASS;
            pi.name = "ModelName";
            break;
        default:
            break;
    }
}
 
开发者ID:ericberman,项目名称:MyFlightbookAndroid,代码行数:17,代码来源:MakeModel.java


示例3: getPropertyInfo

import org.ksoap2.serialization.PropertyInfo; //导入依赖的package包/类
public void getPropertyInfo(int i, Hashtable arg1, PropertyInfo pi) {
    CatClassProp ccp = CatClassProp.values()[i];
    switch (ccp) {
        // Date properties.
        case pidCatClass:
            pi.type = PropertyInfo.STRING_CLASS;
            pi.name = "CatClass";
            break;
        case pidCategory:
            pi.type = PropertyInfo.STRING_CLASS;
            pi.name = "Category";
            break;
        case pidClass:
            pi.type = PropertyInfo.STRING_CLASS;
            pi.name = "Class";
            break;
        case pidAltCatClass:
            pi.type = PropertyInfo.INTEGER_CLASS;
            pi.name = "AltCatClass";
            break;
        case pidCatClassId:
            pi.type = PropertyInfo.STRING_CLASS;
            pi.name = "IdCatClass";
            break;
    }
}
 
开发者ID:ericberman,项目名称:MyFlightbookAndroid,代码行数:27,代码来源:CategoryClass.java


示例4: getPropertyInfo

import org.ksoap2.serialization.PropertyInfo; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
public void getPropertyInfo(int i, Hashtable h, PropertyInfo pi) {
    postingOptions po = postingOptions.values()[i];
    switch (po) {
        case pidTwitter:
            pi.type = PropertyInfo.BOOLEAN_CLASS;
            pi.name = "PostToTwitter";
            break;
        case pidFacebook:
            pi.type = PropertyInfo.BOOLEAN_CLASS;
            pi.name = "PostToFacebook";
            break;
        default:
            break;
    }
}
 
开发者ID:ericberman,项目名称:MyFlightbookAndroid,代码行数:17,代码来源:PostingOptions.java


示例5: getPropertyInfo

import org.ksoap2.serialization.PropertyInfo; //导入依赖的package包/类
@Override
public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {
	switch(arg0){
	case 0: arg2.name="dataNadania"; arg2.type=Date.class; break;
	case 1: arg2.name="kodKrajuNadania"; arg2.type=PropertyInfo.STRING_CLASS; break;
	case 2: arg2.name="kodKrajuPrzezn"; arg2.type=PropertyInfo.STRING_CLASS; break;
	case 3: arg2.name="kodRodzPrzes"; arg2.type=PropertyInfo.STRING_CLASS; break;
	case 4: arg2.name="krajNadania"; arg2.type=PropertyInfo.STRING_CLASS; break;
	case 5: arg2.name="krajPrzezn"; arg2.type=PropertyInfo.STRING_CLASS; break;
	case 6: arg2.name="masa"; arg2.type=Double.class; break;
	case 7: arg2.name="numer"; arg2.type=PropertyInfo.STRING_CLASS; break;
	case 8: arg2.name="rodzPrzes"; arg2.type=PropertyInfo.STRING_CLASS; break;
	case 9: arg2.name="urzadNadania"; arg2.type=Jednostka.class; break;
	case 10: arg2.name="urzadPrzezn"; arg2.type=Jednostka.class; break;
	case 11: arg2.name="zakonczonoObsluge"; arg2.type=PropertyInfo.BOOLEAN_CLASS; break;
	case 12: arg2.name="zdarzenia"; arg2.type=PropertyInfo.VECTOR_CLASS; break;
	}
}
 
开发者ID:mmprog,项目名称:wspocztapolska,代码行数:19,代码来源:DanePrzesylki.java


示例6: addMappings

import org.ksoap2.serialization.PropertyInfo; //导入依赖的package包/类
void addMappings(SoapSerializationEnvelope envelope, String outerBox){
    //structures mapping
    envelope.addMapping(NAMESPACE, outerBox, WSResponse.class);
    envelope.addMapping(AX21, "Przesylka", Komunikat.class);
    envelope.addMapping(AX21, "DanePrzesylki", DanePrzesylki.class);
    envelope.addMapping(AX21, "ListaZdarzen", PropertyInfo.VECTOR_CLASS);
    envelope.addMapping(AX21, "Jednostka", Jednostka.class);
    envelope.addMapping(AX21, "Zdarzenie", Zdarzenie.class);
    envelope.addMapping(AX21, "Przyczyna", Przyczyna.class);
    
    //primitives mapping
    MarshalDateCustom marshalDateCust=new MarshalDateCustom();
    MarshalDouble marshalDouble=new MarshalDouble();
    
    //what we dealing with here is the total lack of respect for the law
    //null mapping and any name (different name for each mapping)
    //so marshaller will be choosen by type requested in parent KVMSerializable
    envelope.addMapping(null, "Date", Date.class, marshalDateCust);
    envelope.addMapping(null, "Double", Double.class, marshalDouble );
}
 
开发者ID:mmprog,项目名称:wspocztapolska,代码行数:21,代码来源:WSPoczta.java


示例7: parseMap

import org.ksoap2.serialization.PropertyInfo; //导入依赖的package包/类
private static void parseMap(SoapObject in, Map outMap) throws IllegalAccessException, InstantiationException {
    // Get the type of the elements in the collection
    ParameterizedType fieldParametrizedType = (ParameterizedType) outMap.getClass().getGenericSuperclass();
    Class valType = (Class) fieldParametrizedType.getActualTypeArguments()[1];

    int n = in.getPropertyCount();

    for (int i = 0; i < n; ++i){
        PropertyInfo propInfo = new PropertyInfo();
        in.getPropertyInfo(i, propInfo);

        Object soapElem = in.getProperty(i);
        String key = propInfo.getName();
        Object elem;

        if ( soapElem == null || canBeAssignedDirectly(soapElem.getClass()) ) {
            elem = soapElem;
        }
        else {
            elem = valType.newInstance();
            parse((SoapObject) soapElem, elem);
        }

        outMap.put(key, elem);
    }
}
 
开发者ID:prashant31191,项目名称:meets-android,代码行数:27,代码来源:SoapParser.java


示例8: getStatus

import org.ksoap2.serialization.PropertyInfo; //导入依赖的package包/类
public ArrayList<HashMap<String, String>> getStatus(int[] bugNumbers) {
    PropertyInfo[] properties = new PropertyInfo[bugNumbers.length];
    for (int i = 0; i < bugNumbers.length; i++) {
        properties[i] = new PropertyInfo();
        properties[i].setName("bugnumber");
        properties[i].setValue(bugNumbers[i]);
        properties[i].setType(int.class);
    }
    try {
        String response = doRequest("get_status", "get_status", properties).toString();
        response = response.replace("get_statusResponse{s-gensym3=Map{", "").trim();
        return parseStatuses(response.substring(0, response.length() - 4), bugNumbers);
    } catch (Exception e) {
        e.printStackTrace();
    }
    return new ArrayList<HashMap<String, String>>();
}
 
开发者ID:uberspot,项目名称:DebianDroid,代码行数:18,代码来源:BTSSoapCaller.java


示例9: getBugLog

import org.ksoap2.serialization.PropertyInfo; //导入依赖的package包/类
public ArrayList<HashMap<String, String>> getBugLog(int bugNumber) {
    PropertyInfo[] properties = new PropertyInfo[1];
    properties[0] = new PropertyInfo();
    properties[0].setName("bugnumber");
    properties[0].setValue(bugNumber);
    properties[0].setType(int.class);
    try {
        String response = doRequest("get_bug_log", "get_bug_log", properties).toString();

        return parseStatusLog(response.replaceAll("get_bug_logResponse\\{Array=\\[|^\\s+|\\s+$|\\]; \\}",
                ""));
    } catch (Exception e) {
        e.printStackTrace();
    }
    return new ArrayList<HashMap<String, String>>();
}
 
开发者ID:uberspot,项目名称:DebianDroid,代码行数:17,代码来源:BTSSoapCaller.java


示例10: getNewestBugs

import org.ksoap2.serialization.PropertyInfo; //导入依赖的package包/类
public int[] getNewestBugs(int numOfBugs) {
    PropertyInfo[] properties = new PropertyInfo[1];
    properties[0] = new PropertyInfo();
    properties[0].setName("amount");
    properties[0].setValue(numOfBugs);
    properties[0].setType(int.class);
    try {
        String response = doRequest("newest_bugs", "newest_bugs", properties).toString();
        String[] nums = response.trim().replace("newest_bugsResponse{Array=[", "").replace("]; }", "")
                .trim().split(", ");
        int[] bugNums = new int[nums.length];
        for (int i = 0; i < nums.length; i++) {
            try {
                bugNums[i] = Integer.parseInt(nums[i]);
            } catch (NumberFormatException nfe) {
            }
        }
        return bugNums;
    } catch (Exception e) {
        e.printStackTrace();
    }
    return new int[] {};
}
 
开发者ID:uberspot,项目名称:DebianDroid,代码行数:24,代码来源:BTSSoapCaller.java


示例11: getPropertyInfo

import org.ksoap2.serialization.PropertyInfo; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
public void getPropertyInfo(int arg0, Hashtable h, PropertyInfo pi) {
    FPProp f = FPProp.values()[arg0];
    switch (f) {
        case pidPropId:
            pi.type = PropertyInfo.INTEGER_CLASS;
            pi.name = "PropID";
            break;
        case pidFlightID:
            pi.type = PropertyInfo.INTEGER_CLASS;
            pi.name = "FlightID";
            break;
        case pidPropTypeId:
            pi.type = PropertyInfo.INTEGER_CLASS;
            pi.name = "PropTypeID";
            break;
        case pidIntValue:
            pi.type = PropertyInfo.INTEGER_CLASS;
            pi.name = "IntValue";
            break;
        case pidBoolValue:
            pi.type = PropertyInfo.BOOLEAN_CLASS;
            pi.name = "BoolValue";
            break;
        case pidDecValue:
            pi.type = PropertyInfo.OBJECT_CLASS;
            pi.name = "DecValue";
            break;
        case pidDateValue:
            pi.type = PropertyInfo.OBJECT_CLASS;
            pi.name = "DateValue";
            break;
        case pidStringValue:
            pi.type = PropertyInfo.STRING_CLASS;
            pi.name = "TextValue";
            break;
    }

}
 
开发者ID:ericberman,项目名称:MyFlightbookAndroid,代码行数:40,代码来源:FlightProperty.java


示例12: getPropertyInfo

import org.ksoap2.serialization.PropertyInfo; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
public void getPropertyInfo(int i, Hashtable h, PropertyInfo pi) {
    VisitedAirportProp vap = VisitedAirportProp.values()[i];
    switch (vap) {
        case pidCode:
            pi.type = PropertyInfo.STRING_CLASS;
            pi.name = "Code";
            break;
        case pidAliases:
            pi.type = PropertyInfo.STRING_CLASS;
            pi.name = "Aliases";
            break;
        case pidEarliestDate:
            pi.type = PropertyInfo.OBJECT_CLASS;
            pi.name = "EarliestVisitDate";
            break;
        case pidLatestDate:
            pi.type = PropertyInfo.OBJECT_CLASS;
            pi.name = "LatestVisitDate";
            break;
        case pidNumVisits:
            pi.type = PropertyInfo.INTEGER_CLASS;
            pi.name = "NumberOfVisits";
            break;
        case pidAirport:
            pi.type = PropertyInfo.OBJECT_CLASS;
            pi.name = "Airport";
            break;
    }
}
 
开发者ID:ericberman,项目名称:MyFlightbookAndroid,代码行数:31,代码来源:VisitedAirport.java


示例13: getPropertyInfo

import org.ksoap2.serialization.PropertyInfo; //导入依赖的package包/类
public void getPropertyInfo(int i, Hashtable h, PropertyInfo pi) {
    AirportProp apProp = AirportProp.values()[i];
    switch (apProp) {
        case pidAirportID:
            pi.type = PropertyInfo.STRING_CLASS;
            pi.name = "Code";
            break;
        case pidFacilityName:
            pi.type = PropertyInfo.STRING_CLASS;
            pi.name = "Name";
            break;
        case pidType:
            pi.type = PropertyInfo.STRING_CLASS;
            pi.name = "FacilityTypeCode";
            break;
        case pidLatitude:
            pi.type = PropertyInfo.OBJECT_CLASS;
            pi.name = "Latitude";
            break;
        case pidLongitude:
            pi.type = PropertyInfo.OBJECT_CLASS;
            pi.name = "Longitude";
            break;
        case pidDistance:
            pi.type = PropertyInfo.OBJECT_CLASS;
            pi.name = "DistanceFromPosition";
            break;
    }
}
 
开发者ID:ericberman,项目名称:MyFlightbookAndroid,代码行数:30,代码来源:Airport.java


示例14: getPropertyInfo

import org.ksoap2.serialization.PropertyInfo; //导入依赖的package包/类
@Override
public void getPropertyInfo(int i, Hashtable hashtable, PropertyInfo propertyInfo) {
    if (fields_map != null) {
        Field f = fields_map.get(i);
        if (f.getType().equals(String.class))
            propertyInfo.type = PropertyInfo.STRING_CLASS;
        else
            propertyInfo.type = f.getClass();

        String prpname = f.getAnnotation(JSoapReqField.class).fieldName();
        if (prpname.equals("JSOAP_DEFAULT_FIELDNAME"))
            propertyInfo.name = f.getName();
        else
            propertyInfo.name = f.getAnnotation(JSoapReqField.class).fieldName();


        String prpns = f.getAnnotation(JSoapReqField.class).namespace();
        if (prpns.equals("JSOAP_DEFAULT_NAMESPACE")) {
            if (this.getClass().getAnnotation(JSoapClass.class) != null) {
                String ns = this.getClass().getAnnotation(JSoapClass.class).namespace();
                if (ns==null)
                    Log.e("JSoap", "Missing namespace in field " + f.getName() + " in class " + this.getClass() + ". Either declare it at the field SoapRequestElement annotation or at the class SoapRequestClass annotation");
                else
                    propertyInfo.namespace = ns;
            }
            else {
                Log.e("JSoap", "Missing namespace in field " + f.getName() + " in class " + this.getClass() + ". Either declare it at the field SoapRequestElement annotation or at the class SoapRequestClass annotation");
            }
        }
        else {
            propertyInfo.namespace = prpns;
        }
    }
}
 
开发者ID:joaocruz04,项目名称:JSoap,代码行数:35,代码来源:TheSoapClass.java


示例15: getPropertyInfo

import org.ksoap2.serialization.PropertyInfo; //导入依赖的package包/类
@Override
public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {
	switch(arg0){
	case 0: arg2.name="nazwa"; arg2.type=PropertyInfo.STRING_CLASS; break;
	case 1: arg2.name="kod"; arg2.type=PropertyInfo.STRING_CLASS; break;
	}
}
 
开发者ID:mmprog,项目名称:wspocztapolska,代码行数:8,代码来源:Przyczyna.java


示例16: getPropertyInfo

import org.ksoap2.serialization.PropertyInfo; //导入依赖的package包/类
@Override
public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {
	if(arg0==0){
		arg2.name="return";
		arg2.type=Komunikat.class;
	}
}
 
开发者ID:mmprog,项目名称:wspocztapolska,代码行数:8,代码来源:WSResponse.java


示例17: getPropertyInfo

import org.ksoap2.serialization.PropertyInfo; //导入依赖的package包/类
@Override
public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {
	switch(arg0){
	case 0: arg2.name="daneSzczegolowe"; arg2.type=SoapObject.class; break;
	case 1: arg2.name="nazwa"; arg2.type=PropertyInfo.STRING_CLASS; break;
	}
}
 
开发者ID:mmprog,项目名称:wspocztapolska,代码行数:8,代码来源:Jednostka.java


示例18: getPropertyInfo

import org.ksoap2.serialization.PropertyInfo; //导入依赖的package包/类
@Override
public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {
	switch(arg0){
	case 0: arg2.name="czas"; arg2.type=MarshalDate.DATE_CLASS; break;
	case 1: arg2.name="jednostka"; arg2.type=Jednostka.class; break;
	case 2: arg2.name="kod"; arg2.type=PropertyInfo.STRING_CLASS; break;
	case 3: arg2.name="konczace"; arg2.type=PropertyInfo.BOOLEAN_CLASS; break;
	case 4: arg2.name="nazwa"; arg2.type=PropertyInfo.STRING_CLASS; break;
	case 5: arg2.name="przyczyna"; arg2.type=Przyczyna.class; break;
	}
}
 
开发者ID:mmprog,项目名称:wspocztapolska,代码行数:12,代码来源:Zdarzenie.java


示例19: getPropertyInfo

import org.ksoap2.serialization.PropertyInfo; //导入依赖的package包/类
@Override
public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {
	switch(arg0){
	case 0: arg2.name="status"; arg2.type=PropertyInfo.INTEGER_CLASS; break;
	case 1: arg2.name="numer"; arg2.type=PropertyInfo.STRING_CLASS; break;
	case 2: arg2.name="danePrzesylki"; arg2.type=DanePrzesylki.class; break;
	}
}
 
开发者ID:mmprog,项目名称:wspocztapolska,代码行数:9,代码来源:Komunikat.java


示例20: createRequestParameter

import org.ksoap2.serialization.PropertyInfo; //导入依赖的package包/类
SoapObject createRequestParameter(String code, String methodName){
	SoapObject request = new SoapObject(NAMESPACE, methodName);
	PropertyInfo name = new PropertyInfo();
    name.setNamespace(NAMESPACE);
    name.setName("numer");
    name.setValue(code);
    name.setType(String.class);
    request.addProperty(name);
    
    return request;
}
 
开发者ID:mmprog,项目名称:wspocztapolska,代码行数:12,代码来源:WSPoczta.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java MigrationsBundle类代码示例发布时间:2022-05-21
下一篇:
Java Description类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap