From 747d8039c24e54f97d1371454577aaa9e697f1c6 Mon Sep 17 00:00:00 2001 From: Jordan Naftolin Date: Thu, 20 Jul 2000 18:46:57 +0000 Subject: [PATCH] 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 --- src/org/apache/fop/datatypes/IDReferences.java | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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 * -- 2.39.5