private void addCrossImportsAttributeList(XmlSchema schema, List<XmlSchemaAttributeOrGroupRef> list) { for (XmlSchemaAttributeOrGroupRef attr : list) { QName ref = null; if (attr instanceof XmlSchemaAttribute) { ref = ((XmlSchemaAttribute)attr).getRef().getTargetQName(); } else { XmlSchemaAttributeGroupRef groupRef = (XmlSchemaAttributeGroupRef)attr; ref = groupRef.getRef().getTargetQName(); } if (ref != null) { XmlSchemaUtils.addImportIfNeeded(schema, ref); } } }
private void addCrossImportsAttributeList(XmlSchema schema, List<XmlSchemaAttributeOrGroupRef> list) { for (XmlSchemaAttributeOrGroupRef attr : list) { QName ref = null; if (attr instanceof XmlSchemaAttribute) { ref = ((XmlSchemaAttribute)attr).getRef().getTargetQName(); } else { XmlSchemaAttributeGroupRef groupRef = (XmlSchemaAttributeGroupRef)attr; ref = groupRef.getRef().getTargetQName(); } if (ref != null) { XmlSchemaUtils.addImportIfNeeded(schema, ref); } } }
private void addCrossImportsAttributeList(XmlSchema schema, List<XmlSchemaAttributeOrGroupRef> list) { for (XmlSchemaAttributeOrGroupRef attr : list) { QName ref = null; if (attr instanceof XmlSchemaAttribute) { ref = ((XmlSchemaAttribute)attr).getRef().getTargetQName(); } else { XmlSchemaAttributeGroupRef groupRef = (XmlSchemaAttributeGroupRef)attr; ref = groupRef.getRef().getTargetQName(); } if (ref != null) { XmlSchemaUtils.addImportIfNeeded(schema, ref); } } }
private void addCrossImportsAttributeList(XmlSchema schema, List<XmlSchemaAttributeOrGroupRef> list) { for (XmlSchemaAttributeOrGroupRef attr : list) { QName ref = null; if (attr instanceof XmlSchemaAttribute) { ref = ((XmlSchemaAttribute)attr).getRef().getTargetQName(); } else { XmlSchemaAttributeGroupRef groupRef = (XmlSchemaAttributeGroupRef)attr; ref = groupRef.getRef().getTargetQName(); } if (ref != null) { XmlSchemaUtils.addImportIfNeeded(schema, ref); } } }
private void addCrossImportsAttributeList(XmlSchema schema, List<XmlSchemaAttributeOrGroupRef> list) { for (XmlSchemaAttributeOrGroupRef attr : list) { QName ref = null; if (attr instanceof XmlSchemaAttribute) { ref = ((XmlSchemaAttribute)attr).getRef().getTargetQName(); } else { XmlSchemaAttributeGroupRef groupRef = (XmlSchemaAttributeGroupRef)attr; ref = groupRef.getRef().getTargetQName(); } if (ref != null) { XmlSchemaUtils.addImportIfNeeded(schema, ref); } } }
private void addOneSchemaCrossImports(XmlSchema schema) { /* * We need to visit all the top-level items. */ for (XmlSchemaElement element : schema.getElements().values()) { addElementCrossImportsElement(schema, element); } for (XmlSchemaAttribute attribute : schema.getAttributes().values()) { XmlSchemaUtils.addImportIfNeeded(schema, attribute.getRef().getTargetQName()); XmlSchemaUtils.addImportIfNeeded(schema, attribute.getSchemaTypeName()); } for (XmlSchemaType type : schema.getSchemaTypes().values()) { addCrossImportsType(schema, type); } }
private void addOneSchemaCrossImports(XmlSchema schema) { /* * We need to visit all the top-level items. */ for (XmlSchemaElement element : schema.getElements().values()) { addElementCrossImportsElement(schema, element); } for (XmlSchemaAttribute attribute : schema.getAttributes().values()) { XmlSchemaUtils.addImportIfNeeded(schema, attribute.getRef().getTargetQName()); XmlSchemaUtils.addImportIfNeeded(schema, attribute.getSchemaTypeName()); } for (XmlSchemaType type : schema.getSchemaTypes().values()) { addCrossImportsType(schema, type); } }
private void addOneSchemaCrossImports(XmlSchema schema) { /* * We need to visit all the top-level items. */ for (XmlSchemaElement element : schema.getElements().values()) { addElementCrossImportsElement(schema, element); } for (XmlSchemaAttribute attribute : schema.getAttributes().values()) { XmlSchemaUtils.addImportIfNeeded(schema, attribute.getRef().getTargetQName()); XmlSchemaUtils.addImportIfNeeded(schema, attribute.getSchemaTypeName()); } for (XmlSchemaType type : schema.getSchemaTypes().values()) { addCrossImportsType(schema, type); } }
private void addOneSchemaCrossImports(XmlSchema schema) { /* * We need to visit all the top-level items. */ for (XmlSchemaElement element : schema.getElements().values()) { addElementCrossImportsElement(schema, element); } for (XmlSchemaAttribute attribute : schema.getAttributes().values()) { XmlSchemaUtils.addImportIfNeeded(schema, attribute.getRef().getTargetQName()); XmlSchemaUtils.addImportIfNeeded(schema, attribute.getSchemaTypeName()); } for (XmlSchemaType type : schema.getSchemaTypes().values()) { addCrossImportsType(schema, type); } }
private void addOneSchemaCrossImports(XmlSchema schema) { /* * We need to visit all the top-level items. */ for (XmlSchemaElement element : schema.getElements().values()) { addElementCrossImportsElement(schema, element); } for (XmlSchemaAttribute attribute : schema.getAttributes().values()) { XmlSchemaUtils.addImportIfNeeded(schema, attribute.getRef().getTargetQName()); XmlSchemaUtils.addImportIfNeeded(schema, attribute.getSchemaTypeName()); } for (XmlSchemaType type : schema.getSchemaTypes().values()) { addCrossImportsType(schema, type); } }
} else if (att.getRef().getTargetQName() != null) { XmlSchema resolvedSchema = getParentSchema(parentSchema, att.getRef().getTargetQName(), COMPONENT_ATTRIBUTE); if (resolvedSchema == null) { throw new SchemaCompilationException("can not find the attribute " + att.getRef().getTargetQName() + " from the parent schema " + parentSchema.getTargetNamespace()); } else { XmlSchemaAttribute xmlSchemaAttribute = resolvedSchema.getAttributes().get(att.getRef().getTargetQName()); if (xmlSchemaAttribute != null) { } else { throw new SchemaCompilationException("Attribute QName reference refer to an invalid attribute " + att.getRef().getTargetQName());
} else if (att.getRef().getTargetQName() != null) { XmlSchema resolvedSchema = getParentSchema(parentSchema, att.getRef().getTargetQName(), COMPONENT_ATTRIBUTE); if (resolvedSchema == null) { throw new SchemaCompilationException("can not find the attribute " + att.getRef().getTargetQName() + " from the parent schema " + parentSchema.getTargetNamespace()); } else { XmlSchemaAttribute xmlSchemaAttribute = resolvedSchema.getAttributes().get(att.getRef().getTargetQName()); if (xmlSchemaAttribute != null) { } else { throw new SchemaCompilationException("Attribute QName reference refer to an invalid attribute " + att.getRef().getTargetQName());