/** * <b>SAC</b>: Implements {@link ConditionFactory#createOneOfAttributeCondition(String,String,boolean,String)}. */ public AttributeCondition createOneOfAttributeCondition(String localName, String nsURI, boolean specified, String value) throws CSSException { return new CSSOneOfAttributeCondition(localName, nsURI, specified, value); }
/** * Returns a text representation of this object. */ public String toString() { return "[" + getLocalName() + "~=\"" + getValue() + "\"]"; } }
/** * Returns a text representation of this object. */ public String toString() { return "[" + getLocalName() + "~=\"" + getValue() + "\"]"; } }
/** * <b>SAC</b>: Implements {@link ConditionFactory#createOneOfAttributeCondition(String,String,boolean,String)}. */ public AttributeCondition createOneOfAttributeCondition(String localName, String nsURI, boolean specified, String value) throws CSSException { return new CSSOneOfAttributeCondition(localName, nsURI, specified, value); }
/** * Returns a text representation of this object. */ public String toString() { return "[" + getLocalName() + "~=\"" + getValue() + "\"]"; } }
/** * <b>SAC</b>: Implements {@link ConditionFactory#createOneOfAttributeCondition(String,String,boolean,String)}. */ public AttributeCondition createOneOfAttributeCondition(String localName, String nsURI, boolean specified, String value) throws CSSException { return new CSSOneOfAttributeCondition(localName, nsURI, specified, value); }
/** * Returns a text representation of this object. */ public String toString() { return "[" + getLocalName() + "~=\"" + getValue() + "\"]"; } }
/** * <b>SAC</b>: Implements {@link ConditionFactory#createOneOfAttributeCondition(String,String,boolean,String)}. */ public AttributeCondition createOneOfAttributeCondition(String localName, String nsURI, boolean specified, String value) throws CSSException { return new CSSOneOfAttributeCondition(localName, nsURI, specified, value); }
/** * Tests whether this condition matches the given element. */ public boolean match(Element e, String pseudoE) { String attr = e.getAttribute(getLocalName()); String val = getValue(); int i = attr.indexOf(val); if (i == -1) { return false; } if (i != 0 && !Character.isSpaceChar(attr.charAt(i - 1))) { return false; } int j = i + val.length(); return (j == attr.length() || (j < attr.length() && Character.isSpaceChar(attr.charAt(j)))); }
/** * Tests whether this condition matches the given element. */ public boolean match(Element e, String pseudoE) { String attr = e.getAttribute(getLocalName()); String val = getValue(); int i = attr.indexOf(val); if (i == -1) { return false; } if (i != 0 && !Character.isSpaceChar(attr.charAt(i - 1))) { return false; } int j = i + val.length(); return (j == attr.length() || (j < attr.length() && Character.isSpaceChar(attr.charAt(j)))); }
/** * Tests whether this condition matches the given element. */ public boolean match(Element e, String pseudoE) { String attr = e.getAttribute(getLocalName()); String val = getValue(); int i = attr.indexOf(val); if (i == -1) { return false; } if (i != 0 && !Character.isSpaceChar(attr.charAt(i - 1))) { return false; } int j = i + val.length(); return (j == attr.length() || (j < attr.length() && Character.isSpaceChar(attr.charAt(j)))); }
/** * Tests whether this condition matches the given element. */ public boolean match(Element e, String pseudoE) { String attr = e.getAttribute(getLocalName()); String val = getValue(); int i = attr.indexOf(val); if (i == -1) { return false; } if (i != 0 && !Character.isSpaceChar(attr.charAt(i - 1))) { return false; } int j = i + val.length(); return (j == attr.length() || (j < attr.length() && Character.isSpaceChar(attr.charAt(j)))); }