code: public boolean setProtectionLevel(int level) {
      	boolean result = false;
      	switch(level) {
      	case RtfProtection.LEVEL_NONE:
      		if(this.protectionHash == null) {
      			break;
      		}
      	case RtfProtection.LEVEL_ANNOTPROT:
      	case RtfProtection.LEVEL_FORMPROT:
      	case RtfProtection.LEVEL_REVPROT:
      	case RtfProtection.LEVEL_READPROT:
          	this.protectionLevel = level;
          	result = true;
          	break;
     		default:
      	}
      	return result;
      }
docs: Author: Howard Shank (hgshank@yahoo.com)
  @param level Document protection level
  @since 2.1.1