public State attributeGroup (State parent,StartTagInfo tag) { return new AttributeGroupState(); } public State elementDecl (State parent,StartTagInfo tag) { return new ElementDeclState(); }
protected Expression annealExpression(Expression contentType) { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; if( !isGlobal() ) return contentType; // if this is a global declaration register it. String name = startTag.getAttribute("name"); if( name==null ) { reader.reportError( XMLSchemaReader.ERR_MISSING_ATTRIBUTE, "attributeGroup", "name" ); return Expression.epsilon; // recover by returning something meaningless. // the parent state will ignore this. } AttributeGroupExp exp; if( isRedefine() ) exp = (AttributeGroupExp)super.oldDecl; else { exp = reader.currentSchema.attributeGroups.getOrCreate(name); if( exp.exp!=null ) reader.reportError( new Locator[]{this.location,reader.getDeclaredLocationOf(exp)}, XMLSchemaReader.ERR_DUPLICATE_ATTRIBUTE_GROUP_DEFINITION, new Object[]{name} ); } reader.setDeclaredLocationOf(exp); exp.exp = contentType; exp.wildcard = this.wildcard; return exp; } }
protected Expression annealExpression(Expression contentType) { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; if( !isGlobal() ) return contentType; // if this is a global declaration register it. String name = startTag.getAttribute("name"); if( name==null ) { reader.reportError( XMLSchemaReader.ERR_MISSING_ATTRIBUTE, "attributeGroup", "name" ); return Expression.epsilon; // recover by returning something meaningless. // the parent state will ignore this. } AttributeGroupExp exp; if( isRedefine() ) exp = (AttributeGroupExp)super.oldDecl; else { exp = reader.currentSchema.attributeGroups.getOrCreate(name); if( exp.exp!=null ) reader.reportError( new Locator[]{this.location,reader.getDeclaredLocationOf(exp)}, XMLSchemaReader.ERR_DUPLICATE_ATTRIBUTE_GROUP_DEFINITION, new Object[]{name} ); } reader.setDeclaredLocationOf(exp); exp.exp = contentType; exp.wildcard = this.wildcard; return exp; } }
protected Expression annealExpression(Expression contentType) { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; if( !isGlobal() ) return contentType; // if this is a global declaration register it. String name = startTag.getAttribute("name"); if( name==null ) { reader.reportError( XMLSchemaReader.ERR_MISSING_ATTRIBUTE, "attributeGroup", "name" ); return Expression.epsilon; // recover by returning something meaningless. // the parent state will ignore this. } AttributeGroupExp exp; if( isRedefine() ) exp = (AttributeGroupExp)super.oldDecl; else { exp = reader.currentSchema.attributeGroups.getOrCreate(name); if( exp.exp!=null ) reader.reportError( new Locator[]{this.location,reader.getDeclaredLocationOf(exp)}, XMLSchemaReader.ERR_DUPLICATE_ATTRIBUTE_GROUP_DEFINITION, new Object[]{name} ); } reader.setDeclaredLocationOf(exp); exp.exp = contentType; exp.wildcard = this.wildcard; return exp; } }
public State attributeGroup (State parent,StartTagInfo tag) { return new AttributeGroupState(); } public State elementDecl (State parent,StartTagInfo tag) { return new ElementDeclState(); }
protected Expression annealExpression(Expression contentType) { final XMLSchemaReader reader = (XMLSchemaReader)this.reader; if( !isGlobal() ) return contentType; // if this is a global declaration register it. String name = startTag.getAttribute("name"); if( name==null ) { reader.reportError( XMLSchemaReader.ERR_MISSING_ATTRIBUTE, "attributeGroup", "name" ); return Expression.epsilon; // recover by returning something meaningless. // the parent state will ignore this. } AttributeGroupExp exp; if( isRedefine() ) exp = (AttributeGroupExp)super.oldDecl; else { exp = reader.currentSchema.attributeGroups.getOrCreate(name); if( exp.exp!=null ) reader.reportError( new Locator[]{this.location,reader.getDeclaredLocationOf(exp)}, XMLSchemaReader.ERR_DUPLICATE_ATTRIBUTE_GROUP_DEFINITION, new Object[]{name} ); } reader.setDeclaredLocationOf(exp); exp.exp = contentType; exp.wildcard = this.wildcard; return exp; } }
public State attributeGroup (State parent,StartTagInfo tag) { return new AttributeGroupState(); } public State elementDecl (State parent,StartTagInfo tag) { return new ElementDeclState(); }
public State attributeGroup (State parent,StartTagInfo tag) { return new AttributeGroupState(); } public State elementDecl (State parent,StartTagInfo tag) { return new ElementDeclState(); }