code: private String readWrite() {
          switch (data.getStyle()) {
              case READ_WRITE:
                  return "ReadWrite";
              case READ_ONLY:
                  return "ReadOnly";
              case WRITE_ONLY:
                  return "WriteOnly";
              case DERIVED:
                  return "Derived";
              case READ_ONLY_BUILDABLE:
                  return "ReadOnlyBuildable";
              case IMMUTABLE:
                  return "Immutable";
              default:
                  break;
          }
          throw new RuntimeException("Invalid style");
      }
docs: -----------------------------------------------------------------------