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/09/15 07:23:26 UTC

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

pbwest      2002/09/14 22:23:26

  Modified:    src/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design
                        FOAttributes.java
  Log:
  Changed constructor to include node reference.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.4   +14 -9     xml-fop/src/org/apache/fop/fo/Attic/FOAttributes.java
  
  Index: FOAttributes.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/Attic/FOAttributes.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- FOAttributes.java	19 Aug 2002 15:59:22 -0000	1.1.2.3
  +++ FOAttributes.java	15 Sep 2002 05:23:26 -0000	1.1.2.4
  @@ -64,10 +64,10 @@
   
       private int DefAttrNSIndex = XMLEvent.DefAttrNSIndex;
   
  +    private FONode foNode;
  +
       /**
  -     * Construct an <i>FOAttributes</i> object from the <i>startElement</i>
  -     * <tt>XMLEvent</tt> which triggered the construction of its parent
  -     * element.
  +     * Construct an <i>FOAttributes</i> object.
        * <p>The <tt>Attributes</tt> object on the event is scanned, and each
        * attribute is examined.  If the attribute is in the default namespace
        * for fo: attributes, it is an fo: property, and its value is entered
  @@ -77,15 +77,20 @@
        * value is entered into the appropriate <tt>HashMap</tt> in the
        * <tt>ArrayList</tt> <i>nSpaceAttrMaps</i>, indexed by the attribute's
        * local name.
  -     * <p>
  +     * @param event - the XML event which triggered construction of the parent
  +     * <tt>FONode</tt>.
  +     * @param foNode - the <tt>FONode</tt> with which these attributes are
  +     * associated.
        */
  -    public FOAttributes (XMLEvent event) throws FOPException {
  +    public FOAttributes (XMLEvent event, FONode foNode) throws FOPException {
           // If the event is null, there is no event associated with this
           // node, probably because this is a manufactured node; e.g.,
           // an "invented" FopageSequenceMaster.  The default initialisation
           // includes an empty foAttrMap HashMap.
           if (event == null) return;
  -            
  +
  +        this.foNode = foNode;
  +
           // Create the foAttrMap.
           Attributes attributes = event.attributes;
           if (attributes == null) throw new FOPException
  
  
  

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