/** * <b>SAC</b>: Implements {@link * org.w3c.css.sac.SelectorFactory#createElementSelector(String,String)}. */ public ElementSelector createElementSelector(String namespaceURI, String tagName) throws CSSException { return new CSSElementSelector(namespaceURI, tagName); }
/** * Returns the specificity of this selector. */ public int getSpecificity() { return (getLocalName() == null) ? 0 : 1; }
/** * Returns the specificity of this selector. */ public int getSpecificity() { return (getLocalName() == null) ? 0 : 1; }
/** * <b>SAC</b>: Implements {@link * org.w3c.css.sac.SelectorFactory#createElementSelector(String,String)}. */ public ElementSelector createElementSelector(String namespaceURI, String tagName) throws CSSException { return new CSSElementSelector(namespaceURI, tagName); }
/** * Returns a representation of the selector. */ public String toString() { String name = getLocalName(); if (name == null) { return "*"; } return name; } }
/** * <b>SAC</b>: Implements {@link * org.w3c.css.sac.SelectorFactory#createElementSelector(String,String)}. */ public ElementSelector createElementSelector(String namespaceURI, String tagName) throws CSSException { return new CSSElementSelector(namespaceURI, tagName); }
/** * Returns a representation of the selector. */ public String toString() { String name = getLocalName(); if (name == null) { return "*"; } return name; } }
/** * <b>SAC</b>: Implements {@link * org.w3c.css.sac.SelectorFactory#createElementSelector(String,String)}. */ public ElementSelector createElementSelector(String namespaceURI, String tagName) throws CSSException { return new CSSElementSelector(namespaceURI, tagName); }
/** * Returns a representation of the selector. */ public String toString() { String name = getLocalName(); if (name == null) { return "*"; } return name; } }
/** * Returns the specificity of this selector. */ public int getSpecificity() { return (getLocalName() == null) ? 0 : 1; }
/** * Returns a representation of the selector. */ public String toString() { String name = getLocalName(); if (name == null) { return "*"; } return name; } }
/** * Returns the specificity of this selector. */ public int getSpecificity() { return (getLocalName() == null) ? 0 : 1; }
/** * Tests whether this selector matches the given element. */ public boolean match(Element e, String pseudoE) { String name = getLocalName(); if (name == null) { return true; } String eName; if (e.getPrefix() == null) eName = e.getNodeName(); else eName = e.getLocalName(); // According to CSS 2 section 5.1 element // names in selectors are case-sensitive for XML. return eName.equals(name); // For HTML // return eName.equalsIgnoreCase(name); }
/** * Tests whether this selector matches the given element. */ public boolean match(Element e, String pseudoE) { String name = getLocalName(); if (name == null) { return true; } String eName; if (e.getPrefix() == null) eName = e.getNodeName(); else eName = e.getLocalName(); // According to CSS 2 section 5.1 element // names in selectors are case-sensitive for XML. return eName.equals(name); // For HTML // return eName.equalsIgnoreCase(name); }
/** * Tests whether this selector matches the given element. */ public boolean match(Element e, String pseudoE) { String name = getLocalName(); if (name == null) { return true; } String eName; if (e.getPrefix() == null) eName = e.getNodeName(); else eName = e.getLocalName(); // According to CSS 2 section 5.1 element // names in selectors are case-sensitive for XML. return eName.equals(name); // For HTML // return eName.equalsIgnoreCase(name); }
/** * Tests whether this selector matches the given element. */ public boolean match(Element e, String pseudoE) { String name = getLocalName(); if (name == null) { return true; } String eName; if (e.getPrefix() == null) eName = e.getNodeName(); else eName = e.getLocalName(); // According to CSS 2 section 5.1 element // names in selectors are case-sensitive for XML. return eName.equals(name); // For HTML // return eName.equalsIgnoreCase(name); }