sets an existing image to the imageView

@param imageView
@param tag       used to identify imageViews and define different placeholders
@return true if an image was set
343027
@Override
    public boolean applyTo(ImageView imageView, String tag) {
        if (getUri() != null) {
            boolean consumed = DrawerImageLoader.getInstance().setImage(imageView, getUri(), tag);
            if (!consumed) {
                imageView.setImageURI(getUri());
            }
        } else if (getIcon() != null) {
            imageView.setImageDrawable(getIcon());
        } else if (getBitmap() != null) {
            imageView.setImageBitmap(getBitmap());
        } else if (getIconRes() != -1) {
            imageView.setImageResource(getIconRes());
        } else if (mIIcon != null) {
            imageView.setImageDrawable(new IconicsDrawable(imageView.getContext(), mIIcon).actionBar());
        } else {
            imageView.setImageBitmap(null);
            return false;
        }
        return true;
    }
372329
public void setClassTag (String tag, Class type) {
		if (tag == null) throw new IllegalArgumentException("tag cannot be null.");
		if (type == null) throw new IllegalArgumentException("type cannot be null.");
		classNameToTag.put(type.getName(), tag);
		tagToClass.put(tag, type);
	}
472848
@Override
    public void visitTag(Tag tag) {

        if (tag instanceof LinkTag) {
            processLinkTag((LinkTag)tag);
        } else if (tag instanceof ImageTag) {
            processImageTag((ImageTag)tag);
        } else if (tag instanceof ObjectTag) {
            processObjectTag((ObjectTag)tag);
        } else {
            // there are no specialized tag classes for these tags :(
            if (TAG_EMBED.equals(tag.getTagName())) {
                processEmbedTag(tag);
            } else if (TAG_AREA.equals(tag.getTagName())) {
                processAreaTag(tag);
            }
        }
        // append text content of the tag (may have been changed by above methods)
        super.visitTag(tag);
    }
458301
@JsonIgnore
    public void setTag(String key, String value) {
        requireArgument(key != null && !key.trim().isEmpty(), "Tag key cannot be null.");
        requireArgument(!ReservedField.isReservedField(key), "Tag is a reserved tag name.");
        if (value == null || value.isEmpty()) {
            _tags.remove(key);
        } else {
            _tags.put(key, value);
        }
    }
985913
public void setTagsToAdd(java.util.Collection<Tag> tagsToAdd) {
        if (tagsToAdd == null) {
            this.tagsToAdd = null;
            return;
        }

        this.tagsToAdd = new com.amazonaws.internal.SdkInternalList<Tag>(tagsToAdd);
    }
138776
function setDivTag(image, img) {
  var setElemStyle = DOM.setStyle(image.element);
  setElemStyle('backgroundImage', 'url(' + img.src + ')');

  if (image.preserveAspectRatio) {
    var w, h;

    if (image.knownDimensions) {
      w = image.knownDimensions[0];
      h = image.knownDimensions[1];
    } else {
      w = img.width;
      h = img.height;
    }

    setElemStyle('backgroundSize', 'cover');

    if (image.isFlexible) {
      setElemStyle('paddingBottom', ((h / w) * 100.0) + '%');
    } else {
      setElemStyle('width', w + 'px');
      setElemStyle('height', h + 'px');
    }
  }
}
213476
protected boolean hasReadElfTag(String tag) {
        String tagValue = getReadElfTag(tag);
        return (tagValue != null && !tagValue.isEmpty());
    }
1273888
public void setTag(String tagName, long tagValue) {
    tagTable.put(tagName, Long.valueOf(tagValue));
  }
218645
public static Image findImageByTag( String imageTag, List<Image> images ) {

		Image result = null;
		for( Image img : images ) {
			String[] tags = img.getRepoTags();
			if( tags == null )
				continue;

			for( String s : tags ) {
				if( s.contains( imageTag )) {
					result = img;
					break;
				}
			}
		}

		return result;
	}
1307830
@SuppressWarnings("unchecked")
    public <T extends WebLocatorAbstractBuilder> T setTag(final String tag) {
        pathBuilder.setTag(tag);
        return (T) this;
    }
1087968
public static void setTag(EfficientCacheView cacheView, int viewId, Object tag) {
        View view = cacheView.findViewByIdEfficient(viewId);
        if (view != null) {
            view.setTag(tag);
        }
    }
433393
@Override
	public void onBindViewHolder(ViewHolder viewHolder, final int position) {
		if (jarr == null) return;
		Log.d(TAG, "Element " + position + " set.");
		// Get element from your dataset at this position and replace the contents of the view
		// with that element
		Log.d("jus", jarr.get(position).asJsonObject().getString("imageUrl"));

		viewHolder.niv.setImageUrl(jarr.get(position).asJsonObject().getString("imageUrl"),
				imageLoader);
		viewHolder.title.setText(jarr.get(position).asJsonObject().getString("title"));
		viewHolder.author.setText(jarr.get(position).asJsonObject().getString("author"));
		viewHolder.views.setText(jarr.get(position).asJsonObject().getInt("views").toString());
		viewHolder.favorites.setText(jarr.get(position).asJsonObject().getInt("favorites")
				.toString());


	}
574710
public Instagram byTag(String tag, boolean exactMatch) {
        addResource(Type.TAG, tag, -1, -1, -1, exactMatch, null);
        return this;
    }
698562
public RuleUpdate setTags(@Nullable Set<String> tags) {
    this.tags = tags;
    this.changeTags = true;
    return this;
  }
150893
public boolean hasOneTag(Tag... tags) {
        for(Tag t : tags) {
            if (this.tags.contains(t)) return true;
        }
        return false;
    }
449298
public void setTag(String tagName, short tagValue) {
    tagTable.put(tagName, Short.valueOf(tagValue));
  }
771781
public void setTags(java.util.Collection<TagListEntry> tags) {
        if (tags == null) {
            this.tags = null;
            return;
        }

        this.tags = new java.util.ArrayList<TagListEntry>(tags);
    }