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 pb...@apache.org on 2002/10/12 01:46:51 UTC

cvs commit: xml-fop/src/org/apache/fop/fo/pagination PageMasterAlternatives.java

pbwest      2002/10/11 16:46:51

  Modified:    src/org/apache/fop/fo/pagination Tag: FOP_0-20-0_Alt-Design
                        PageMasterAlternatives.java
  Log:
  Replaced iterator with getLength/get(i).
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +16 -7     xml-fop/src/org/apache/fop/fo/pagination/Attic/PageMasterAlternatives.java
  
  Index: PageMasterAlternatives.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/Attic/PageMasterAlternatives.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- PageMasterAlternatives.java	6 Oct 2002 13:56:15 -0000	1.1.2.1
  +++ PageMasterAlternatives.java	11 Oct 2002 23:46:51 -0000	1.1.2.2
  @@ -10,7 +10,6 @@
   package org.apache.fop.fo.pagination;
   
   import java.util.ArrayList;
  -import java.util.Iterator;
   
   // FOP
   import org.apache.fop.fo.pagination.PageCondition;
  @@ -55,10 +54,20 @@
       }
   
       /**
  -     * Get an <tt>Iterator</tt> over the set of alternative conditions.
  -     * @return the <tt>Iterator</tt>.
  +     * Get the length of the <i>alternatives</i> <tt>ArrayList</tt>.
  +     * @return - the length.
        */
  -    public Iterator conditions() {
  -	return alternatives.iterator();
  +    public int getAlternativesLength() {
  +        return alternatives.size();
       }
  +
  +    /**
  +     * Get the indexed <tt>PageMasterAlternatives</tt> master.
  +     * @param i - the index of the master to retrieve.
  +     * @return - the indexed <tt>PageMasterAlternatives</tt> master.
  +     */
  +    public PageCondition getAlternative(int i) {
  +        return (PageCondition)(alternatives.get(i));
  +    }
  +
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org