import java.util.Hashtable; import org.ksoap2.serialization.KvmSerializable; import org.ksoap2.serialization.PropertyInfo; public class classnamne implements KvmSerializable { private String sdaf; private String dsF; private int dkl; public static final int SDAF = 0; public static final int DS_F = 1; public static final int DKL = 2; public int getPropertyCount() { return 3; } public Object getProperty(int index) { switch (index) { case SDAF: return sdaf; case DS_F: return dsF; case DKL: return new Integer(dkl); default: throw new RuntimeException("property not found "+ index); } } public void setProperty(int index, Object o) { switch (index) { case SDAF: sdaf = o.toString(); break; case DS_F: dsF = o.toString(); break; case DKL: dkl = ((Integer)o).intValue(); break; default: throw new RuntimeException("property not found "+ index); } } public void getPropertyInfo(int index, Hashtable arg1, PropertyInfo info) { switch (index) { case SDAF: info.name = "sdaf"; info.type = PropertyInfo.STRING_CLASS; break; case DS_F: info.name = "dsF"; info.type = PropertyInfo.STRING_CLASS; break; case DKL: info.name = "dkl"; info.type = PropertyInfo.INTEGER_CLASS; break; default: throw new RuntimeException("property not found "+ index); } } }