/** * <p> * Information about the certificate. * </p> * * @param certificate * Information about the certificate. * @return Returns a reference to this object so that method calls can be chained together. */ public UploadSigningCertificateResult withCertificate(SigningCertificate certificate) { setCertificate(certificate); return this; }
public UploadSigningCertificateResult unmarshall(StaxUnmarshallerContext context) throws Exception { UploadSigningCertificateResult uploadSigningCertificateResult = new UploadSigningCertificateResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return uploadSigningCertificateResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Certificate", targetDepth)) { uploadSigningCertificateResult.setCertificate(SigningCertificateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return uploadSigningCertificateResult; } } } }
/** * <p> * Information about the certificate. * </p> * * @param certificate * Information about the certificate. * @return Returns a reference to this object so that method calls can be chained together. */ public UploadSigningCertificateResult withCertificate(SigningCertificate certificate) { setCertificate(certificate); return this; }
public UploadSigningCertificateResult unmarshall(StaxUnmarshallerContext context) throws Exception { UploadSigningCertificateResult uploadSigningCertificateResult = new UploadSigningCertificateResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return uploadSigningCertificateResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Certificate", targetDepth)) { uploadSigningCertificateResult.setCertificate(SigningCertificateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return uploadSigningCertificateResult; } } } }