]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Now reports all id's which were referenced but do not exist, rather than just the...
authorJordan Naftolin <jordan@apache.org>
Thu, 20 Jul 2000 18:46:57 +0000 (18:46 +0000)
committerJordan Naftolin <jordan@apache.org>
Thu, 20 Jul 2000 18:46:57 +0000 (18:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193537 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/datatypes/IDReferences.java

index eaf45c963e5994fd74a064faa542e2fe6b907806..a6ff21cab3a68071568f844ec2d9bdaec98545bd 100644 (file)
@@ -180,18 +180,22 @@ public class IDReferences {
 
 
     /**
-     * Returns the first invalid id still remaining in the validation list
+     * Returns all invalid id's still remaining in the validation list
      * 
-     * @return first id in validation list
+     * @return invalid ids from validation list
      */
-    public String getNextInvalidId()
+    public String getInvalidIds()
     {
-        Enumeration enum=idValidation.keys();
-        return enum.nextElement().toString();                
+        StringBuffer list=new StringBuffer();
+        Enumeration enum=idValidation.keys();        
+        while(enum.hasMoreElements())
+        {
+            list.append("\n\"").append(enum.nextElement().toString()).append("\" ")  ;
+        }
+        return list.toString();;                
     }
 
 
-
     /**
      * Determines whether specified id already exists in IDReferences
      *