-
Notifications
You must be signed in to change notification settings - Fork 948
Claim implementation does not match Claim Interface documentation #466
Copy link
Copy link
Closed
Labels
feature requestA feature has been asked for or suggested by the communityA feature has been asked for or suggested by the community
Description
Issue:
I am trying to iterate over claims and print them for debugging purposes. So I call asString() on every claim. It seem Boolean claims always return null.
| return !data.isTextual() ? null : data.asText(); |
Comments:
- I don't see a way to determine the type of a claim. It would be nice to have a getClaimClass() or getClaimType()
- The interface docs. for asString in Claim suggests that if a type can be converted to String, then that would be returned.
- It appears the toString() is the default impl. it might be nice to have this be: return value == null ? null : value.toString()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature requestA feature has been asked for or suggested by the communityA feature has been asked for or suggested by the community