5758596061626364656667
public Expression createExpression( XMLSchemaGrammar grammar ) { final ExpressionPool pool = grammar.pool; switch(processMode) { case SKIP: return pool.createZeroOrMore(pool.createAttribute(name)); case STRICT: case LAX: Expression exp = Expression.epsilon;
8990919293949596979899
return exp; // if "lax", we have to add an expression to // match other attributes. return pool.createSequence( pool.createZeroOrMore(pool.createAttribute(laxNc)), exp ); default: throw new Error("undefined process mode:"+processMode); } }
7980818283848586878889
111112113114115116117118119120121