pbwest      2002/11/20 23:53:02

  Modified:    src/org/apache/fop/fo/flow Tag: FOP_0-20-0_Alt-Design
                        FoPcdata.java
  Log:
  Fixed stateFlags.  Added getCharacters().
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.4   +16 -7     xml-fop/src/org/apache/fop/fo/flow/Attic/FoPcdata.java
  
  Index: FoPcdata.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/Attic/FoPcdata.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- FoPcdata.java     17 Nov 2002 09:50:08 -0000      1.1.2.3
  +++ FoPcdata.java     21 Nov 2002 07:53:02 -0000      1.1.2.4
  @@ -104,23 +104,32 @@
       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;
       }
   
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to