基础有关问题,关于调用权限的!路过的大大们帮解答下!

基础问题,关于调用权限的!路过的大大们帮解答下!急急急!
protected String rName; 我怎么给protected 的类赋值!

model.rName = StringUtils.getValeByName("cmdname", row,colLabel).asString(); 

错误提示:Multiple markers at this line
- rName cannot be resolved
- The field ReportTriggerSetupCmd.rName is not 
visible



------解决方案--------------------
非要这么干的话,就只能用反射。赋值之前注意先修改其访问权限就好了。

...前略...
Field.setAccessible(true);
Field.set(model, StringUtils.getValeByName("cmdname", row,colLabel).asString());