private Object queryAttribute( final ReportElement node, final AttributeCondition ac ) { final String namespaceURI = ac.getNamespaceURI(); final Object attr; if ( namespaceURI == null ) { attr = node.getFirstAttribute( ac.getLocalName() ); } else { attr = node.getAttribute( namespaceURI, ac.getLocalName() ); } return attr; }
String namespaceURI = ac.getNamespaceURI(); if ( namespaceURI == null ) { namespaceURI = node.getNamespace(); final String attr = (String) node.getAttribute ( ac.getNamespaceURI(), ac.getLocalName() ); return isOneOfAttributes( attr, ac.getValue() );