fromName static method
Implementation
static ReadWriteMarker fromName(String name) {
if (name == ReadWriteMarker.readOnly.name) {
return ReadWriteMarker.readOnly;
} else if (name == ReadWriteMarker.writeOnly.name) {
return ReadWriteMarker.writeOnly;
}
return ReadWriteMarker.readWrite;
}