@Override public String getDisplay() { return getLabel(); }
public String toHeaderValue() { StringBuilder b = new StringBuilder(); b.append(this.getTerm()); if (isNotBlank(this.getLabel())) { b.append("; label=\"").append(this.getLabel()).append('"'); } if (isNotBlank(this.getScheme())) { b.append("; scheme=\"").append(this.getScheme()).append('"'); } return b.toString(); }
@Override public String getDisplay() { return getLabel(); }
writeOptionalTagWithValue(theEventWriter, "system", tag.getScheme()); writeOptionalTagWithValue(theEventWriter, "code", tag.getTerm()); writeOptionalTagWithValue(theEventWriter, "display", tag.getLabel()); theEventWriter.writeEndElement();
if (tagList != null) { for (Tag next : tagList) { TagDefinition def = getTagOrNull(TagTypeEnum.TAG, next.getScheme(), next.getTerm(), next.getLabel()); if (def != null) { ResourceTag tag = theEntity.addTag(def);
public String toHeaderValue() { StringBuilder b = new StringBuilder(); b.append(this.getTerm()); if (isNotBlank(this.getLabel())) { b.append("; label=\"").append(this.getLabel()).append('"'); } if (isNotBlank(this.getScheme())) { b.append("; scheme=\"").append(this.getScheme()).append('"'); } return b.toString(); }
private List<Tag> tags = new ArrayList<>(); if(tags.isEmpty()){ Gson gson = new Gson(); Type listType = new TypeToken<List<Tag>>() { }.getType(); tags = gson.fromJson(tour.getTagsJSONArray(), listType); } if (flowLayout != null) { if(!tags.isEmpty()) { Log.e(TAG, "setTags: "+ flowLayout.getChildCount() ); flowLayout.removeAllViews(); for (Tag tag : tags) { FlowLayout.LayoutParams lparams = new FlowLayout.LayoutParams(FlowLayout.LayoutParams.WRAP_CONTENT, FlowLayout.LayoutParams.WRAP_CONTENT); lparams.setMargins(PixelUtil.dpToPx(this, 0), PixelUtil.dpToPx(this, 5), PixelUtil.dpToPx(this, 10), PixelUtil.dpToPx(this, 5));// llp.setMargins(left, top, right, bottom); TextView rowTextView = (TextView) getLayoutInflater().inflate(R.layout.tag, null); rowTextView.setText(tag.getLabel()); rowTextView.setLayoutParams(lparams); flowLayout.addView(rowTextView); } } Log.e(TAG, "setTags: after "+ flowLayout.getChildCount() ); }
writeOptionalTagWithTextNode(theEventWriter, "system", tag.getScheme()); writeOptionalTagWithTextNode(theEventWriter, "code", tag.getTerm()); writeOptionalTagWithTextNode(theEventWriter, "display", tag.getLabel()); theEventWriter.endObject();
writeOptionalTagWithValue(theEventWriter, "system", tag.getScheme()); writeOptionalTagWithValue(theEventWriter, "code", tag.getTerm()); writeOptionalTagWithValue(theEventWriter, "display", tag.getLabel()); theEventWriter.writeEndElement();
if (tagList != null) { for (Tag next : tagList) { TagDefinition def = getTagOrNull(TagTypeEnum.TAG, next.getScheme(), next.getTerm(), next.getLabel()); if (def != null) { ResourceTag tag = theEntity.addTag(def);
writeOptionalTagWithTextNode(theEventWriter, "system", tag.getScheme()); writeOptionalTagWithTextNode(theEventWriter, "code", tag.getTerm()); writeOptionalTagWithTextNode(theEventWriter, "display", tag.getLabel()); theEventWriter.endObject();