> + * @return The string value.
> + */
> + public String value() {
> + return name();
> + }
> +
> + @Override
> + public String toString() {
> + return value();
> + }
> +
> + /**
> + * @param status The string representation of a Status
> + * @return The corresponding Status.
> + */
> + public static Status fromValue(String status) {
I have not been explaining this in enough detail. There is a jclouds GSON
feature (enum adapter) where fromValue is called if GSON cannot deserialize the
value.
1. Bad value encountered in JSON
2. Adapter cannot deserialize using known enum values (exception)
3. Adapter calls fromValue
4. fromValue uses valueOf and fails (exception)
5. fromValue returns UNRECOGNIZED
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/78/files#r9684725