public XMLSchemaReader( GrammarReaderController controller, SAXParserFactory parserFactory, StateFactory stateFactory, ExpressionPool pool ) { super(controller,parserFactory,pool,new RootState(stateFactory.schemaHead(null))); this.sfactory = stateFactory; // by putting them into ReferenceExp, # of expressions usually gets smaller // because createSequence are right-associative and any attempt to extend // this sequence will end up creating new SequenceExps. // It's also good for writer: it can generate more compact XML representation. ReferenceExp exp = new ReferenceExp( XMLSchemaSchemaLocationAttributes ); xsiSchemaLocationExp = exp; exp.exp = pool.createSequence( pool.createOptional( pool.createAttribute( new SimpleNameClass(XMLSchemaSchema.XMLSchemaInstanceNamespace,"schemaLocation") ) ), pool.createOptional( pool.createAttribute( new SimpleNameClass(XMLSchemaSchema.XMLSchemaInstanceNamespace,"noNamespaceSchemaLocation") ) ) ); this.grammar = new XMLSchemaGrammar(pool);
public XMLSchemaReader( GrammarReaderController controller, SAXParserFactory parserFactory, StateFactory stateFactory, ExpressionPool pool ) { super(controller,parserFactory,pool,new RootState(stateFactory.schemaHead(null))); this.sfactory = stateFactory; // by putting them into ReferenceExp, # of expressions usually gets smaller // because createSequence are right-associative and any attempt to extend // this sequence will end up creating new SequenceExps. // It's also good for writer: it can generate more compact XML representation. ReferenceExp exp = new ReferenceExp( XMLSchemaSchemaLocationAttributes ); xsiSchemaLocationExp = exp; exp.exp = pool.createSequence( pool.createOptional( pool.createAttribute( new SimpleNameClass(XMLSchemaSchema.XMLSchemaInstanceNamespace,"schemaLocation") ) ), pool.createOptional( pool.createAttribute( new SimpleNameClass(XMLSchemaSchema.XMLSchemaInstanceNamespace,"noNamespaceSchemaLocation") ) ) ); this.grammar = new XMLSchemaGrammar(pool);
public XMLSchemaReader( GrammarReaderController controller, SAXParserFactory parserFactory, StateFactory stateFactory, ExpressionPool pool ) { super(controller,parserFactory,pool,new RootState(stateFactory.schemaHead(null))); this.sfactory = stateFactory; // by putting them into ReferenceExp, # of expressions usually gets smaller // because createSequence are right-associative and any attempt to extend // this sequence will end up creating new SequenceExps. // It's also good for writer: it can generate more compact XML representation. ReferenceExp exp = new ReferenceExp( XMLSchemaSchemaLocationAttributes ); xsiSchemaLocationExp = exp; exp.exp = pool.createSequence( pool.createOptional( pool.createAttribute( new SimpleNameClass(XMLSchemaSchema.XMLSchemaInstanceNamespace,"schemaLocation") ) ), pool.createOptional( pool.createAttribute( new SimpleNameClass(XMLSchemaSchema.XMLSchemaInstanceNamespace,"noNamespaceSchemaLocation") ) ) ); this.grammar = new XMLSchemaGrammar(pool);
public XMLSchemaReader( GrammarReaderController controller, SAXParserFactory parserFactory, StateFactory stateFactory, ExpressionPool pool ) { super(controller,parserFactory,pool,new RootState(stateFactory.schemaHead(null))); this.sfactory = stateFactory; // by putting them into ReferenceExp, # of expressions usually gets smaller // because createSequence are right-associative and any attempt to extend // this sequence will end up creating new SequenceExps. // It's also good for writer: it can generate more compact XML representation. ReferenceExp exp = new ReferenceExp( XMLSchemaSchemaLocationAttributes ); xsiSchemaLocationExp = exp; exp.exp = pool.createSequence( pool.createOptional( pool.createAttribute( new SimpleNameClass(XMLSchemaSchema.XMLSchemaInstanceNamespace,"schemaLocation") ) ), pool.createOptional( pool.createAttribute( new SimpleNameClass(XMLSchemaSchema.XMLSchemaInstanceNamespace,"noNamespaceSchemaLocation") ) ) ); this.grammar = new XMLSchemaGrammar(pool);