/** * Extended constructor for multiple qualifying attribute names * @param attrNames the array of values to use to qualify whether two * elements can be compared further for differences */ public ElementNameAndAttributeQualifier(String[] attrNames) { this.qualifyingAttrNames = new String[attrNames.length]; System.arraycopy(attrNames, 0, qualifyingAttrNames, 0, attrNames.length); selector = matchesAllAttributes(attrNames) ? ElementSelectors.byNameAndAllAttributes : ElementSelectors.byNameAndAttributesControlNS(attrNames); }
Attr[] qualifyingAttributes; NamedNodeMap namedNodeMap = control.getAttributes(); if (matchesAllAttributes(qualifyingAttrNames)) { qualifyingAttributes = new Attr[namedNodeMap.getLength()]; for (int n=0; n < qualifyingAttributes.length; ++n) {
Attr[] qualifyingAttributes; NamedNodeMap namedNodeMap = control.getAttributes(); if (matchesAllAttributes(qualifyingAttrNames)) { qualifyingAttributes = new Attr[namedNodeMap.getLength()]; for (int n=0; n < qualifyingAttributes.length; ++n) {