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

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

Best Java code snippets using org.jsoup.nodes.Attributes.getIgnoreCase (Showing top 7 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

/**
 * Get the {@code id} attribute of this element.
 * 
 * @return The id attribute, if present, or an empty string if not.
 */
public String id() {
  return attributes().getIgnoreCase("id");
}
origin: k9mail/k-9

  private boolean isMetaRefresh(Node node) {
    if (!"meta".equalsIgnoreCase(node.nodeName())) {
      return false;
    }
    String attributeValue = node.attributes().getIgnoreCase("http-equiv");
    return "refresh".equalsIgnoreCase(attributeValue.trim());
  }
}
origin: org.jsoup/jsoup

final String classAttr = attributes().getIgnoreCase("class");
final int len = classAttr.length();
final int wantLen = className.length();
origin: org.jsoup/jsoup

/**
 * Get an attribute's value by its key. <b>Case insensitive</b>
 * <p>
 * To get an absolute URL from an attribute that may be a relative URL, prefix the key with <code><b>abs</b></code>,
 * which is a shortcut to the {@link #absUrl} method.
 * </p>
 * E.g.:
 * <blockquote><code>String url = a.attr("abs:href");</code></blockquote>
 *
 * @param attributeKey The attribute key.
 * @return The attribute, or empty string if not present (to avoid nulls).
 * @see #attributes()
 * @see #hasAttr(String)
 * @see #absUrl(String)
 */
public String attr(String attributeKey) {
  Validate.notNull(attributeKey);
  if (!hasAttributes())
    return EmptyString;
  String val = attributes().getIgnoreCase(attributeKey);
  if (val.length() > 0)
    return val;
  else if (attributeKey.startsWith("abs:"))
    return absUrl(attributeKey.substring("abs:".length()));
  else return "";
}
origin: org.jsoup/jsoup

String attrKey = attr.getKey();
if (expect.hasKeyIgnoreCase(attrKey)) {
  return expect.getIgnoreCase(attrKey).equals(attr.getValue());
origin: com.infotel.seleniumRobot/core

@Override
public String getAttribute(String name) {
  return cachedElement.attributes().getIgnoreCase(name);
}
origin: com.infotel.seleniumRobot/core

public CachedHtmlElement(WebElement elementToCache) {
  try {
    rectangle = elementToCache.getRect();
    location = new Point(rectangle.x, rectangle.y);
    size = new Dimension(rectangle.width, rectangle.height);
  } catch (WebDriverException e) {
    location = elementToCache.getLocation();
    size = elementToCache.getSize();
    rectangle = new Rectangle(location, size);
  }
  
    
  cachedElement = Jsoup.parseBodyFragment(elementToCache.getAttribute("outerHTML")).body().child(0);	
  if ("option".equals(cachedElement.tagName())
      || ("input".equals(cachedElement.tagName()) && "checkbox".equals(cachedElement.attributes().getIgnoreCase("type")))
      || ("input".equals(cachedElement.tagName()) && "radio".equals(cachedElement.attributes().getIgnoreCase("type")))
    ) {
    selected = elementToCache.isSelected();
  } else {
    selected = false;
  }
  realElement = elementToCache;
  
}
 
org.jsoup.nodesAttributesgetIgnoreCase

Javadoc

Get an attribute's value by case-insensitive 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.
  • html
  • clone
  • equals
    Checks if these attributes are equal to another set of attributes, by comparing the two sets
  • forEach
  • iterator
  • forEach,
  • iterator,
  • remove,
  • add,
  • checkCapacity,
  • checkNotNull,
  • copyOf,
  • dataset,
  • hasKeyIgnoreCase

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • getSystemService (Context)
  • addToBackStack (FragmentTransaction)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • Notification (javax.management)
  • JOptionPane (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
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