pbwest      2004/01/21 02:59:35

  Modified:    src/java/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design
                        FONode.java
  Log:
  getMarkers -
   Javadoc comment added
   relinquish(event) problem fixed
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.2.2.9   +7 -3      xml-fop/src/java/org/apache/fop/fo/FONode.java
  
  Index: FONode.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/FONode.java,v
  retrieving revision 1.2.2.8
  retrieving revision 1.2.2.9
  diff -u -r1.2.2.8 -r1.2.2.9
  --- FONode.java       20 Jan 2004 05:45:55 -0000      1.2.2.8
  +++ FONode.java       21 Jan 2004 10:59:35 -0000      1.2.2.9
  @@ -606,17 +606,21 @@
           }
       }
   
  +    /**
  +     * Gets the fo:marker elements (if any) defined in the this node.  Any
  +     * fo:marker events found are relinquished.
  +     * @return the number of markers found
  +     * @throws FOPException
  +     */
       public int getMarkers() throws FOPException {
           XmlEvent ev;
  -        
           try {
               while ((ev = xmlevents.expectStartElement
                       (FObjectNames.MARKER, XmlEvent.DISCARD_W_SPACE))
               != null) {
                   new FoMarker(getFOTree(), this, (FoXmlEvent)ev, stateFlags);
                   numMarkers++;
  -                ev = xmlevents.getEndElement(
  -                        XmlEventReader.DISCARD_EV, ev);
  +                // Relinquish the original event
                   namespaces.relinquishEvent(ev);
               }
           } catch (TreeException e) {
  
  
  

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

Reply via email to