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

Inspectable should be treated as map. #203

Open
msangel opened this issue Dec 25, 2020 · 0 comments
Open

Inspectable should be treated as map. #203

msangel opened this issue Dec 25, 2020 · 0 comments
Assignees

Comments

@msangel
Copy link
Collaborator

msangel commented Dec 25, 2020

There are inner methods for processing hashes: isMap - detect is Map (hash) and asMap - convert to Map.
The Inspectable marker interface was added for allowing introspect POJO like they are hashes too:

class SomePojo implement Inspectable {
    public String prop = "val";
}
SomePojo a = new SomePojo();

for the parser engine is the equivalent of:

Map a = new HashMap(); // or any other map
a.put("prop", "val");

.
But not all tags/filter yet support that (latest find: the contains node). So its a proposition for making those methods:
isMap and asMap to handle the Inspectable too.

@msangel msangel self-assigned this Dec 25, 2020
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