/** * creates a state object that parses "all"/"group ref"/"choice" and "sequence". */ public State createModelGroupState( State parent, StartTagInfo tag ) { if(tag.localName.equals("all")) return sfactory.all(parent,tag); if(tag.localName.equals("choice")) return sfactory.choice(parent,tag); if(tag.localName.equals("sequence")) return sfactory.sequence(parent,tag); if(tag.localName.equals("group")) return sfactory.group(parent,tag); return null; }
/** * creates a state object that parses "attribute","attributeGroup ref", and "anyAttribute". */ public State createAttributeState( State parent, StartTagInfo tag ) { if(tag.localName.equals("attribute")) return sfactory.attribute(parent,tag); if(tag.localName.equals("anyAttribute")) return sfactory.anyAttribute(parent,tag); if(tag.localName.equals("attributeGroup")) return sfactory.attributeGroup(parent,tag); return null; }
protected State createChildState( StartTagInfo tag ) { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; if( super.exp!=null ) // we have already parsed restriction/extension. return null; if( tag.localName.equals("restriction") ) return reader.sfactory.complexRst(this,tag,parentDecl); if( tag.localName.equals("extension") ) return reader.sfactory.complexExt(this,tag,parentDecl); return super.createChildState(tag); }
ExpressionPool pool ) { super(controller,parserFactory,pool,new RootState(stateFactory.schemaHead(null))); this.sfactory = stateFactory;
ExpressionPool pool ) { super(controller,parserFactory,pool,new RootState(stateFactory.schemaHead(null))); this.sfactory = stateFactory;
ExpressionPool pool ) { super(controller,parserFactory,pool,new RootState(stateFactory.schemaHead(null))); this.sfactory = stateFactory;
ExpressionPool pool ) { super(controller,parserFactory,pool,new RootState(stateFactory.schemaHead(null))); this.sfactory = stateFactory;
protected State createChildState( StartTagInfo tag ) { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; // simpleContent, ComplexContent, group, all, choice, and sequence // are allowed only when we haven't seen type definition. if(tag.localName.equals("simpleContent") ) return reader.sfactory.simpleContent(this,tag,decl); if(tag.localName.equals("complexContent") ) return reader.sfactory.complexContent(this,tag,decl); State s = reader.createModelGroupState(this,tag); if(s!=null) return s; if( super.exp==null ) { // no content model was given. // I couldn't "decipher" what should we do in this case. // I assume "empty" just because it's most likely. exp = Expression.epsilon; } // TODO: attributes are prohibited after simpleContent/complexContent. // attribute, attributeGroup, and anyAttribtue can be specified // after content model is given. return reader.createAttributeState(this,tag); }
protected State createChildState( StartTagInfo tag ) { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; // simpleContent, ComplexContent, group, all, choice, and sequence // are allowed only when we haven't seen type definition. if(tag.localName.equals("simpleContent") ) return reader.sfactory.simpleContent(this,tag,decl); if(tag.localName.equals("complexContent") ) return reader.sfactory.complexContent(this,tag,decl); State s = reader.createModelGroupState(this,tag); if(s!=null) return s; if( super.exp==null ) { // no content model was given. // I couldn't "decipher" what should we do in this case. // I assume "empty" just because it's most likely. exp = Expression.epsilon; } // TODO: attributes are prohibited after simpleContent/complexContent. // attribute, attributeGroup, and anyAttribtue can be specified // after content model is given. return reader.createAttributeState(this,tag); }
protected State createChildState( StartTagInfo tag ) { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; // simpleContent, ComplexContent, group, all, choice, and sequence // are allowed only when we haven't seen type definition. if(tag.localName.equals("simpleContent") ) return reader.sfactory.simpleContent(this,tag,decl); if(tag.localName.equals("complexContent") ) return reader.sfactory.complexContent(this,tag,decl); State s = reader.createModelGroupState(this,tag); if(s!=null) return s; if( super.exp==null ) { // no content model was given. // I couldn't "decipher" what should we do in this case. // I assume "empty" just because it's most likely. exp = Expression.epsilon; } // TODO: attributes are prohibited after simpleContent/complexContent. // attribute, attributeGroup, and anyAttribtue can be specified // after content model is given. return reader.createAttributeState(this,tag); }
protected State createChildState( StartTagInfo tag ) { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; // simpleContent, ComplexContent, group, all, choice, and sequence // are allowed only when we haven't seen type definition. if(tag.localName.equals("simpleContent") ) return reader.sfactory.simpleContent(this,tag,decl); if(tag.localName.equals("complexContent") ) return reader.sfactory.complexContent(this,tag,decl); State s = reader.createModelGroupState(this,tag); if(s!=null) return s; if( super.exp==null ) { // no content model was given. // I couldn't "decipher" what should we do in this case. // I assume "empty" just because it's most likely. exp = Expression.epsilon; } // TODO: attributes are prohibited after simpleContent/complexContent. // attribute, attributeGroup, and anyAttribtue can be specified // after content model is given. return reader.createAttributeState(this,tag); }
protected State createChildState( StartTagInfo tag ) { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; if(tag.localName.equals("include")) return reader.sfactory.include(this,tag); if(tag.localName.equals("import")) return reader.sfactory.import_(this,tag); if(tag.localName.equals("redefine")) return reader.sfactory.redefine(this,tag); if(tag.localName.equals("simpleType")) return reader.sfactory.simpleType(this,tag); if(tag.localName.equals("complexType")) return reader.sfactory.complexTypeDecl(this,tag); if(tag.localName.equals("group")) return reader.sfactory.group(this,tag); if(tag.localName.equals("attributeGroup")) return reader.sfactory.attributeGroup(this,tag); if(tag.localName.equals("element")) return reader.sfactory.elementDecl(this,tag); if(tag.localName.equals("attribute")) return reader.sfactory.attribute(this,tag); if(tag.localName.equals("notation")) return reader.sfactory.notation(this,tag); return null; }
protected State createChildState( StartTagInfo tag ) { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; if(tag.localName.equals("include")) return reader.sfactory.include(this,tag); if(tag.localName.equals("import")) return reader.sfactory.import_(this,tag); if(tag.localName.equals("redefine")) return reader.sfactory.redefine(this,tag); if(tag.localName.equals("simpleType")) return reader.sfactory.simpleType(this,tag); if(tag.localName.equals("complexType")) return reader.sfactory.complexTypeDecl(this,tag); if(tag.localName.equals("group")) return reader.sfactory.group(this,tag); if(tag.localName.equals("attributeGroup")) return reader.sfactory.attributeGroup(this,tag); if(tag.localName.equals("element")) return reader.sfactory.elementDecl(this,tag); if(tag.localName.equals("attribute")) return reader.sfactory.attribute(this,tag); if(tag.localName.equals("notation")) return reader.sfactory.notation(this,tag); return null; }
protected State createChildState( StartTagInfo tag ) { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; if(tag.localName.equals("include")) return reader.sfactory.include(this,tag); if(tag.localName.equals("import")) return reader.sfactory.import_(this,tag); if(tag.localName.equals("redefine")) return reader.sfactory.redefine(this,tag); if(tag.localName.equals("simpleType")) return reader.sfactory.simpleType(this,tag); if(tag.localName.equals("complexType")) return reader.sfactory.complexTypeDecl(this,tag); if(tag.localName.equals("group")) return reader.sfactory.group(this,tag); if(tag.localName.equals("attributeGroup")) return reader.sfactory.attributeGroup(this,tag); if(tag.localName.equals("element")) return reader.sfactory.elementDecl(this,tag); if(tag.localName.equals("attribute")) return reader.sfactory.attribute(this,tag); if(tag.localName.equals("notation")) return reader.sfactory.notation(this,tag); return null; }
protected State createChildState( StartTagInfo tag ) { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; if(tag.localName.equals("include")) return reader.sfactory.include(this,tag); if(tag.localName.equals("import")) return reader.sfactory.import_(this,tag); if(tag.localName.equals("redefine")) return reader.sfactory.redefine(this,tag); if(tag.localName.equals("simpleType")) return reader.sfactory.simpleType(this,tag); if(tag.localName.equals("complexType")) return reader.sfactory.complexTypeDecl(this,tag); if(tag.localName.equals("group")) return reader.sfactory.group(this,tag); if(tag.localName.equals("attributeGroup")) return reader.sfactory.attributeGroup(this,tag); if(tag.localName.equals("element")) return reader.sfactory.elementDecl(this,tag); if(tag.localName.equals("attribute")) return reader.sfactory.attribute(this,tag); if(tag.localName.equals("notation")) return reader.sfactory.notation(this,tag); return null; }
public State createExpressionChildState( State parent, StartTagInfo tag ) { if(tag.localName.equals("element")) { if(tag.containsAttribute("ref")) return sfactory.elementRef(parent,tag); else return sfactory.elementDecl(parent,tag); } if(tag.localName.equals("any")) return sfactory.any(parent,tag); return createModelGroupState(parent,tag); }
public State createExpressionChildState( State parent, StartTagInfo tag ) { if(tag.localName.equals("element")) { if(tag.containsAttribute("ref")) return sfactory.elementRef(parent,tag); else return sfactory.elementDecl(parent,tag); } if(tag.localName.equals("any")) return sfactory.any(parent,tag); return createModelGroupState(parent,tag); }
public State createExpressionChildState( State parent, StartTagInfo tag ) { if(tag.localName.equals("element")) { if(tag.containsAttribute("ref")) return sfactory.elementRef(parent,tag); else return sfactory.elementDecl(parent,tag); } if(tag.localName.equals("any")) return sfactory.any(parent,tag); return createModelGroupState(parent,tag); }
protected State createChildState( StartTagInfo tag ) { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; if( super.exp!=null ) // we have already parsed restriction/extension. return null; if( tag.localName.equals("restriction") ) return reader.sfactory.complexRst(this,tag,parentDecl); if( tag.localName.equals("extension") ) return reader.sfactory.complexExt(this,tag,parentDecl); return super.createChildState(tag); }
protected State createChildState( StartTagInfo tag ) { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; if( super.exp!=null ) // we have already parsed restriction/extension. return null; if( tag.localName.equals("restriction") ) return reader.sfactory.complexRst(this,tag,parentDecl); if( tag.localName.equals("extension") ) return reader.sfactory.complexExt(this,tag,parentDecl); return super.createChildState(tag); }