예제 #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();
  }