Gets the label text (if label exists) else returns <code>null</code>.

@return the text of the label component of this field.
967200
public String getLabelText() {
		String text = null;

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

		return text;
	}
1148259
private Label getLabel(String pane) {
        Label lbl = root.findByName(pane, Label.class);
        return lbl == null ? createLabel(pane) : lbl;
    }
1263659
private String getLabel(int i)
	{
		for (String label : labelMap.keySet())
		{
			if (labelMap.get(label) == i) return label;
		}
		return null;
	}
231221
public String getVersion()
	{
		String str = null;

		if ((version >= 0) && (version < versionLabels.length))
		{
			str = versionLabels[version];
		}

		return str;
	}
243078
@Nullable
    protected View getEmailLabel() {
        final String emailPrompt = dialogConfiguration.emailPrompt();
        if (emailPrompt != null) {
            final TextView labelView = new TextView(this);
            labelView.setText(emailPrompt);
            return labelView;
        }
        return null;
    }
873958
public String getLabel(JComponent component) {
        String label = component2LabelMap.get(component);
        if (label != null) {
            return label;
        } else {
            return "";
        }
    }
497288
public String getCaption() {
        return caption != null && caption.toLowerCase().startsWith("label:") ? StrUtil.getLabel(caption.substring(6))
                : caption;
    }
740770
public String getLabel() {
        if (label == null) {
            // Lazily construct an edge label from the head and tail nodes.
            StringBuilder label = new StringBuilder();
            label.append(headNode.getLabel());
            label.append("<--");
            for (Hypernode tailNode : tailNodes) {
                label.append(tailNode.getLabel());
                label.append(",");
            }
            if (tailNodes.length > 0) {
                label.deleteCharAt(label.length()-1);
            }
            return label.toString();
        }
        return label;
    }
682846
public String getLabel(HasOther e) {

	List<LangString> labels = ((HasLabel) e).getLabel();
	if ((labels == null) || (labels.isEmpty()))
	    return null;
	if (e instanceof HasLabel)
	    return labels.get(0).getValue();
	return "pFact: label TODO";
    }
925081
@Exported(name="labelExpression")
    public String getAssignedLabelString() {
        if (canRoam || assignedNode==null)    return null;
        try {
            LabelExpression.parseExpression(assignedNode);
            return assignedNode;
        } catch (ANTLRException e) {
            // must be old label or host name that includes whitespace or other unsafe chars
            return LabelAtom.escape(assignedNode);
        }
    }
785564
public String text() {
        final StringBuilder sb = new StringBuilder();
        for (Object child : this.children) {
            if (child instanceof Node) {
                sb.append(((Node) child).text());
            } else {
                sb.append(child);
            }
        }
        return sb.toString();
    }
659970
static public String getTextValue(Node node) {
        if( node.getChildNodes().getLength() == 0 ) {
            return null;
        }
        return node.getFirstChild().getNodeValue();
    }
521443
public LabelManager getLabelManager() {
        if (labelManager != null) {
            return labelManager;
        }
        labelManager = (LabelManager) ContainerManager.getComponent("labelManager");
        return labelManager;
    }
690103
def get_label(self):
        
        if self.label is None:
            self.label = self.get_field('label')
        return self.label
869278
@Override
	public String getLabel() {
		String l = label;
		if(l != null) return l;
		String p = path;
		if(p != null) {
			String filename = p.substring(p.lastIndexOf('/') + 1);
			if(filename.endsWith(DOT_EXTENSION)) filename = filename.substring(0, filename.length() - DOT_EXTENSION.length());
			if(filename.isEmpty()) throw new IllegalArgumentException("Invalid filename for diagram: " + p);
			return filename;
		}
		throw new IllegalStateException("Cannot get label, neither label nor path set");
	}
616939
@Override
    public String getText() {
        if (closed) {
            return null;
        }
        // need to separate handling a bit...
        switch (_currToken) {
            case FIELD_NAME:
                return nodeCursor.getCurrentName();
            case VALUE_STRING:
            case VALUE_NUMBER_INT:
            case VALUE_NUMBER_FLOAT:
            case VALUE_EMBEDDED_OBJECT:
                return currentNode().toString();
        }

        return _currToken.asString();
    }
36505
public String getLabelText() {
		String value = (String) getStateHelper().eval(PropertyKeys.labelText);
		return value;
	}