public static HostedZoneStaxUnmarshaller getInstance() { if (instance == null) instance = new HostedZoneStaxUnmarshaller(); return instance; } }
public UpdateHostedZoneCommentResult unmarshall(StaxUnmarshallerContext context) throws Exception { UpdateHostedZoneCommentResult updateHostedZoneCommentResult = new UpdateHostedZoneCommentResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return updateHostedZoneCommentResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("HostedZone", targetDepth)) { updateHostedZoneCommentResult.setHostedZone(HostedZoneStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return updateHostedZoneCommentResult; } } } }
getHostedZoneResult.setHostedZone(HostedZoneStaxUnmarshaller.getInstance().unmarshall(context)); continue;
listHostedZonesResult.withHostedZones(HostedZoneStaxUnmarshaller.getInstance().unmarshall(context)); continue;
createHostedZoneResult.setHostedZone(HostedZoneStaxUnmarshaller.getInstance().unmarshall(context)); continue;
listHostedZonesByNameResult.withHostedZones(HostedZoneStaxUnmarshaller.getInstance().unmarshall(context)); continue;