private void putRowsToTabularData(TabularDataSupport pTabularData, JSONObject pValue, int pLevel) { TabularType type = pTabularData.getTabularType(); for (Object value : pValue.values()) { if (!(value instanceof JSONObject)) { throw new IllegalArgumentException( "Cannot convert " + pValue + " to type " + type + " because the object values provided (" + value.getClass() + ") is not of the expected type JSONObject at level " + pLevel); } JSONObject jsonValue = (JSONObject) value; if (pLevel > 1) { putRowsToTabularData(pTabularData, jsonValue, pLevel - 1); } else { pTabularData.put((CompositeData) getDispatcher().convertToObject(type.getRowType(), jsonValue)); } } } }
private void putRowsToTabularData(TabularDataSupport pTabularData, JSONObject pValue, int pLevel) { TabularType type = pTabularData.getTabularType(); for (Object value : pValue.values()) { if (!(value instanceof JSONObject)) { throw new IllegalArgumentException( "Cannot convert " + pValue + " to type " + type + " because the object values provided (" + value.getClass() + ") is not of the expected type JSONObject at level " + pLevel); } JSONObject jsonValue = (JSONObject) value; if (pLevel > 1) { putRowsToTabularData(pTabularData, jsonValue, pLevel - 1); } else { pTabularData.put((CompositeData) getDispatcher().convertToObject(type.getRowType(), jsonValue)); } } } }
private void putRowsToTabularData(TabularDataSupport pTabularData, JSONObject pValue, int pLevel) { TabularType type = pTabularData.getTabularType(); for (Object value : pValue.values()) { if (!(value instanceof JSONObject)) { throw new IllegalArgumentException( "Cannot convert " + pValue + " to type " + type + " because the object values provided (" + value.getClass() + ") is not of the expected type JSONObject at level " + pLevel); } JSONObject jsonValue = (JSONObject) value; if (pLevel > 1) { putRowsToTabularData(pTabularData, jsonValue, pLevel - 1); } else { pTabularData.put((CompositeData) getDispatcher().convertToObject(type.getRowType(), jsonValue)); } } } }
private void putRowsToTabularData(TabularDataSupport pTabularData, JSONObject pValue, int pLevel) { TabularType type = pTabularData.getTabularType(); for (Object value : pValue.values()) { if (!(value instanceof JSONObject)) { throw new IllegalArgumentException( "Cannot convert " + pValue + " to type " + type + " because the object values provided (" + value.getClass() + ") is not of the expected type JSONObject at level " + pLevel); } JSONObject jsonValue = (JSONObject) value; if (pLevel > 1) { putRowsToTabularData(pTabularData, jsonValue, pLevel - 1); } else { pTabularData.put((CompositeData) getDispatcher().deserialize(type.getRowType(), jsonValue)); } } } }
mappedClassName = (String)mappedClassNames.elementAt(index); String[] key = new String[] { mappedClassName }; rowData.put(key, buildDetailsFor(mappedClassName, rowData.getTabularType().getRowType()));
mappedClassName = (String)mappedClassNames.elementAt(index); String[] key = new String[] { mappedClassName }; rowData.put(key, buildDetailsFor(mappedClassName, rowData.getTabularType().getRowType()));
mappedClassName = (String)mappedClassNames.elementAt(index); String[] key = new String[] { mappedClassName }; rowData.put(key, buildDetailsFor(mappedClassName, rowData.getTabularType().getRowType()));
mappedClassName = (String)mappedClassNames.elementAt(index); String[] key = new String[] { mappedClassName }; rowData.put(key, buildDetailsFor(mappedClassName, rowData.getTabularType().getRowType()));
mappedClassName = (String)mappedClassNames.elementAt(index); String[] key = new String[] { mappedClassName }; rowData.put(key, buildDetailsFor(mappedClassName, rowData.getTabularType().getRowType()));
mappedClassName = (String)mappedClassNames.elementAt(index); String[] key = new String[] { mappedClassName }; rowData.put(key, buildDetailsFor(mappedClassName, rowData.getTabularType().getRowType()));