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 2004/10/04 00:41:56 UTC

cvs commit: xml-fop/src/java/org/apache/fop/datatypes EnumType.java

pbwest      2004/10/03 15:41:56

  Modified:    src/java/org/apache/fop/fonts/apps Tag:
                        FOP_0-20-0_Alt-Design PFMReader.java TTFReader.java
               src/java/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design
                        PropertyConsts.java
               src/java/org/apache/fop/datatypes Tag: FOP_0-20-0_Alt-Design
                        EnumType.java
  Log:
  Removed variables 'enum' for 1.5 compatibility
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.2.2.2   +3 -3      xml-fop/src/java/org/apache/fop/fonts/apps/PFMReader.java
  
  Index: PFMReader.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fonts/apps/PFMReader.java,v
  retrieving revision 1.2.2.1
  retrieving revision 1.2.2.2
  diff -u -r1.2.2.1 -r1.2.2.2
  --- PFMReader.java	10 Mar 2004 06:24:29 -0000	1.2.2.1
  +++ PFMReader.java	3 Oct 2004 22:41:56 -0000	1.2.2.2
  @@ -345,9 +345,9 @@
   
   
           // Get kerning
  -        Iterator enum = pfm.getKerning().keySet().iterator();
  -        while (enum.hasNext()) {
  -            Integer kpx1 = (Integer)enum.next();
  +        Iterator iter = pfm.getKerning().keySet().iterator();
  +        while (iter.hasNext()) {
  +            Integer kpx1 = (Integer)iter.next();
               el = doc.createElement("kerning");
               el.setAttribute("kpx1", kpx1.toString());
               root.appendChild(el);
  
  
  
  1.3.2.2   +5 -5      xml-fop/src/java/org/apache/fop/fonts/apps/TTFReader.java
  
  Index: TTFReader.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fonts/apps/TTFReader.java,v
  retrieving revision 1.3.2.1
  retrieving revision 1.3.2.2
  diff -u -r1.3.2.1 -r1.3.2.2
  --- TTFReader.java	10 Mar 2004 06:24:29 -0000	1.3.2.1
  +++ TTFReader.java	3 Oct 2004 22:41:56 -0000	1.3.2.2
  @@ -443,15 +443,15 @@
           Document doc = parent.getOwnerDocument();
           
           // Get kerning
  -        Iterator enum;
  +        Iterator iter;
           if (isCid) {
  -            enum = ttf.getKerning().keySet().iterator();
  +            iter = ttf.getKerning().keySet().iterator();
           } else {
  -            enum = ttf.getAnsiKerning().keySet().iterator();
  +            iter = ttf.getAnsiKerning().keySet().iterator();
           }
   
  -        while (enum.hasNext()) {
  -            Integer kpx1 = (Integer)enum.next();
  +        while (iter.hasNext()) {
  +            Integer kpx1 = (Integer)iter.next();
   
               el = doc.createElement("kerning");
               el.setAttribute("kpx1", kpx1.toString());
  
  
  
  No                   revision
  No                   revision
  1.1.2.7   +10 -10    xml-fop/src/java/org/apache/fop/fo/Attic/PropertyConsts.java
  
  Index: PropertyConsts.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/Attic/PropertyConsts.java,v
  retrieving revision 1.1.2.6
  retrieving revision 1.1.2.7
  diff -u -r1.1.2.6 -r1.1.2.7
  --- PropertyConsts.java	30 May 2004 06:29:02 -0000	1.1.2.6
  +++ PropertyConsts.java	3 Oct 2004 22:41:56 -0000	1.1.2.7
  @@ -205,16 +205,16 @@
        * Get the <tt>Numeric</tt> value corresponding to an enumerated value.
        * @param foNode the <tt>FONode</tt> being built
        * @param propindex int index of the FO property
  -     * @param enum - the integer equivalent of the enumeration keyword.
  +     * @param enumval - the integer equivalent of the enumeration keyword.
        * @return the <tt>Numeric</tt> result.
        * @throws PropertyException
        */
  -    public Numeric getMappedNumeric(FONode foNode, int propindex, int enum)
  +    public Numeric getMappedNumeric(FONode foNode, int propindex, int enumval)
               throws PropertyException
       {
           Property property = setupProperty(propindex);
           if ((datatypes[propindex] & Property.MAPPED_LENGTH) != 0)
  -            return property.getMappedLength(foNode, enum);
  +            return property.getMappedLength(foNode, enumval);
           else
               throw new PropertyException
                   ("MAPPED_LENGTH not valid in "
  @@ -250,7 +250,7 @@
       }
   
       /**
  -     * Map the integer value of an enum into its mapped value.
  +     * Map the integer value of an enumval into its mapped value.
        * Only valid when the datatype of the property includes MAPPED_ENUM.
        * <p>Generally, the path will be enumText->enumIndex->mappedEnumText.
        * @param index <tt>int</tt> containing the enumeration index.
  @@ -265,15 +265,15 @@
   
       /**
        * @param propindex <tt>int</tt> property index.
  -     * @param enum <tt>String</tt> containing the enumeration text.
  +     * @param enumval <tt>String</tt> containing the enumeration text.
        * @return <tt>int</tt> constant representing the enumeration value.
        * @exception PropertyException
        */
  -    public int getEnumIndex(int propindex, String enum)
  +    public int getEnumIndex(int propindex, String enumval)
                       throws PropertyException
       {
           Property property = setupProperty(propindex);
  -        return property.getEnumIndex(enum);
  +        return property.getEnumIndex(enumval);
       }
   
       /**
  
  
  
  No                   revision
  No                   revision
  1.1.2.4   +18 -18    xml-fop/src/java/org/apache/fop/datatypes/Attic/EnumType.java
  
  Index: EnumType.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/datatypes/Attic/EnumType.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- EnumType.java	20 Apr 2004 17:15:56 -0000	1.1.2.3
  +++ EnumType.java	3 Oct 2004 22:41:56 -0000	1.1.2.4
  @@ -60,13 +60,13 @@
       /**
        * @param property the <tt>int</tt> index of the property on which
        * this value is being defined.
  -     * @param enum the <tt>int</tt> enumeration constant.
  +     * @param enumval the <tt>int</tt> enumeration constant.
        * @exception PropertyException
        */
  -    public EnumType(int property, int enum)
  +    public EnumType(int property, int enumval)
           throws PropertyException
       {
  -        this(property, enum, PropertyValue.ENUM);
  +        this(property, enumval, PropertyValue.ENUM);
       }
   
       /**
  @@ -86,14 +86,14 @@
       /**
        * @param propertyName the <tt>String</tt> name of the property on which
        * this value is being defined.
  -     * @param enum the <tt>int</tt> enumeration constant.
  +     * @param enumval the <tt>int</tt> enumeration constant.
        * @exception PropertyException
        */
  -    public EnumType(String propertyName, int enum)
  +    public EnumType(String propertyName, int enumval)
           throws PropertyException
       {
           this(PropNames.getPropertyIndex(propertyName),
  -                                                    enum, PropertyValue.ENUM);
  +                                                    enumval, PropertyValue.ENUM);
       }
   
       /**
  @@ -108,25 +108,25 @@
           throws PropertyException
       {
           super(property, type);
  -        // Get the enum integer or mapped enum integer
  +        // Get the enumval integer or mapped enumval integer
           enumValue = propertyConsts.getEnumIndex(property, enumText);
       }
   
       /**
        * @param property the <tt>int</tt> index of the property on which
        * this value is being defined.
  -     * @param enum the <tt>int</tt> enumeration constant.
  +     * @param enumval the <tt>int</tt> enumeration constant.
        * @param type of this value
        * @exception PropertyException
        */
  -    public EnumType(int property, int enum, int type)
  +    public EnumType(int property, int enumval, int type)
           throws PropertyException
       {
           super(property, type);
  -        enumValue = enum;
  +        enumValue = enumval;
           // Validate the text; getEnumText will throw a PropertyException
  -        // if the enum integer is invalid
  -        String enumText = propertyConsts.getEnumText(property, enum);
  +        // if the enumval integer is invalid
  +        String enumText = propertyConsts.getEnumText(property, enumval);
       }
   
       /**
  @@ -146,14 +146,14 @@
       /**
        * @param propertyName the <tt>String</tt> name of the property on which
        * this value is being defined.
  -     * @param enum the <tt>int</tt> enumeration constant.
  +     * @param enumval the <tt>int</tt> enumeration constant.
        * @param type of this value
        * @exception PropertyException
        */
  -    public EnumType(String propertyName, int enum, int type)
  +    public EnumType(String propertyName, int enumval, int type)
           throws PropertyException
       {
  -        this(PropNames.getPropertyIndex(propertyName), enum, type);
  +        this(PropNames.getPropertyIndex(propertyName), enumval, type);
       }
   
       /**
  
  
  

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