protected State createChildState( StartTagInfo tag ) { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; // type declaration is allowed only when we haven't seen type definition. if( super.exp==null ) { if( tag.localName.equals("simpleType") ) return reader.sfactory.simpleType(this,tag); if( tag.localName.equals("complexType") ) return reader.sfactory.complexTypeDecl(this,tag); } // unique/key/keyref are ignored. if( tag.localName.equals("unique") ) return reader.sfactory.unique(this,tag); if( tag.localName.equals("key") ) return reader.sfactory.key(this,tag); if( tag.localName.equals("keyref") ) return reader.sfactory.keyref(this,tag); return null; }
protected State createChildState( StartTagInfo tag ) { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; // type declaration is allowed only when we haven't seen type definition. if( super.exp==null ) { if( tag.localName.equals("simpleType") ) return reader.sfactory.simpleType(this,tag); if( tag.localName.equals("complexType") ) return reader.sfactory.complexTypeDecl(this,tag); } // unique/key/keyref are ignored. if( tag.localName.equals("unique") ) return reader.sfactory.unique(this,tag); if( tag.localName.equals("key") ) return reader.sfactory.key(this,tag); if( tag.localName.equals("keyref") ) return reader.sfactory.keyref(this,tag); return null; }
protected State createChildState( StartTagInfo tag ) { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; // type declaration is allowed only when we haven't seen type definition. if( super.exp==null ) { if( tag.localName.equals("simpleType") ) return reader.sfactory.simpleType(this,tag); if( tag.localName.equals("complexType") ) return reader.sfactory.complexTypeDecl(this,tag); } // unique/key/keyref are ignored. if( tag.localName.equals("unique") ) return reader.sfactory.unique(this,tag); if( tag.localName.equals("key") ) return reader.sfactory.key(this,tag); if( tag.localName.equals("keyref") ) return reader.sfactory.keyref(this,tag); return null; }
protected State createChildState( StartTagInfo tag ) { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; // type declaration is allowed only when we haven't seen type definition. if( super.exp==null ) { if( tag.localName.equals("simpleType") ) return reader.sfactory.simpleType(this,tag); if( tag.localName.equals("complexType") ) return reader.sfactory.complexTypeDecl(this,tag); } // unique/key/keyref are ignored. if( tag.localName.equals("unique") ) return reader.sfactory.unique(this,tag); if( tag.localName.equals("key") ) return reader.sfactory.key(this,tag); if( tag.localName.equals("keyref") ) return reader.sfactory.keyref(this,tag); return null; }