[YANGTOOLS-52] 'units' statement should be reflected somewhere in the generated class Created: 05/Nov/13 Updated: 10/Apr/22 Resolved: 19/Nov/13 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Robert Varga | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 135 |
| Description |
|
A typedef can carry a 'units' statement, which is helpful for giving humans an idea what the number represents. It would be good to at least the string specified in a 'public static final String' field. Also consider adding this information into the toString() method – which opens the question of what is the relationship of the value, units and toString(). |
| Comments |
| Comment by Martin Vitez [ 19/Nov/13 ] |
|
Implemented. |