Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to parse maps of objects #209

Open
marcuskaufmann opened this issue Aug 17, 2017 · 0 comments
Open

Question: How to parse maps of objects #209

marcuskaufmann opened this issue Aug 17, 2017 · 0 comments

Comments

@marcuskaufmann
Copy link

Hi,

I have an property structure where a part of the property key is used to aggregate properties to one object. That key is user defined and could be any string as long the resulting property key is valid. In the example below there are two objects defined by the keys "Chrome_1024x768" and "Chrome_1500x1000". The properties of these object (name, browser and browserResolution) are defined and not customizable. My current parsing solution returns a map of objects (lets say Map<String, BrowserProfile>).

Question #1: Is it possible to parse the structure below with Owner so I get the same result? How would it look like?
Question #2: If it isn't possible: Do you have any advise how I should structure my properties in order to parse it with Owner?

Thanks in advance,
Marcus

A local Chrome with a small window size

browserprofile.Chrome_1024x768.name = Chrome 1024x768
browserprofile.Chrome_1024x768.browser = chrome
browserprofile.Chrome_1024x768.browserResolution = 1024x768

Local Chrome but with larger window size

browserprofile.Chrome_1500x1000.name = Chrome 1500x1000
browserprofile.Chrome_1500x1000.browser = chrome
browserprofile.Chrome_1500x1000.browserResolution = 1500x1000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant