public final Expression feed( Expression exp, AttributeToken token, boolean ignoreUndeclaredAttribute ) { this.token = token; Expression r = exp.visit(this); if(r!=Expression.nullSet || !ignoreUndeclaredAttribute) return r; // if ignoreUndeclaredAttribute==true and expression is nullSet, // we have to check which of the following is the case. // (1) attribute is undefined // (2) value of the attribute was rejected. this.token = token.createRecoveryAttToken(); r = exp.visit(this); // if wild card token is rejected, then it must be the absence of declaration. if(r==Expression.nullSet) return exp; // otherwise the value was wrong. return Expression.nullSet; // if( com.sun.msv.driver.textui.Debug.debug ) // System.out.println("after feeding "+atts.getQName(i)+" attribute"); // System.out.println(com.sun.msv.grammar.trex.util.TREXPatternPrinter.printContentModel(exp)); }
public final Expression feed( Expression exp, AttributeToken token, boolean ignoreUndeclaredAttribute ) { this.token = token; Expression r = exp.visit(this); if(r!=Expression.nullSet || !ignoreUndeclaredAttribute) return r; // if ignoreUndeclaredAttribute==true and expression is nullSet, // we have to check which of the following is the case. // (1) attribute is undefined // (2) value of the attribute was rejected. this.token = token.createRecoveryAttToken(); r = exp.visit(this); // if wild card token is rejected, then it must be the absence of declaration. if(r==Expression.nullSet) return exp; // otherwise the value was wrong. return Expression.nullSet; // if( com.sun.msv.driver.textui.Debug.debug ) // System.out.println("after feeding "+atts.getQName(i)+" attribute"); // System.out.println(com.sun.msv.grammar.trex.util.TREXPatternPrinter.printContentModel(exp)); }
public final Expression feed( Expression exp, AttributeToken token, boolean ignoreUndeclaredAttribute ) { this.token = token; Expression r = exp.visit(this); if(r!=Expression.nullSet || !ignoreUndeclaredAttribute) return r; // if ignoreUndeclaredAttribute==true and expression is nullSet, // we have to check which of the following is the case. // (1) attribute is undefined // (2) value of the attribute was rejected. this.token = token.createRecoveryAttToken(); r = exp.visit(this); // if wild card token is rejected, then it must be the absence of declaration. if(r==Expression.nullSet) return exp; // otherwise the value was wrong. return Expression.nullSet; // if( com.sun.msv.driver.textui.Debug.debug ) // System.out.println("after feeding "+atts.getQName(i)+" attribute"); // System.out.println(com.sun.msv.grammar.trex.util.TREXPatternPrinter.printContentModel(exp)); }
public final Expression feed( Expression exp, AttributeToken token, boolean ignoreUndeclaredAttribute ) { this.token = token; Expression r = exp.visit(this); if(r!=Expression.nullSet || !ignoreUndeclaredAttribute) return r; // if ignoreUndeclaredAttribute==true and expression is nullSet, // we have to check which of the following is the case. // (1) attribute is undefined // (2) value of the attribute was rejected. this.token = token.createRecoveryAttToken(); r = exp.visit(this); // if wild card token is rejected, then it must be the absence of declaration. if(r==Expression.nullSet) return exp; // otherwise the value was wrong. return Expression.nullSet; // if( com.sun.msv.driver.textui.Debug.debug ) // System.out.println("after feeding "+atts.getQName(i)+" attribute"); // System.out.println(com.sun.msv.grammar.trex.util.TREXPatternPrinter.printContentModel(exp)); }
AttributeRecoveryToken rtoken = token.createRecoveryAttToken(); r = docDecl.attFeeder.feed( this.expression, rtoken, ignoreUndeclaredAttributes );
AttributeRecoveryToken rtoken = token.createRecoveryAttToken(); r = docDecl.attFeeder.feed( this.expression, rtoken, ignoreUndeclaredAttributes );
AttributeRecoveryToken rtoken = token.createRecoveryAttToken(); r = docDecl.attFeeder.feed( this.expression, rtoken, ignoreUndeclaredAttributes );
AttributeRecoveryToken rtoken = token.createRecoveryAttToken(); r = docDecl.attFeeder.feed( this.expression, rtoken, ignoreUndeclaredAttributes );