public XmlSchema[] getXmlSchemas() { return schemaCollection.getXmlSchemas(); }
public XmlSchema[] getXmlSchemas() { return schemaCollection.getXmlSchemas(); }
public XmlSchema[] getXmlSchemas() { return schemaCollection.getXmlSchemas(); }
public XmlSchema[] getXmlSchemas() { return schemaCollection.getXmlSchemas(); }
public XmlSchema[] getXmlSchemas() { return schemaCollection.getXmlSchemas(); }
public void addCrossImports() { /* * We need to inventory all the cross-imports to see if any are missing. */ for (XmlSchema schema : schemaCollection.getXmlSchemas()) { addOneSchemaCrossImports(schema); } }
public void addCrossImports() { /* * We need to inventory all the cross-imports to see if any are missing. */ for (XmlSchema schema : schemaCollection.getXmlSchemas()) { addOneSchemaCrossImports(schema); } }
public void addCrossImports() { /* * We need to inventory all the cross-imports to see if any are missing. */ for (XmlSchema schema : schemaCollection.getXmlSchemas()) { addOneSchemaCrossImports(schema); } }
public void addCrossImports() { /* * We need to inventory all the cross-imports to see if any are missing. */ for (XmlSchema schema : schemaCollection.getXmlSchemas()) { addOneSchemaCrossImports(schema); } }
public void addCrossImports() { /* * We need to inventory all the cross-imports to see if any are missing. */ for (XmlSchema schema : schemaCollection.getXmlSchemas()) { addOneSchemaCrossImports(schema); } }
/** * This function is not part of the XmlSchema API. Who knows why? * * @param namespaceURI targetNamespace * @return schema, or null. */ public XmlSchema getSchemaByTargetNamespace(String namespaceURI) { for (XmlSchema schema : schemaCollection.getXmlSchemas()) { if (namespaceURI.equals(schema.getTargetNamespace())) { return schema; } } return null; }
public String generateCodeForSchemaCollection(XmlSchemaCollection collection) { StringBuilder accumulatedCode = new StringBuilder(); for (XmlSchema schema : collection.getXmlSchemas()) { if (!Constants.URI_2001_SCHEMA_XSD.equals(schema.getTargetNamespace())) { accumulatedCode.append(generateCodeForSchema(schema)); } } return accumulatedCode.toString(); }
public XmlSchema getSchemaForElement(QName name) { for (XmlSchema schema : schemaCollection.getXmlSchemas()) { if (name.getNamespaceURI().equals(schema.getTargetNamespace())) { if (schema.getElementByName(name.getLocalPart()) != null) { return schema; } else if (schema.getElementByName(name) != null) { return schema; } } } return null; }
public XmlSchema getSchemaForElement(QName name) { for (XmlSchema schema : schemaCollection.getXmlSchemas()) { if (name.getNamespaceURI().equals(schema.getTargetNamespace())) { if (schema.getElementByName(name.getLocalPart()) != null) { return schema; } else if (schema.getElementByName(name) != null) { return schema; } } } return null; }
public XmlSchema getSchemaForElement(QName name) { for (XmlSchema schema : schemaCollection.getXmlSchemas()) { if (name.getNamespaceURI().equals(schema.getTargetNamespace())) { if (schema.getElementByName(name.getLocalPart()) != null) { return schema; } else if (schema.getElementByName(name) != null) { return schema; } } } return null; }
public XmlSchema getSchemaForElement(QName name) { for (XmlSchema schema : schemaCollection.getXmlSchemas()) { if (name.getNamespaceURI().equals(schema.getTargetNamespace())) { if (schema.getElementByName(name.getLocalPart()) != null) { return schema; } else if (schema.getElementByName(name) != null) { return schema; } } } return null; }
/** * This function is not part of the XmlSchema API. Who knows why? * * @param namespaceURI targetNamespace * @return schema, or null. */ public XmlSchema getSchemaByTargetNamespace(String namespaceURI) { for (XmlSchema schema : schemaCollection.getXmlSchemas()) { if (namespaceURI != null && namespaceURI.equals(schema.getTargetNamespace()) || namespaceURI == null && schema.getTargetNamespace() == null) { return schema; } } return null; }
public XmlSchema getSchemaForElement(QName name) { for (XmlSchema schema : schemaCollection.getXmlSchemas()) { if (name.getNamespaceURI().equals(schema.getTargetNamespace())) { if (schema.getElementByName(name.getLocalPart()) != null) { return schema; } else if (schema.getElementByName(name) != null) { return schema; } } } return null; }
/** * This function is not part of the XmlSchema API. Who knows why? * * @param namespaceURI targetNamespace * @return schema, or null. */ public XmlSchema getSchemaByTargetNamespace(String namespaceURI) { for (XmlSchema schema : schemaCollection.getXmlSchemas()) { if (namespaceURI != null && namespaceURI.equals(schema.getTargetNamespace()) || namespaceURI == null && schema.getTargetNamespace() == null) { return schema; } } return null; }
private void buildXmlTypeInfos() { for (final XmlSchema schema : xmlSchemaCollection.getXmlSchemas()) { // Global Elements for (final Iterator iterator = schema.getElements().getValues(); iterator.hasNext(); ) { final XmlSchemaElement globalElement = (XmlSchemaElement) iterator.next(); addGlobalElement(globalElement); } // Global Types for (final Iterator iterator = schema.getSchemaTypes().getValues(); iterator.hasNext(); ) { final XmlSchemaType globalType = (XmlSchemaType) iterator.next(); addType(globalType.getQName(), globalType); } } }