Skip to content

Inspectable should be treated as map. #203

@msangel

Description

@msangel

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions