/** * Generates a list of condition from the Json node. * * @param conditionNodes * the condition Json node to be parsed. * @return the list of conditions. */ private List<Condition> conditionsOf(JsonNode conditionNodes) { List<Condition> conditionList = new LinkedList<Condition>(); Iterator<Map.Entry<String, JsonNode>> mapOfConditions = conditionNodes .fields(); Entry<String, JsonNode> condition; while (mapOfConditions.hasNext()) { condition = mapOfConditions.next(); convertConditionRecord(conditionList, condition.getKey(), condition.getValue()); } return conditionList; }
/** * Generates a list of condition from the Json node. * * @param conditionNodes * the condition Json node to be parsed. * @return the list of conditions. */ private List<Condition> conditionsOf(JsonNode conditionNodes) { List<Condition> conditionList = new LinkedList<Condition>(); Iterator<Map.Entry<String, JsonNode>> mapOfConditions = conditionNodes .fields(); Entry<String, JsonNode> condition; while (mapOfConditions.hasNext()) { condition = mapOfConditions.next(); convertConditionRecord(conditionList, condition.getKey(), condition.getValue()); } return conditionList; }
/** * Generates a list of condition from the JSON node. * * @param conditionNodes the condition JSON node to be parsed. * @return the list of conditions. * @throws IOException */ private List<Condition> conditionsOf(AwsJsonReader reader) throws IOException { List<Condition> conditionList = new LinkedList<Condition>(); reader.beginObject(); while (reader.hasNext()) { convertConditionRecord(conditionList, reader.nextName(), reader); } reader.endObject(); return conditionList; }
/** * Generates a list of condition from the Json node. * * @param conditionNodes * the condition Json node to be parsed. * @return the list of conditions. */ private List<Condition> conditionsOf(JsonNode conditionNodes) { List<Condition> conditionList = new LinkedList<Condition>(); Iterator<Map.Entry<String, JsonNode>> mapOfConditions = conditionNodes .fields(); Entry<String, JsonNode> condition; while (mapOfConditions.hasNext()) { condition = mapOfConditions.next(); convertConditionRecord(conditionList, condition.getKey(), condition.getValue()); } return conditionList; }
/** * Generates a list of condition from the JSON node. * * @param conditionNodes the condition JSON node to be parsed. * @return the list of conditions. * @throws IOException */ private List<Condition> conditionsOf(AwsJsonReader reader) throws IOException { List<Condition> conditionList = new LinkedList<Condition>(); reader.beginObject(); while (reader.hasNext()) { convertConditionRecord(conditionList, reader.nextName(), reader); } reader.endObject(); return conditionList; }
/** * Generates a list of condition from the JSON node. * * @param conditionNodes the condition JSON node to be parsed. * @return the list of conditions. * @throws IOException */ private List<Condition> conditionsOf(AwsJsonReader reader) throws IOException { List<Condition> conditionList = new LinkedList<Condition>(); reader.beginObject(); while (reader.hasNext()) { convertConditionRecord(conditionList, reader.nextName(), reader); } reader.endObject(); return conditionList; }