Пример #1
0
  public XMLSchema getXMLSchemaByTargetNamespace(URI targetNamespace) {
    XMLSchemaInformation info = getByTargetNamespace(targetNamespace);
    if (info == null) {
      return null;
    }

    return info.getSchema();
  }
Пример #2
0
  public Collection<XMLSchema> getDependingXMLSchemas(URI namespace) {
    Collection<XMLSchema> schemas = new ArrayList<XMLSchema>();

    Collection<XMLSchemaInformation> dependingSchemas = getDependingXMLSchemaInformation(namespace);
    for (XMLSchemaInformation info : dependingSchemas) {
      schemas.add(info.getSchema());
    }
    return schemas;
  }
Пример #3
0
  public XMLSchema getMaterializedXMLSchemaByTargetNamespace(URI targetNamespace) {
    XMLSchemaInformation info = getByTargetNamespace(targetNamespace);
    if (info == null) {
      return null;
    }

    materializeXMLSchemaInformation(info);
    return info.getSchema();
  }