Gets the label of a value, eg. a value in a crosstab.

@param value
@return
433774
public static String getValueLabel(final Object value) {
        if (value == null) {
            return NULL_LABEL;
        }

        if (value instanceof HasLabelAdvice) {
            final String suggestedLabel = ((HasLabelAdvice) value).getSuggestedLabel();
            if (!Strings.isNullOrEmpty(suggestedLabel)) {
                return suggestedLabel;
            }
        }

        // format decimals
        if (value instanceof Double || value instanceof Float || value instanceof BigDecimal) {
            final NumberFormat format = NumberFormat.getNumberInstance();
            final String result = format.format((Number) value);
            logger.debug("Formatted decimal {} to: {}", value, result);
            return result;
        }

        // format dates
        if (value instanceof Date) {
            final SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
            final String result = format.format((Date) value);
            logger.debug("Formatted date {} to: {}", value, result);
            return result;
        }

        return getLabel(value.toString());
    }
337322
public String getLabel() {
            String label = getProperty(labelProperty);
            label = label == null ? node.getLabel() : label;

            if (label == null) {
                label = getDefaultInstanceName();
                setProperty(labelProperty, label);
            }

            return label;
        }
207209
public static PriceTypeEnumeration findByValue(final String value) {
        if (value.equalsIgnoreCase("negotiable")) {
            return PriceTypeEnumeration.NEGOTIABLE;
        } else {
            return PriceTypeEnumeration.STARTING;
        }
    }
721019
public String set(String value)
    {
        String prevValue = setString(value);
        if (prevValue == null) {
            prevValue = getDefaultValue();
        }
        return prevValue;
    }
36505
public String getLabelText() {
		String value = (String) getStateHelper().eval(PropertyKeys.labelText);
		return value;
	}
102239
public List<?> getValueList(String label) {
        PrimitiveObject o = getPrimitiveObject(VALUE, label, ObjectUtil.ARRAY, "Array");
        if (o == null) {
            return null;
        }

        return (List<?>) o.getObject();
    }
1306781
public Label createLabel(BaseComponent parent, Object value) {
        return createLabel(parent, value, null, null);
    }
808653
public GrLabel getLabel(String labelName) {
		for (GrLabel lab : getLabels()) {
			if (lab.getName().equals(labelName))
				return lab;
		}
		return null;
	}
1263659
private String getLabel(int i)
	{
		for (String label : labelMap.keySet())
		{
			if (labelMap.get(label) == i) return label;
		}
		return null;
	}
1192187
def providedLabel_or_value(value)
      return value unless value.respond_to? :providedLabel
      return value unless value.node?
      return value.providedLabel.first if value.providedLabel.any?
      value
    end
998230
public static Label getFormatedLabel(final String labelContent) {
        final Label labelValue = new Label(labelContent, ContentMode.HTML);
        labelValue.setSizeFull();
        labelValue.addStyleName(SPUIDefinitions.TEXT_STYLE);
        labelValue.addStyleName("label-style");
        return labelValue;
    }
1332355
public String getLabel() {
        String label = attrMixin.getAttribute(LABEL);
        return label.isEmpty() ? null : label;
    }
1190138
function(value)
	{
		var clonedAxis = {};
		for(var prop in value)
		{
			if(prop == "labelFunction")
			{
				if(value.labelFunction && value.labelFunction !== null)
				{
					clonedAxis.labelFunction = YAHOO.widget.Chart.getFunctionReference(value.labelFunction);
				}
			}
			else
			{
				clonedAxis[prop] = value[prop];
			}
		}
		return clonedAxis;
	}
77255
static Object getLabel(FacesContext context, 
                                        UIComponent component) {
                                        
        Object o = component.getAttributes().get("label");
        if (o == null || (o instanceof String && ((String) o).length() == 0)) {
            o = component.getValueExpression("label");
        }
        // Use the "clientId" if there was no label specified.
        if (o == null) {
            o = component.getClientId(context);
        }
        return o;
    }
813941
public String abbrevDisplayName(Value value) {
        if (value == null) {
            throw new IllegalArgumentException("value cannot be null");
        }

        ValueSetElement vse = this.values.get(value);
        if (vse != null) {
            return vse.getAbbrevDisplayName();
        } else {
            return "";
        }
    }
811515
public Text getValueText(String label) {
        HadoopObject o = getHadoopObject(VALUE, label, ObjectUtil.STRING, "String");
        if (o == null) {
            return null;
        }
        return (Text) o.getObject();
    }
194341
@Nullable
  @CheckForNull
  public String getLabel() {
    String label = getString(LABEL);
    return label != null ? label : getName();
  }