Sets a label for a specified comment

@param id comment id
@param caption caption
@param value value
180311
protected void setCommentLabel(Long id, String caption, String value) {
    Map<String, String> valueMap = answers.get(id);
    if (valueMap == null) {
      valueMap = new LinkedHashMap<>();
    }
    
    valueMap.put(caption, value);
    answers.put(id, valueMap);
  }
865136
public void setId(Object id) {
	  if (lock == SET) {
		 throw new IllegalStateException("EntryInfo is locked");
	  }
	  /*if (idFlag == SET) {
		 if (tc.isDebugEnabled()) Tr.debug(tc, "Illegal State: tried to set id to "+id+
											   ", but id was already set to "+this.id  );
		  throw new IllegalStateException("id was already set");
	  } */
	  idFlag = SET;
	  this.id = id;
	  if (tc.isDebugEnabled())
		 Tr.debug(tc, "set id=" + id);
   }
1214099
public void setSentenceId(int v) {
    if (Sentence_Type.featOkTst && ((Sentence_Type)jcasType).casFeat_sentenceId == null)
      jcasType.jcas.throwFeatMissing("sentenceId", "de.unihd.dbs.uima.types.heideltime.Sentence");
    jcasType.ll_cas.ll_setIntValue(addr, ((Sentence_Type)jcasType).casFeatCode_sentenceId, v);}
426934
public void addId(final URI id, final String value) {
        if (id != null && value != null) {
            final URI localId = id.normalize();
            final String localValue = value.trim();
            idMap.put(localId, localValue);
        }
    }
1155962
public void setContentToDialog(String caption, CmsBasicDialog dialog) {

        setContent(new Label());
        Window window = CmsBasicDialog.prepareWindow(DialogWidth.narrow);
        window.setContent(dialog);
        window.setCaption(caption);
        window.setClosable(false);
        addWindow(window);
        window.center();
    }
1016394
public void setLabel(final String label) {
        if (label != null)
            attrMixin.setAttribute(LABEL, label);
        else
            attrMixin.removeAttribute(LABEL);
    }
920654
@Override
	public void setLabelMessage(String labelMessage)
	{
		myUserInterfaceAction.setLabelMessage(labelMessage);
		putValue(Action.NAME, myMessageProvider.getMessage(getLabelMessage(), getLocale()));
	}
1061585
private void decorate(final String id, final String caption, final String style, final String styleName,
            final boolean required, final String data) {
        // Default settings
        setRequired(required);
        addStyleName(ValoTheme.CHECKBOX_SMALL);
        if (id != null) {
            setId(id);
        }
        if (caption != null) {
            setCaption(caption);
        }
        // Add style
        if (style != null) {
            setStyleName(style);
        }
        // Add style Name
        if (styleName != null) {
            addStyleName(styleName);
        }
        // Set Data
        if (data != null) {
            setData(data);
        }
    }
142760
protected Label createTitleLabel(String id, PivotField pivotField) {
		String title = pivotField.getTitle();
		if (pivotField.getArea().equals(PivotField.Area.DATA)) {
			title += " (" + pivotField.getAggregator().getFunction().toUpperCase() + ")"; 
		}

		return new Label(id, title);
	}
180867
public void put(String id,String string,Object value)
    {
	if (DEBUG && id!=null) System.out.println(id+":"+string+" => "+value);
	put(id, new MyWrapper(string), value);
    }
678461
public void setTitle(int resId) {
        if (DEBUG) Log.d(TAG, "[setTitle] resId: " + resId);

        setTitle(mActivity.getString(resId));
    }
53166
public void setCaptionClass(java.lang.String captionClass) {
        getStateHelper().put(PropertyKeys.captionClass, captionClass);
    }
25857
public void postComment(int id, int rating, String comment) {
        ClientResource resource = new ClientResource(Route.ADD_COMMENT.url(id));
        resource.setChallengeResponse(this.auth.toChallenge());

        Form form = new Form();
        if (id > 0)
            form.add("rating", String.valueOf(rating));
        if (comment != null && comment.length() > 0)
            form.add("comment", comment);

        resource.post(form);
    }
329231
public static void setId(Object document, String id) {
		DocumentAccessor d = getAccessor(document);
		if (d.hasIdMutator()) {
			d.setId(document, id);
		}
	}
1044466
def set_label(self, label):
        
        data = {"ruleId": self.id, "label": label}
        return self._restCall("rule/setRuleLabel", json.dumps(data))
112967
public void setComment(String comment) {
		this.comment = comment;
		if (!Strings.isEmpty(comment)) {
			this.name = MessageFormat.format("{0} [{1}]", getClass().getName(), comment); //$NON-NLS-1$
		} else {
			this.name = getClass().getName();
		}
	}
143169
public void addLabel(Label label) {
        assertNotNull(label);
        labels.add(label);
        label.setParent(this);
    }