/** * <p> * Information about the attribute. * </p> * * @param fpgaImageAttribute * Information about the attribute. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyFpgaImageAttributeResult withFpgaImageAttribute(FpgaImageAttribute fpgaImageAttribute) { setFpgaImageAttribute(fpgaImageAttribute); return this; }
public ModifyFpgaImageAttributeResult unmarshall(StaxUnmarshallerContext context) throws Exception { ModifyFpgaImageAttributeResult modifyFpgaImageAttributeResult = new ModifyFpgaImageAttributeResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return modifyFpgaImageAttributeResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("fpgaImageAttribute", targetDepth)) { modifyFpgaImageAttributeResult.setFpgaImageAttribute(FpgaImageAttributeStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return modifyFpgaImageAttributeResult; } } } }
/** * <p> * Information about the attribute. * </p> * * @param fpgaImageAttribute * Information about the attribute. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyFpgaImageAttributeResult withFpgaImageAttribute(FpgaImageAttribute fpgaImageAttribute) { setFpgaImageAttribute(fpgaImageAttribute); return this; }
public ModifyFpgaImageAttributeResult unmarshall(StaxUnmarshallerContext context) throws Exception { ModifyFpgaImageAttributeResult modifyFpgaImageAttributeResult = new ModifyFpgaImageAttributeResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return modifyFpgaImageAttributeResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("fpgaImageAttribute", targetDepth)) { modifyFpgaImageAttributeResult.setFpgaImageAttribute(FpgaImageAttributeStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return modifyFpgaImageAttributeResult; } } } }