示例#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();
  }