attributesList.add(new AttributeInfo((String) k.get(), data.get(k).toString())); && (metadata.getProperties().get(keyString).isDynamic())) { if (data.get(k) instanceof Data) { attributesList.add(new AttributeInfo((String) k.get(), convertDataValueToStringValue((Data) data.get(k)))); } else { attributesList.add(new AttributeInfo((String) k.get(), data.get(k).toString())); attributesMap.put((String) k.get(), data.get(k).toString()); && (metadata.getProperties().get(keyString).isDynamic())) { if (data.get(k) instanceof Data) { attributesMap.put((String) k.get(), convertDataValueToStringValue((Data) data.get(k))); } else { attributesMap.put((String) k.get(), data.get(k).toString());
QueryPath translationPath = qPath.subPath(0, qPath.size()-1); translationPath.add(new Data.StringKey("_runtimeData")); translationPath.add(new Data.StringKey((String)qPath.get(qPath.size() - 1).get())); translationPath.add(new Data.StringKey("id-translation"));
if (!("_runtimeData".equals(wildcardKey.get()))) { QueryPath wildcardPath = path.subPath(0, path.size() - 1); wildcardPath.add(wildcardKey);
QueryPath translatedPath = fullPath.subPath(0, fullPath.size()-1); translatedPath.add(new Data.StringKey("_runtimeData")); translatedPath.add(new Data.StringKey((String)fullPath.get(fullPath.size() - 1).get())); translatedPath.add(new Data.StringKey("id-translation")); fieldPath = translatedPath.subPath(i, translatedPath.size());
private static Metadata get(Metadata metadata, QueryPath frame, DataType type){ if(type == DataType.LIST){ return get(metadata.getProperties().get(QueryPath.getWildCard()), frame.subPath(1, frame.size())); } else{ return get(metadata.getProperties().get(frame.get(0).get()), frame.subPath(1, frame.size())); } } }
public static Metadata get(Metadata metadata, QueryPath frame) { if(frame.size() == 1) { return metadata.getProperties().get(frame.get(0).get()); } else { if (metadata.getDataType() == DataType.LIST){ return get(metadata, frame, DataType.LIST); } else{ return get(metadata.getProperties().get(frame.get(0).get()), frame.subPath(1, frame.size())); } } }