Returns the value for the HIDDEN attribute of a feature map
(FeatureMap fm)
| 668 | |
| 669 | /** Returns the value for the HIDDEN attribute of a feature map */ |
| 670 | static public boolean getHiddenAttribute(FeatureMap fm) { |
| 671 | if(fm == null) return false; |
| 672 | Object value = fm.get(HIDDEN_FEATURE_KEY); |
| 673 | return value != null && value instanceof String |
| 674 | && ((String)value).equals("true"); |
| 675 | } |
| 676 | |
| 677 | /** Sets the value for the HIDDEN attribute of a feature map */ |
| 678 | static public void setHiddenAttribute(FeatureMap fm, boolean hidden) { |
no test coverage detected