From: Jordan Naftolin Date: Thu, 20 Jul 2000 18:46:57 +0000 (+0000) Subject: Now reports all id's which were referenced but do not exist, rather than just the... X-Git-Tag: pre-columns~340 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=747d8039c24e54f97d1371454577aaa9e697f1c6;p=xmlgraphics-fop.git Now reports all id's which were referenced but do not exist, rather than just the first invalid id. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193537 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/datatypes/IDReferences.java b/src/org/apache/fop/datatypes/IDReferences.java index eaf45c963..a6ff21cab 100644 --- a/src/org/apache/fop/datatypes/IDReferences.java +++ b/src/org/apache/fop/datatypes/IDReferences.java @@ -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 *