xml-commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44582] New: need a public API getPublicIDs() in Catalog. java (resolver)
Date Tue, 11 Mar 2008 18:18:34 GMT
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: samaresh.panda@sun.com


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.

Mime
View raw message