You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by jo...@locus.apache.org on 2000/07/13 19:36:51 UTC
cvs commit: xml-fop/src/org/apache/fop/fo FObj.java
jordan 00/07/13 10:36:51
Modified: src/org/apache/fop/fo FObj.java
Log:
added recursive removeID method. This method assumes that FObj's are only children of other FObj's
Revision Changes Path
1.9 +19 -1 xml-fop/src/org/apache/fop/fo/FObj.java
Index: FObj.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/FObj.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- FObj.java 2000/06/28 17:54:33 1.8
+++ FObj.java 2000/07/13 17:36:50 1.9
@@ -1,4 +1,4 @@
-/*-- $Id: FObj.java,v 1.8 2000/06/28 17:54:33 jordan Exp $ --
+/*-- $Id: FObj.java,v 1.9 2000/07/13 17:36:50 jordan Exp $ --
============================================================================
The Apache Software License, Version 1.1
@@ -54,6 +54,7 @@
// FOP
import org.apache.fop.layout.Area;
import org.apache.fop.apps.FOPException;
+import org.apache.fop.datatypes.IDReferences;
// Java
import java.util.Hashtable;
@@ -117,6 +118,23 @@
{
return(properties.get(name));
}
+
+
+
+ public void removeID(IDReferences idReferences)
+ {
+ idReferences.removeID( ((FObj)this).properties.get("id").getString());
+ int numChildren = this.children.size();
+ for (int i = 0; i < numChildren; i++)
+ {
+ FONode child= (FONode)children.elementAt(i);
+ if ((child instanceof FObj))
+ {
+ child.removeID(idReferences);
+ }
+ }
+ }
+
}