new Locator[]{ getLocation(), reader.getDeclaredLocationOf(idc) }, XMLSchemaReader.ERR_KEY_FIELD_NUMBER_MISMATCH, new Object[]{
new Locator[]{ getLocation(), reader.getDeclaredLocationOf(idc) }, XMLSchemaReader.ERR_KEY_FIELD_NUMBER_MISMATCH, new Object[]{
new Locator[]{ getLocation(), reader.getDeclaredLocationOf(idc) }, XMLSchemaReader.ERR_KEY_FIELD_NUMBER_MISMATCH, new Object[]{
new Locator[]{ getLocation(), reader.getDeclaredLocationOf(idc) }, XMLSchemaReader.ERR_KEY_FIELD_NUMBER_MISMATCH, new Object[]{
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; } }
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; } }
new Locator[]{getDeclaredLocationOf(c),getDeclaredLocationOf(d)}, ERR_UNRELATED_TYPES_IN_SUBSTITUTIONGROUP, new Object[]{c.name, d.name} );
new Locator[]{getDeclaredLocationOf(c),getDeclaredLocationOf(d)}, ERR_UNRELATED_TYPES_IN_SUBSTITUTIONGROUP, new Object[]{c.name, d.name} );
new Locator[]{getDeclaredLocationOf(c),getDeclaredLocationOf(d)}, ERR_UNRELATED_TYPES_IN_SUBSTITUTIONGROUP, new Object[]{c.name, d.name} );
if( decl.exp!=null ) reader.reportError( new Locator[]{this.location,reader.getDeclaredLocationOf(decl)}, XMLSchemaReader.ERR_DUPLICATE_GROUP_DEFINITION, new Object[]{name} );
if( decl.exp!=null ) reader.reportError( new Locator[]{this.location,reader.getDeclaredLocationOf(decl)}, XMLSchemaReader.ERR_DUPLICATE_GROUP_DEFINITION, new Object[]{name} );
new Locator[]{getDeclaredLocationOf(c),getDeclaredLocationOf(d)}, ERR_UNRELATED_TYPES_IN_SUBSTITUTIONGROUP, new Object[]{c.name, d.name} );
if( decl.exp!=null ) reader.reportError( new Locator[]{this.location,reader.getDeclaredLocationOf(decl)}, XMLSchemaReader.ERR_DUPLICATE_GROUP_DEFINITION, new Object[]{name} );
if( decl.exp!=null ) reader.reportError( new Locator[]{this.location,reader.getDeclaredLocationOf(decl)}, XMLSchemaReader.ERR_DUPLICATE_GROUP_DEFINITION, new Object[]{name} );
new Locator[]{this.location,reader.getDeclaredLocationOf(decl)}, XMLSchemaReader.ERR_DUPLICATE_COMPLEXTYPE_DEFINITION, new Object[]{name} );
new Locator[]{this.location,reader.getDeclaredLocationOf(decl)}, XMLSchemaReader.ERR_DUPLICATE_COMPLEXTYPE_DEFINITION, new Object[]{name} );
new Locator[]{this.location,reader.getDeclaredLocationOf(decl)}, XMLSchemaReader.ERR_DUPLICATE_COMPLEXTYPE_DEFINITION, new Object[]{name} );
new Locator[]{this.location,reader.getDeclaredLocationOf(decl)}, XMLSchemaReader.ERR_DUPLICATE_COMPLEXTYPE_DEFINITION, new Object[]{name} );