Bug 44582

Summary: need a public API getPublicIDs() in Catalog.java (resolver)
Product: XmlCommons - Now in JIRA Reporter: Samaresh Panda <samaresh.panda>
Component: ResolverAssignee: Commons Developers Mailing List <commons-dev>
Status: NEW ---    
Severity: enhancement    
Priority: P2    
Version: 1.x   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Samaresh Panda 2008-03-11 11:18:33 UTC
Please add a new API getPublicIDs() to org.apache.xml.resolver.Catalog.java.

An implementation may look like this:

  /**
   * Return all registered public IDs.
   */
  public Iterator getPublicIDs() {
      Vector v = new Vector();
      Enumeration enumeration = catalogEntries.elements();

      while (enumeration.hasMoreElements()) {
        CatalogEntry e = (CatalogEntry) enumeration.nextElement();
        if (e.getEntryType() == PUBLIC) {
            v.add(e.getEntryArg(0));
        }
      }
      return v.iterator();
  }