MCPcopy Create free account
hub / github.com/GateNLP/gate-core / getHiddenAttribute

Method getHiddenAttribute

src/main/java/gate/Gate.java:670–675  ·  view source on GitHub ↗

Returns the value for the HIDDEN attribute of a feature map

(FeatureMap fm)

Source from the content-addressed store, hash-verified

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) {

Callers 10

endElementMethod · 0.95
getAllInstancesMethod · 0.95
resourceLoadedMethod · 0.95
resourceUnloadedMethod · 0.95
runMethod · 0.95
resourceLoadedMethod · 0.95
resourceUnloadedMethod · 0.95
resourceRenamedMethod · 0.95
getRowCountMethod · 0.95
getValueAtMethod · 0.95

Calls 2

getMethod · 0.65
equalsMethod · 0.65

Tested by

no test coverage detected