pbwest      2002/10/04 09:08:26

  Modified:    src/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design
                        PropertyConsts.java
  Log:
  Added inheritedProps ROBitSet.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.14  +28 -4     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.13
  retrieving revision 1.1.2.14
  diff -u -r1.1.2.13 -r1.1.2.14
  --- PropertyConsts.java       3 Oct 2002 03:14:29 -0000       1.1.2.13
  +++ PropertyConsts.java       4 Oct 2002 16:08:26 -0000       1.1.2.14
  @@ -471,6 +471,26 @@
        */
       private static final BitSet noninheritedprops;
   
  +    /**
  +     * An <tt>ROBitSet</tt> of properties which are normally inherited
  +     * (strictly, not not inherited).
  +     * It is defined relative to the set of all properties; i.e. the
  +     * inheritability of any property can be established by testing the
  +     * bit in this set that corresponds to the queried property's index.
  +     */
  +    public static final ROBitSet inheritedProps;
  +
  +    /**
  +     * A <tt>BitSet</tt> of properties which are normally inherited
  +     * (strictly, not not inherited).
  +     * It is defined relative to the set of all properties; i.e. the
  +     * inheritability of any property can be established by testing the
  +     * bit in this set that corresponds to the queried property's index.
  +     * <p>The <tt>BitSet</tt> is private and is the basis for
  +     * <i>inheritedProperties</i>.
  +     */
  +    private static final BitSet inheritedprops;
  +
       /** <p>
        * An int[] array of the types of the <i>initialValue</i> field of each
        * property.  The array is indexed by the index value constants that are
  @@ -657,11 +677,15 @@
           }
   
           // Initialise the RO arrays
  +        inheritedprops       = (BitSet)noninheritedprops.clone();
  +        inheritedprops.flip(1, inheritedprops.length() - 1);
  +
           propertyClassNames   = new ROStringArray(classNames);
           propertyClasses      = Collections.unmodifiableList
  -                                        (Arrays.asList(classes));
  +                                                    (Arrays.asList(classes));
           inherited            = new ROIntArray(inherit);
           nonInheritedProps    = new ROBitSet(noninheritedprops);
  +        inheritedProps       = new ROBitSet(inheritedprops);
           dataTypes            = new ROIntArray(datatypes);
           refineParsingMethods = Collections.unmodifiableList
                                       (Arrays.asList(refineparsingmethods));
  
  
  

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

Reply via email to