liatiusim commented on a change in pull request #229:
URL: https://github.com/apache/unomi/pull/229#discussion_r563548668
##########
File path: api/src/main/java/org/apache/unomi/api/Profile.java
##########
@@ -94,6 +95,30 @@ public Object getProperty(String name) {
return properties.get(name);
}
+ /**
+ * Retrieves the value of the nested property identified by the specified
name.
+ *
+ * @param name the name of the property to be retrieved, splited in the
nested properties with "."
+ * @return the value of the property identified by the specified name
+ */
+ public Object getNestedProperty(String name) {
+ if (!name.contains(".")) {
Review comment:
Thank you for the comment. I'm not sure if I know where to put the
common code, what do you think?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]