public Deployment unmarshall(StaxUnmarshallerContext context) throws Exception { Deployment deployment = new Deployment(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return deployment; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("VersionLabel", targetDepth)) { deployment.setVersionLabel(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("DeploymentId", targetDepth)) { deployment.setDeploymentId(LongStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Status", targetDepth)) { deployment.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("DeploymentTime", targetDepth)) { deployment.setDeploymentTime(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return deployment; } } } }
public ConfigurationSettingsDescription unmarshall(StaxUnmarshallerContext context) throws Exception { ConfigurationSettingsDescription configurationSettingsDescription = new ConfigurationSettingsDescription(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return configurationSettingsDescription; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("SolutionStackName", targetDepth)) { configurationSettingsDescription.setSolutionStackName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ApplicationName", targetDepth)) { configurationSettingsDescription.setApplicationName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("TemplateName", targetDepth)) { configurationSettingsDescription.setTemplateName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Description", targetDepth)) { configurationSettingsDescription.setDescription( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("EnvironmentName", targetDepth)) { configurationSettingsDescription.setEnvironmentName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("DeploymentStatus", targetDepth)) { configurationSettingsDescription.setDeploymentStatus( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("DateCreated", targetDepth)) { configurationSettingsDescription.setDateCreated( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("DateUpdated", targetDepth)) { configurationSettingsDescription.setDateUpdated( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("OptionSettings/member", targetDepth)) { configurationSettingsDescription.withOptionSettings( ConfigurationOptionSettingStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return configurationSettingsDescription; } } } }
public EventDescription unmarshall(StaxUnmarshallerContext context) throws Exception { EventDescription eventDescription = new EventDescription(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return eventDescription; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("EventDate", targetDepth)) { eventDescription.setEventDate(DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Message", targetDepth)) { eventDescription.setMessage(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ApplicationName", targetDepth)) { eventDescription.setApplicationName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("VersionLabel", targetDepth)) { eventDescription.setVersionLabel( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("TemplateName", targetDepth)) { eventDescription.setTemplateName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("EnvironmentName", targetDepth)) { eventDescription.setEnvironmentName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("RequestId", targetDepth)) { eventDescription.setRequestId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Severity", targetDepth)) { eventDescription.setSeverity(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return eventDescription; } } } }
public EnvironmentDescription unmarshall(StaxUnmarshallerContext context) throws Exception { EnvironmentDescription environmentDescription = new EnvironmentDescription(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return environmentDescription; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("EnvironmentName", targetDepth)) { environmentDescription.setEnvironmentName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("EnvironmentId", targetDepth)) { environmentDescription.setEnvironmentId( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ApplicationName", targetDepth)) { environmentDescription.setApplicationName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("VersionLabel", targetDepth)) { environmentDescription.setVersionLabel( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("SolutionStackName", targetDepth)) { environmentDescription.setSolutionStackName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("TemplateName", targetDepth)) { environmentDescription.setTemplateName( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Description", targetDepth)) { environmentDescription.setDescription( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("EndpointURL", targetDepth)) { environmentDescription.setEndpointURL( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CNAME", targetDepth)) { environmentDescription.setCNAME(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("DateCreated", targetDepth)) { environmentDescription.setDateCreated( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("DateUpdated", targetDepth)) { environmentDescription.setDateUpdated( DateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Status", targetDepth)) { environmentDescription.setStatus( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Health", targetDepth)) { environmentDescription.setHealth( StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return environmentDescription; } } } }