Codota Logo
Attributes.hasKeyIgnoreCase
Code IndexAdd Codota to your IDE (free)

How to use
hasKeyIgnoreCase
method
in
org.jsoup.nodes.Attributes

Best Java code snippets using org.jsoup.nodes.Attributes.hasKeyIgnoreCase (Showing top 2 results out of 315)

  • Common ways to obtain Attributes
private void myMethod () {
Attributes a =
  • Codota IconElement design;design.attributes()
  • Codota Iconnew Attributes()
  • Codota IconNode node;node.attributes()
  • Smart code suggestions by Codota
}
origin: org.jsoup/jsoup

/**
 * Test if this element has an attribute. <b>Case insensitive</b>
 * @param attributeKey The attribute key to check.
 * @return true if the attribute exists, false if not.
 */
public boolean hasAttr(String attributeKey) {
  Validate.notNull(attributeKey);
  if (attributeKey.startsWith("abs:")) {
    String key = attributeKey.substring("abs:".length());
    if (attributes().hasKeyIgnoreCase(key) && !absUrl(key).equals(""))
      return true;
  }
  return attributes().hasKeyIgnoreCase(attributeKey);
}
origin: org.jsoup/jsoup

Attributes expect = getEnforcedAttributes(tagName);
String attrKey = attr.getKey();
if (expect.hasKeyIgnoreCase(attrKey)) {
  return expect.getIgnoreCase(attrKey).equals(attr.getValue());
org.jsoup.nodesAttributeshasKeyIgnoreCase

Javadoc

Tests if these attributes contain an attribute with this key.

Popular methods of Attributes

  • get
    Get an attribute value by key.
  • asList
    Get the attributes as a List, for iteration.
  • hasKey
    Tests if these attributes contain an attribute with this key.
  • put
  • <init>
  • size
    Get the number of attributes in this set.
  • addAll
    Add all the attributes from the incoming set to this set.
  • getIgnoreCase
    Get an attribute's value by case-insensitive key
  • html
  • clone
  • equals
    Checks if these attributes are equal to another set of attributes, by comparing the two sets
  • forEach
  • equals,
  • forEach,
  • iterator,
  • remove,
  • add,
  • checkCapacity,
  • checkNotNull,
  • copyOf,
  • dataset

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • getContentResolver (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • Notification (javax.management)
  • BoxLayout (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now