Bug 44582 - need a public API getPublicIDs() in Catalog.java (resolver)
Summary: need a public API getPublicIDs() in Catalog.java (resolver)
Status: NEW
Alias: None
Product: XmlCommons - Now in JIRA
Classification: Unclassified
Component: Resolver (show other bugs)
Version: 1.x
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Commons Developers Mailing List
Depends on:
Reported: 2008-03-11 11:18 UTC by Samaresh Panda
Modified: 2008-03-11 11:18 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
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) {
      return v.iterator();