https://issues.apache.org/bugzilla/show_bug.cgi?id=44582

           Summary: need a public API getPublicIDs() in Catalog.java
                    (resolver)
           Product: XmlCommons
           Version: 1.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Resolver
        AssignedTo: commons-dev@xml.apache.org
        ReportedBy: [EMAIL PROTECTED]


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


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to