public ActivityTypeConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception { ActivityTypeConfiguration activityTypeConfiguration = new ActivityTypeConfiguration(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) return null; while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("defaultTaskStartToCloseTimeout", targetDepth)) { context.nextToken(); activityTypeConfiguration.setDefaultTaskStartToCloseTimeout( context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("defaultTaskHeartbeatTimeout", targetDepth)) { context.nextToken(); activityTypeConfiguration.setDefaultTaskHeartbeatTimeout( context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("defaultTaskList", targetDepth)) { context.nextToken(); activityTypeConfiguration.setDefaultTaskList( TaskListJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("defaultTaskPriority", targetDepth)) { context.nextToken(); activityTypeConfiguration.setDefaultTaskPriority( context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("defaultTaskScheduleToStartTimeout", targetDepth)) { context.nextToken(); activityTypeConfiguration.setDefaultTaskScheduleToStartTimeout( context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("defaultTaskScheduleToCloseTimeout", targetDepth)) { context.nextToken(); activityTypeConfiguration.setDefaultTaskScheduleToCloseTimeout( context.getUnmarshaller(String.class).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return activityTypeConfiguration; }
public WorkflowExecutionDetail unmarshall(JsonUnmarshallerContext context) throws Exception { WorkflowExecutionDetail workflowExecutionDetail = new WorkflowExecutionDetail(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) return null; while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("executionInfo", targetDepth)) { context.nextToken(); workflowExecutionDetail.setExecutionInfo( WorkflowExecutionInfoJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("executionConfiguration", targetDepth)) { context.nextToken(); workflowExecutionDetail.setExecutionConfiguration( WorkflowExecutionConfigurationJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("openCounts", targetDepth)) { context.nextToken(); workflowExecutionDetail.setOpenCounts( WorkflowExecutionOpenCountsJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("latestActivityTaskTimestamp", targetDepth)) { context.nextToken(); workflowExecutionDetail.setLatestActivityTaskTimestamp( context.getUnmarshaller(java.util.Date.class).unmarshall(context)); } if (context.testExpression("latestExecutionContext", targetDepth)) { context.nextToken(); workflowExecutionDetail.setLatestExecutionContext( context.getUnmarshaller(String.class).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return workflowExecutionDetail; }
public CancelWorkflowExecutionDecisionAttributes unmarshall(JsonUnmarshallerContext context) throws Exception { CancelWorkflowExecutionDecisionAttributes cancelWorkflowExecutionDecisionAttributes = new CancelWorkflowExecutionDecisionAttributes(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) return null; while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("details", targetDepth)) { context.nextToken(); cancelWorkflowExecutionDecisionAttributes.setDetails( context.getUnmarshaller(String.class).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return cancelWorkflowExecutionDecisionAttributes; }
public DomainInfo unmarshall(JsonUnmarshallerContext context) throws Exception { DomainInfo domainInfo = new DomainInfo(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) return null; while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("name", targetDepth)) { context.nextToken(); domainInfo.setName(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("status", targetDepth)) { context.nextToken(); domainInfo.setStatus(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("description", targetDepth)) { context.nextToken(); domainInfo.setDescription(context.getUnmarshaller(String.class).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return domainInfo; }
public ExternalWorkflowExecutionSignaledEventAttributes unmarshall( JsonUnmarshallerContext context) throws Exception { ExternalWorkflowExecutionSignaledEventAttributes externalWorkflowExecutionSignaledEventAttributes = new ExternalWorkflowExecutionSignaledEventAttributes(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) return null; while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("workflowExecution", targetDepth)) { context.nextToken(); externalWorkflowExecutionSignaledEventAttributes.setWorkflowExecution( WorkflowExecutionJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("initiatedEventId", targetDepth)) { context.nextToken(); externalWorkflowExecutionSignaledEventAttributes.setInitiatedEventId( context.getUnmarshaller(Long.class).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return externalWorkflowExecutionSignaledEventAttributes; }