/** * accepts a name if it is not accepted by the child name class. */ public boolean accepts( String namespaceURI, String localName ) { return !child.accepts(namespaceURI,localName); }
protected void onAttribute( String namespaceURI, String localName, String value, Datatype type ) throws SAXException { // attribute step is not tested when the parent element doesn't match // the parent XPath expression. if( !elementMatched ) return; if( path.attributeStep.accepts(namespaceURI,localName) ) // report to the parent PathMatcher that a match was found matchFound = true; // keep the elementMatched flag as-is. }
/** * accepts a name if it is not accepted by the child name class. */ public boolean accepts( String namespaceURI, String localName ) { return !child.accepts(namespaceURI,localName); }
protected void onAttribute( String namespaceURI, String localName, String value, Datatype type ) throws SAXException { // attribute step is not tested when the parent element doesn't match // the parent XPath expression. if( !elementMatched ) return; if( path.attributeStep.accepts(namespaceURI,localName) ) // report to the parent PathMatcher that a match was found matchFound = true; // keep the elementMatched flag as-is. }
/** * accepts a name if it is not accepted by the child name class. */ public boolean accepts( String namespaceURI, String localName ) { return !child.accepts(namespaceURI,localName); }
public boolean accepts( String namespaceURI, String localName ) { return base.accepts(namespaceURI,localName) && !names.contains( new StringPair(namespaceURI,localName) ); }
private Expression findElement( Expression exp, StringPair name ) { Vector vec = new Vector(); new ElementsOfConcernCollector().collect( exp, vec ); for( int i=0; i<vec.size(); i++ ) { ElementExp eexp = (ElementExp)vec.get(i); if(eexp.getNameClass().accepts(name)) return eexp; } return null; }
public boolean match( AttributeExp exp ) { // Attribute name must meet the constraint of NameClass if(!exp.nameClass.accepts(namespaceURI,localName)) return false; // content model of the attribute must consume the value if(!docDecl.resCalc.calcResidual(exp.exp, value).isEpsilonReducible()) failedExp = docDecl.pool.createChoice( failedExp, exp.exp ); // accept AttributeExp regardless of its content restriction return true; }