Gets the help message from a command
@param label The command name
@return The help message or {@code null} if the command was not found
184114
public String getHelpMessage(String label) {
        CommandInfo info = commands.get(label);
        return info != null ? info.help : null;
    }
873958
public String getLabel(JComponent component) {
        String label = component2LabelMap.get(component);
        if (label != null) {
            return label;
        } else {
            return "";
        }
    }
1145021
public static Label.Builder generateLabelBuilder(final String label) {
        return addLabel(Label.newBuilder(), Locale.getDefault(), label);
    }
754658
private static boolean matchLabel(Node target, String label) {
    if (label == null) {
      return true;
    }
    while (target.isLabel()) {
      if (target.getFirstChild().getString().equals(label)) {
        return true;
      }
      target = target.getParent();
    }
    return false;
  }
208588
public alluxio.grpc.MetaCommand getCommand() {
    alluxio.grpc.MetaCommand result = alluxio.grpc.MetaCommand.valueOf(command_);
    return result == null ? alluxio.grpc.MetaCommand.MetaCommand_Unknown : result;
  }
842580
public @Nullable LabelAtom getLabelAtom(@CheckForNull String name) {
        if (name==null)  return null;

        while(true) {
            Label l = labels.get(name);
            if(l!=null)
                return (LabelAtom)l;

            // non-existent
            LabelAtom la = new LabelAtom(name);
            if (labels.putIfAbsent(name, la)==null)
                la.load();
        }
    }
49886
public Listitem findMatchingItem(String label) {
        for (Listitem item : getChildren(Listitem.class)) {
            if (label.equalsIgnoreCase(item.getLabel())) {
                return item;
            }
        }
        
        return null;
    }
287530
public static String getLabel(Class<?> clazz, String label) {
		Language language=getThreadLocalLanguage(null);
		
		if (language==null){
			return label;
		} else {
			return getLabel(language, clazz.getName(), label);
		}
	}
967200
public String getLabelText() {
		String text = null;

		if (label != null) {
			text = label.getText();
		}

		return text;
	}
536246
public java.lang.String getLabel() {
        return (java.lang.String) getStateHelper().eval(PropertyKeys.label);

    }
668540
private String extractExecTailCmd(String params) {
        String ret;
        String[] tmp = params.split("(?<!\\\\)" + separator);
        String labelString = null;
        for (String aTmp : tmp) {
            if (aTmp.startsWith("label=")) {
                labelString = aTmp;
            }
        }

        if (labelString != null) {
            if (params.startsWith(labelString)) {
                ret = params.substring(labelString.length() + separator.length());
            } else {
                ret = params.substring(0, params.indexOf(labelString) - separator.length());
            }
        } else {
            ret = params;
        }

        return ret;
    }
1048689
public InstructionHandle getLabeledInstruction(String label) {
        PatternElementMatch first = getFirstLabeledMatch(label);
        return first != null ? first.getMatchedInstructionInstructionHandle() : null;
    }
387145
public String getValueString(String label) {
        PrimitiveObject o = getPrimitiveObject(VALUE, label, ObjectUtil.STRING, "String");
        if (o == null) {
            return null;
        }
        return (String) o.getObject();
    }
852009
public static final String getLString(Class<?> source, String label, Object... params) {
		final ResourceBundle rb = ResourceBundle.getBundle(source.getCanonicalName());
		String text = rb.getString(label);
		text = text.replaceAll("[\\n\\r]", "\n"); //$NON-NLS-1$ //$NON-NLS-2$
		text = text.replaceAll("\\t", "\t"); //$NON-NLS-1$ //$NON-NLS-2$
		text = MessageFormat.format(text, params);
		return text;
	}
835660
public Map<?, ?> getValueMap(String label) {
        PrimitiveObject o = getPrimitiveObject(VALUE, label, ObjectUtil.MAP, "Map");
        if (o == null) {
            return null;
        }

        return (Map<?, ?>) o.getObject();
    }
736566
@Override
    public boolean validateLabel(String label) {
        Objects.requireNonNull(label, "label cannot be null");
        // check label is in set
        return !labels.contains(label);
    }
143169
public void addLabel(Label label) {
        assertNotNull(label);
        labels.add(label);
        label.setParent(this);
    }