/** * Generates a list of actions from the Action Json Node. * * @param actionNodes * the action Json node to be parsed. * @return the list of actions. */ private List<Action> actionsOf(JsonNode actionNodes) { List<Action> actions = new LinkedList<Action>(); if (actionNodes.isArray()) { for (JsonNode action : actionNodes) { actions.add(new NamedAction(action.asText())); } } else { actions.add(new NamedAction(actionNodes.asText())); } return actions; }
/** * Generates a list of actions from the Action JSON Node. * * @param actionNodes the action JSON node to be parsed. * @return the list of actions. * @throws IOException */ private List<Action> actionsOf(AwsJsonReader reader) throws IOException { List<Action> actions = new LinkedList<Action>(); if (reader.isContainer()) { reader.beginArray(); while (reader.hasNext()) { actions.add(new NamedAction(reader.nextString())); } reader.endArray(); } else { actions.add(new NamedAction(reader.nextString())); } return actions; }
/** * Generates a list of actions from the Action Json Node. * * @param actionNodes * the action Json node to be parsed. * @return the list of actions. */ private List<Action> actionsOf(JsonNode actionNodes) { List<Action> actions = new LinkedList<Action>(); if (actionNodes.isArray()) { for (JsonNode action : actionNodes) { actions.add(new NamedAction(action.asText())); } } else { actions.add(new NamedAction(actionNodes.asText())); } return actions; }
/** * Generates a list of actions from the Action JSON Node. * * @param actionNodes the action JSON node to be parsed. * @return the list of actions. * @throws IOException */ private List<Action> actionsOf(AwsJsonReader reader) throws IOException { List<Action> actions = new LinkedList<Action>(); if (reader.isContainer()) { reader.beginArray(); while (reader.hasNext()) { actions.add(new NamedAction(reader.nextString())); } reader.endArray(); } else { actions.add(new NamedAction(reader.nextString())); } return actions; }
/** * Generates a list of actions from the Action JSON Node. * * @param actionNodes the action JSON node to be parsed. * @return the list of actions. * @throws IOException */ private List<Action> actionsOf(AwsJsonReader reader) throws IOException { List<Action> actions = new LinkedList<Action>(); if (reader.isContainer()) { reader.beginArray(); while (reader.hasNext()) { actions.add(new NamedAction(reader.nextString())); } reader.endArray(); } else { actions.add(new NamedAction(reader.nextString())); } return actions; }
/** * Generates a list of actions from the Action Json Node. * * @param actionNodes * the action Json node to be parsed. * @return the list of actions. */ private List<Action> actionsOf(JsonNode actionNodes) { List<Action> actions = new LinkedList<Action>(); if (actionNodes.isArray()) { for (JsonNode action : actionNodes) { actions.add(new NamedAction(action.asText())); } } else { actions.add(new NamedAction(actionNodes.asText())); } return actions; }