simplify getOpType by using Enum's static function valueOf

simplify getOpType in WriteType and ReadType by using Enum's static function valueOf
All java enums get a 'valueOf' method when they are created.  This method can go away in favor of 

```java
ReadType.valueOf("foo");
```