pbwest      2002/11/11 18:31:39

  Modified:    src/org/apache/fop/datatypes Tag: FOP_0-20-0_Alt-Design
                        MappedNumeric.java
  Log:
  Added FONode arg to constructor.
  Added FONode arg to PropertyConsts getMappedNumeric call.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.6   +12 -10    xml-fop/src/org/apache/fop/datatypes/Attic/MappedNumeric.java
  
  Index: MappedNumeric.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/datatypes/Attic/MappedNumeric.java,v
  retrieving revision 1.1.2.5
  retrieving revision 1.1.2.6
  diff -u -r1.1.2.5 -r1.1.2.6
  --- MappedNumeric.java        19 Oct 2002 03:27:07 -0000      1.1.2.5
  +++ MappedNumeric.java        12 Nov 2002 02:31:39 -0000      1.1.2.6
  @@ -5,7 +5,7 @@
   import org.apache.fop.datatypes.PropertyValue;
   import org.apache.fop.fo.PropertyConsts;
   import org.apache.fop.fo.properties.*;
  -import org.apache.fop.fo.FOTree;
  +import org.apache.fop.fo.FONode;
   
   /*
    * MappedEnumType.java
  @@ -34,37 +34,39 @@
       private Numeric mappedNum;
   
       /**
  +     * @param foNode the <tt>FONode</tt> being built
        * @param property the <tt>int</tt> index of the property on which
        * this value is being defined.
        * @param enumText the <tt>String</tt> containing the enumeration text.
  -     * @param foTree the <tt>FOTree</tt> being built
        * An <i>NCName</i>.
        * @exception PropertyException
        */
  -    public MappedNumeric(int property, String enumText, FOTree foTree)
  +    public MappedNumeric(FONode foNode, int property, String enumText)
           throws PropertyException
       {
           // Set property index in AbstractPropertyValue
           // and enumValue enum constant in EnumType
           super(property, enumText, PropertyValue.MAPPED_NUMERIC);
  -        mappedNum = propertyConsts.getMappedNumeric(property, enumValue);
  +        mappedNum =
  +                propertyConsts.getMappedNumeric(foNode, property, enumValue);
       }
   
       /**
  +     * @param foNode the <tt>FONode</tt> being built
        * @param propertyName the <tt>String</tt> name of the property on which
        * this value is being defined.
        * @param enumText the <tt>String</tt> containing the enumeration text.
  -     * @param foTree the <tt>FOTree</tt> being built
        * An <i>NCName</i>.
        * @exception PropertyException
        */
  -    public MappedNumeric(String propertyName, String enumText, FOTree foTree)
  +    public MappedNumeric(FONode foNode, String propertyName, String enumText)
           throws PropertyException
       {
           // Set property index in AbstractPropertyValue
           // and enumValue enum constant in EnumType
           super(propertyName, enumText, PropertyValue.MAPPED_NUMERIC);
  -        mappedNum = propertyConsts.getMappedNumeric(property, enumValue);
  +        mappedNum =
  +                propertyConsts.getMappedNumeric(foNode, property, enumValue);
       }
   
       /**
  
  
  

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

Reply via email to