Exemplo n.º 1
0
  public QMPStudent(java.lang.Object paramObj, QMPExtendedSoapSerializationEnvelope __envelope) {

    if (paramObj == null) return;
    AttributeContainer inObj = (AttributeContainer) paramObj;

    SoapObject soapObject = (SoapObject) inObj;
    if (soapObject.hasProperty("FullName")) {
      java.lang.Object obj = soapObject.getProperty("FullName");
      if (obj != null && obj.getClass().equals(SoapPrimitive.class)) {
        SoapPrimitive j = (SoapPrimitive) obj;
        if (j.toString() != null) {
          this.FullName = j.toString();
        }
      } else if (obj != null && obj instanceof String) {
        this.FullName = (String) obj;
      }
    }
    if (soapObject.hasProperty("StudentId")) {
      java.lang.Object obj = soapObject.getProperty("StudentId");
      if (obj != null && obj.getClass().equals(SoapPrimitive.class)) {
        SoapPrimitive j = (SoapPrimitive) obj;
        if (j.toString() != null) {
          this.StudentId = Integer.parseInt(j.toString());
        }
      } else if (obj != null && obj instanceof Integer) {
        this.StudentId = (Integer) obj;
      }
    }
  }
  public DMCreateResponse(
      java.lang.Object paramObj, DMExtendedSoapSerializationEnvelope __envelope) {
    super(paramObj, __envelope);
    if (paramObj == null) return;
    AttributeContainer inObj = (AttributeContainer) paramObj;

    if (inObj instanceof SoapObject) {
      SoapObject soapObject = (SoapObject) inObj;
      int size = soapObject.getPropertyCount();
      for (int i0 = 0; i0 < size; i0++) {
        // if you have compilation error here, please use a ksoap2.jar and ExKsoap2.jar from libs
        // folder (in the generated zip file)
        PropertyInfo info = soapObject.getPropertyInfo(i0);
        java.lang.Object obj = info.getValue();
        if (info.name.equals("object")) {

          if (obj != null && obj.getClass().equals(SoapPrimitive.class)) {
            SoapPrimitive j = (SoapPrimitive) obj;
            if (j.toString() != null) {
              this._object = j.toString();
            }
          } else if (obj != null && obj instanceof String) {
            this._object = (String) obj;
          }
          continue;
        }
      }
    }
  }
  public BSBBiometricSignatureVerification(
      java.lang.Object paramObj, BSBExtendedSoapSerializationEnvelope __envelope) {

    if (paramObj == null) return;
    AttributeContainer inObj = (AttributeContainer) paramObj;

    SoapObject soapObject = (SoapObject) inObj;
    if (soapObject.hasProperty("dssResult")) {
      java.lang.Object j = soapObject.getProperty("dssResult");
      this.dssResult = (BSBSignatureVerification) __envelope.get(j, BSBSignatureVerification.class);
    }
    if (soapObject.hasProperty("result")) {
      java.lang.Object obj = soapObject.getProperty("result");
      if (obj != null && obj.getClass().equals(SoapPrimitive.class)) {
        SoapPrimitive j = (SoapPrimitive) obj;
        if (j.toString() != null) {
          this.result = BSBEnums.BiometricVerificationResult.fromString(j.toString());
        }
      } else if (obj != null && obj instanceof BSBEnums.BiometricVerificationResult) {
        this.result = (BSBEnums.BiometricVerificationResult) obj;
      }
    }
    if (soapObject.hasProperty("signatures")) {
      java.lang.Object j = soapObject.getProperty("signatures");
      this.signatures = new BSBArrayOfBiometricSignatureReference(j, __envelope);
    }
  }
  public DMGetDocumentListByOwnerRequest(
      java.lang.Object paramObj, DMExtendedSoapSerializationEnvelope __envelope) {
    super(paramObj, __envelope);
    if (paramObj == null) return;
    AttributeContainer inObj = (AttributeContainer) paramObj;

    if (inObj instanceof SoapObject) {
      SoapObject soapObject = (SoapObject) inObj;
      int size = soapObject.getPropertyCount();
      for (int i0 = 0; i0 < size; i0++) {
        // if you have compilation error here, please use a ksoap2.jar and ExKsoap2.jar from libs
        // folder (in the generated zip file)
        PropertyInfo info = soapObject.getPropertyInfo(i0);
        java.lang.Object obj = info.getValue();
        if (info.name.equals("owners")) {

          if (this.owners == null) {
            this.owners = new ArrayList<DMObject>();
          }
          java.lang.Object j = obj;
          DMObject j1 = (DMObject) __envelope.get(j, DMObject.class);
          this.owners.add(j1);

          continue;
        }
        if (info.name.equals("columnSet")) {

          if (this.columnSet == null) {
            this.columnSet = new ArrayList<String>();
          }
          java.lang.Object j = obj;
          String j1 = j.toString();
          this.columnSet.add(j1);

          continue;
        }
      }
    }
  }