]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fixed stateFlags. Added getCharacters().
authorPeter Bernard West <pbwest@apache.org>
Thu, 21 Nov 2002 07:53:02 +0000 (07:53 +0000)
committerPeter Bernard West <pbwest@apache.org>
Thu, 21 Nov 2002 07:53:02 +0000 (07:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@195584 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/fo/flow/FoPcdata.java

index bd91c5de97b611e0ca236cc26caa27540dac30e7..e1376fecdaec37658dc5ce07030924c24e03f243 100644 (file)
@@ -104,23 +104,32 @@ public class FoPcdata extends FONode {
     private String characters;
 
     /**
+     * Construct an FoPcdata object to contain the characers from a
+     * character data node.  There is no corresponding Flow Obect in the
+     * specification.
      * @param foTree the FO tree being built
      * @param parent the parent FONode of this node
      * @param event the <tt>FoXMLEvent</tt> that triggered the creation of
      * this node
-     * @param attrSet the index of the attribute set applying to the node.
+     * @param stateFlags - passed down from the parent.  Includes the
+     * attribute set information.
      */
     public FoPcdata
-                (FOTree foTree, FONode parent, FoXMLEvent event, int attrSet)
+            (FOTree foTree, FONode parent, FoXMLEvent event, int stateFlags)
         throws TreeException, FOPException
     {
         super(foTree, FObjectNames.PCDATA, parent, event,
-                          attrSet, sparsePropsMap, sparseIndices);
+                          stateFlags, sparsePropsMap, sparseIndices);
         characters = event.getChars();
-        FoXMLEvent ev;
-        String nowProcessing;
-
         makeSparsePropsSet();
     }
 
+    /**
+     * Get the <tt>String</tt> data of the node.
+     * @return the string of characters.
+     */
+    public String getCharacters() {
+        return characters;
+    }
+
 }