public static void addUtilityTypesToSchema(XmlSchema root) { XmlSchemaUtils.addImportIfNeeded(root, UTILITY_TYPES_SCHEMA_NS); }
private void addXmimeToSchema(XmlSchema root) { XmlSchemaUtils.addImportIfNeeded(root, AbstractXOPType.XML_MIME_NS); }
private void addXmimeToSchema(XmlSchema root) { XmlSchemaUtils.addImportIfNeeded(root, AbstractXOPType.XML_MIME_NS); }
public static void addUtilityTypesToSchema(XmlSchema root) { XmlSchemaUtils.addImportIfNeeded(root, UTILITY_TYPES_SCHEMA_NS); }
/** * For convenience, start from a qname, and add the import if it is non-null * and has a namespace. * @see #addImportIfNeeded(XmlSchema, String) * @param schema * @param qname */ public static void addImportIfNeeded(XmlSchema schema, QName qname) { if (qname == null) { return; } if (qname.getNamespaceURI() == null) { return; } addImportIfNeeded(schema, qname.getNamespaceURI()); }
public static void setAttributeAttributes(QName name, AegisType type, XmlSchema root) { String ns = type.getSchemaType().getNamespaceURI(); XmlSchemaUtils.addImportIfNeeded(root, ns); }
public static void setAttributeAttributes(QName name, AegisType type, XmlSchema root) { String ns = type.getSchemaType().getNamespaceURI(); XmlSchemaUtils.addImportIfNeeded(root, ns); }
private void addElementCrossImportsElement(XmlSchema schema, XmlSchemaElement item) { XmlSchemaElement element = item; XmlSchemaUtils.addImportIfNeeded(schema, element.getRef().getTargetQName()); XmlSchemaUtils.addImportIfNeeded(schema, element.getSchemaTypeName()); // if there's an anonymous type, it might have element refs in it. XmlSchemaType schemaType = element.getSchemaType(); if (!crossImportsAdded(schema, schemaType)) { addCrossImportsType(schema, schemaType); } }
private void addElementCrossImportsElement(XmlSchema schema, XmlSchemaElement item) { XmlSchemaElement element = (XmlSchemaElement)item; XmlSchemaUtils.addImportIfNeeded(schema, element.getRef().getTargetQName()); XmlSchemaUtils.addImportIfNeeded(schema, element.getSchemaTypeName()); // if there's an anonymous type, it might have element refs in it. XmlSchemaType schemaType = element.getSchemaType(); if (!crossImportsAdded(schema, schemaType)) { addCrossImportsType(schema, schemaType); } }
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 addElementCrossImportsElement(XmlSchema schema, XmlSchemaElement item) { XmlSchemaElement element = item; XmlSchemaUtils.addImportIfNeeded(schema, element.getRef().getTargetQName()); XmlSchemaUtils.addImportIfNeeded(schema, element.getSchemaTypeName()); // if there's an anonymous type, it might have element refs in it. XmlSchemaType schemaType = element.getSchemaType(); if (!crossImportsAdded(schema, schemaType)) { addCrossImportsType(schema, schemaType); } }
private void addElementCrossImportsElement(XmlSchema schema, XmlSchemaElement item) { XmlSchemaElement element = item; XmlSchemaUtils.addImportIfNeeded(schema, element.getRef().getTargetQName()); XmlSchemaUtils.addImportIfNeeded(schema, element.getSchemaTypeName()); // if there's an anonymous type, it might have element refs in it. XmlSchemaType schemaType = element.getSchemaType(); if (!crossImportsAdded(schema, schemaType)) { addCrossImportsType(schema, schemaType); } }
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 addElementCrossImportsElement(XmlSchema schema, XmlSchemaElement item) { XmlSchemaElement element = item; XmlSchemaUtils.addImportIfNeeded(schema, element.getRef().getTargetQName()); XmlSchemaUtils.addImportIfNeeded(schema, element.getSchemaTypeName()); // if there's an anonymous type, it might have element refs in it. XmlSchemaType schemaType = element.getSchemaType(); if (!crossImportsAdded(schema, schemaType)) { addCrossImportsType(schema, schemaType); } }
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 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); } } }