/** * <p> * A complex type that contains the codes and full continent, country, and subdivision names for the specified * geolocation code. * </p> * * @param geoLocationDetails * A complex type that contains the codes and full continent, country, and subdivision names for the * specified geolocation code. * @return Returns a reference to this object so that method calls can be chained together. */ public GetGeoLocationResult withGeoLocationDetails(GeoLocationDetails geoLocationDetails) { setGeoLocationDetails(geoLocationDetails); return this; }
public GetGeoLocationResult unmarshall(StaxUnmarshallerContext context) throws Exception { GetGeoLocationResult getGeoLocationResult = new GetGeoLocationResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return getGeoLocationResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("GeoLocationDetails", targetDepth)) { getGeoLocationResult.setGeoLocationDetails(GeoLocationDetailsStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return getGeoLocationResult; } } } }