public CreateStackResult unmarshall(StaxUnmarshallerContext context) throws Exception { CreateStackResult createStackResult = new CreateStackResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return createStackResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("StackId", targetDepth)) { createStackResult.setStackId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return createStackResult; } } } }
/** * Constructor. * @return the instance. */ public static StringStaxUnmarshaller getInstance() { if (instance == null) instance = new StringStaxUnmarshaller(); return instance; } }
/** * Constructor. * @return the instance. */ public static StringStaxUnmarshaller getInstance() { if (instance == null) instance = new StringStaxUnmarshaller(); return instance; } }
/** * Constructor. * @return the instance. */ public static StringStaxUnmarshaller getInstance() { if (instance == null) instance = new StringStaxUnmarshaller(); return instance; } }
public TemplateMetadata unmarshall(StaxUnmarshallerContext context) throws Exception { TemplateMetadata templateMetadata = new TemplateMetadata(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) break; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression("Name", targetDepth)) { templateMetadata.setName(StringStaxUnmarshaller.getInstance().unmarshall( context)); continue; } if (context.testExpression("CreatedTimestamp", targetDepth)) { templateMetadata.setCreatedTimestamp(DateStaxUnmarshaller.getInstance() .unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { break; } } } return templateMetadata; }
protected boolean handleXmlEvent(QueueConfiguration queueConfig, StaxUnmarshallerContext context, int targetDepth) throws Exception { if (context.testExpression("Queue", targetDepth)) { queueConfig.setQueueARN(StringStaxUnmarshaller.getInstance().unmarshall(context)); return true; } return false; }
public ReceiptRuleSetMetadata unmarshall(StaxUnmarshallerContext context) throws Exception { ReceiptRuleSetMetadata receiptRuleSetMetadata = new ReceiptRuleSetMetadata(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) break; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression("Name", targetDepth)) { receiptRuleSetMetadata.setName(StringStaxUnmarshaller.getInstance().unmarshall( context)); continue; } if (context.testExpression("CreatedTimestamp", targetDepth)) { receiptRuleSetMetadata.setCreatedTimestamp(DateStaxUnmarshaller.getInstance() .unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { break; } } } return receiptRuleSetMetadata; }
protected boolean handleXmlEvent(TopicConfiguration topicConfig, StaxUnmarshallerContext context, int targetDepth) throws Exception { if (context.testExpression("Topic", targetDepth)) { topicConfig.setTopicARN(StringStaxUnmarshaller.getInstance().unmarshall(context)); return true; } return false; }
public PublishResult unmarshall(StaxUnmarshallerContext context) throws Exception { PublishResult publishResult = new PublishResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return publishResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("MessageId", targetDepth)) { publishResult.setMessageId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return publishResult; } } } }
public InstanceStatusDetails unmarshall(StaxUnmarshallerContext context) throws Exception { InstanceStatusDetails instanceStatusDetails = new InstanceStatusDetails(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return instanceStatusDetails; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression("name", targetDepth)) { instanceStatusDetails.setName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("status", targetDepth)) { instanceStatusDetails.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("impairedSince", targetDepth)) { instanceStatusDetails.setImpairedSince(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { return instanceStatusDetails; } } } }
public InstanceIpv6Address unmarshall(StaxUnmarshallerContext context) throws Exception { InstanceIpv6Address instanceIpv6Address = new InstanceIpv6Address(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return instanceIpv6Address; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("ipv6Address", targetDepth)) { instanceIpv6Address.setIpv6Address(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return instanceIpv6Address; } } } }
public GetPasswordDataResult unmarshall(StaxUnmarshallerContext context) throws Exception { GetPasswordDataResult getPasswordDataResult = new GetPasswordDataResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return getPasswordDataResult; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression("instanceId", targetDepth)) { getPasswordDataResult.setInstanceId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("timestamp", targetDepth)) { getPasswordDataResult.setTimestamp(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("passwordData", targetDepth)) { getPasswordDataResult.setPasswordData(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { return getPasswordDataResult; } } } }
public GenerateServiceLastAccessedDetailsResult unmarshall(StaxUnmarshallerContext context) throws Exception { GenerateServiceLastAccessedDetailsResult generateServiceLastAccessedDetailsResult = new GenerateServiceLastAccessedDetailsResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return generateServiceLastAccessedDetailsResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("JobId", targetDepth)) { generateServiceLastAccessedDetailsResult.setJobId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return generateServiceLastAccessedDetailsResult; } } } }
public GetConsoleOutputResult unmarshall(StaxUnmarshallerContext context) throws Exception { GetConsoleOutputResult getConsoleOutputResult = new GetConsoleOutputResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return getConsoleOutputResult; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression("instanceId", targetDepth)) { getConsoleOutputResult.setInstanceId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("timestamp", targetDepth)) { getConsoleOutputResult.setTimestamp(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("output", targetDepth)) { getConsoleOutputResult.setOutput(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { return getConsoleOutputResult; } } } }
public DeleteMessageBatchResultEntry unmarshall(StaxUnmarshallerContext context) throws Exception { DeleteMessageBatchResultEntry deleteMessageBatchResultEntry = new DeleteMessageBatchResultEntry(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return deleteMessageBatchResultEntry; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Id", targetDepth)) { deleteMessageBatchResultEntry.setId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return deleteMessageBatchResultEntry; } } } }
public IdFormat unmarshall(StaxUnmarshallerContext context) throws Exception { IdFormat idFormat = new IdFormat(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return idFormat; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression("resource", targetDepth)) { idFormat.setResource(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("useLongIds", targetDepth)) { idFormat.setUseLongIds(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("deadline", targetDepth)) { idFormat.setDeadline(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { return idFormat; } } } }
public ModifyDBClusterParameterGroupResult unmarshall(StaxUnmarshallerContext context) throws Exception { ModifyDBClusterParameterGroupResult modifyDBClusterParameterGroupResult = new ModifyDBClusterParameterGroupResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return modifyDBClusterParameterGroupResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("DBClusterParameterGroupName", targetDepth)) { modifyDBClusterParameterGroupResult.setDBClusterParameterGroupName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return modifyDBClusterParameterGroupResult; } } } }
public SpotInstanceStatus unmarshall(StaxUnmarshallerContext context) throws Exception { SpotInstanceStatus spotInstanceStatus = new SpotInstanceStatus(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return spotInstanceStatus; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression("code", targetDepth)) { spotInstanceStatus.setCode(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("updateTime", targetDepth)) { spotInstanceStatus.setUpdateTime(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("message", targetDepth)) { spotInstanceStatus.setMessage(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { return spotInstanceStatus; } } } }
public TrackingOptions unmarshall(StaxUnmarshallerContext context) throws Exception { TrackingOptions trackingOptions = new TrackingOptions(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return trackingOptions; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("CustomRedirectDomain", targetDepth)) { trackingOptions.setCustomRedirectDomain(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return trackingOptions; } } } }
public HistoryRecord unmarshall(StaxUnmarshallerContext context) throws Exception { HistoryRecord historyRecord = new HistoryRecord(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return historyRecord; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression("timestamp", targetDepth)) { historyRecord.setTimestamp(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("eventType", targetDepth)) { historyRecord.setEventType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("eventInformation", targetDepth)) { historyRecord.setEventInformation(EventInformationStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { return historyRecord; } } } }