pbwest      2002/09/23 22:30:05

  Modified:    src/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design
                        PropertyConsts.java
  Log:
  Added isCompound().
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.10  +22 -3     xml-fop/src/org/apache/fop/fo/Attic/PropertyConsts.java
  
  Index: PropertyConsts.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/Attic/PropertyConsts.java,v
  retrieving revision 1.1.2.9
  retrieving revision 1.1.2.10
  diff -u -r1.1.2.9 -r1.1.2.10
  --- PropertyConsts.java       21 Sep 2002 04:34:40 -0000      1.1.2.9
  +++ PropertyConsts.java       24 Sep 2002 05:30:05 -0000      1.1.2.10
  @@ -260,6 +260,25 @@
       }
   
       /**
  +     * @param propertyIndex int index of the FO property
  +     * @return <tt>boolean</tt> is property a compound?
  +     */
  +    public static boolean isCompound(int propertyIndex) {
  +        return (datatypes[propertyIndex] & Properties.COMPOUND) != 0;
  +    }
  +
  +    /**
  +     * @param property String name of the FO property
  +     * @return <tt>boolean</tt> is property a compound?
  +     */
  +    public static boolean isCompound(String property)
  +                throws PropertyException
  +    {
  +        return (datatypes[getPropertyIndex(property)] & Properties.COMPOUND)
  +                    != 0;
  +    }
  +
  +    /**
        * Map the String value of an enum to its integer equivalent.
        * @param value the enum text
        * @param values an <tt>ROStringArray</tt> of all of the enum text values.
  
  
  

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

Reply via email to