gmazza      2004/07/27 16:23:24

  Modified:    src/java/org/apache/fop/fo/flow Character.java
                        ExternalGraphic.java InitialPropertySet.java
                        MultiPropertySet.java PageNumber.java
                        PageNumberCitation.java RetrieveMarker.java
                        TableColumn.java
               src/java/org/apache/fop/fo/pagination Region.java
  Log:
  Provided validateChildFO() methods for the "easy" FO's--i.e., those
  with an empty content model.
  
  Revision  Changes    Path
  1.12      +14 -0     xml-fop/src/java/org/apache/fop/fo/flow/Character.java
  
  Index: Character.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/Character.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Character.java    12 Jun 2004 23:18:52 -0000      1.11
  +++ Character.java    27 Jul 2004 23:23:23 -0000      1.12
  @@ -18,6 +18,11 @@
   
   package org.apache.fop.fo.flow;
   
  +// XML
  +import org.xml.sax.Attributes;
  +import org.xml.sax.Locator;
  +import org.xml.sax.SAXParseException;
  +
   // FOP
   import org.apache.fop.fo.CharIterator;
   import org.apache.fop.fo.FONode;
  @@ -59,6 +64,15 @@
        */
       public Character(FONode parent) {
           super(parent);
  +    }
  +
  +    /**
  +     * @see org.apache.fop.fo.FONode#validateChildNode(Locator, String, String)
  +     * XSL Content Model: empty
  +     */
  +    protected void validateChildNode(Locator loc, String nsURI, String localName) 
  +        throws SAXParseException {
  +            invalidChildError(loc, nsURI, localName);
       }
   
       private void setup() throws FOPException {
  
  
  
  1.28      +15 -1     xml-fop/src/java/org/apache/fop/fo/flow/ExternalGraphic.java
  
  Index: ExternalGraphic.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/ExternalGraphic.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- ExternalGraphic.java      16 Jun 2004 00:27:26 -0000      1.27
  +++ ExternalGraphic.java      27 Jul 2004 23:23:23 -0000      1.28
  @@ -18,9 +18,14 @@
   
   package org.apache.fop.fo.flow;
   
  -// XML
  +// Java
   import java.awt.geom.Rectangle2D;
   
  +// XML
  +import org.xml.sax.Attributes;
  +import org.xml.sax.Locator;
  +import org.xml.sax.SAXParseException;
  +
   import org.apache.fop.apps.FOPException;
   import org.apache.fop.datatypes.Length;
   import org.apache.fop.fo.FONode;
  @@ -56,6 +61,15 @@
        */
       public ExternalGraphic(FONode parent) {
           super(parent);
  +    }
  +
  +    /**
  +     * @see org.apache.fop.fo.FONode#validateChildNode(Locator, String, String)
  +     * XSL Content Model: empty
  +     */
  +    protected void validateChildNode(Locator loc, String nsURI, String localName) 
  +        throws SAXParseException {
  +            invalidChildError(loc, nsURI, localName);
       }
   
       /**
  
  
  
  1.9       +14 -0     xml-fop/src/java/org/apache/fop/fo/flow/InitialPropertySet.java
  
  Index: InitialPropertySet.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/InitialPropertySet.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- InitialPropertySet.java   12 Jun 2004 23:18:52 -0000      1.8
  +++ InitialPropertySet.java   27 Jul 2004 23:23:23 -0000      1.9
  @@ -18,6 +18,11 @@
   
   package org.apache.fop.fo.flow;
   
  +// XML
  +import org.xml.sax.Attributes;
  +import org.xml.sax.Locator;
  +import org.xml.sax.SAXParseException;
  +
   // FOP
   import org.apache.fop.fo.FONode;
   import org.apache.fop.fo.FOTreeVisitor;
  @@ -39,6 +44,15 @@
        */
       public InitialPropertySet(FONode parent) {
           super(parent);
  +    }
  +
  +    /**
  +     * @see org.apache.fop.fo.FONode#validateChildNode(Locator, String, String)
  +     * XSL Content Model: empty
  +     */
  +    protected void validateChildNode(Locator loc, String nsURI, String localName) 
  +        throws SAXParseException {
  +            invalidChildError(loc, nsURI, localName);
       }
   
       private void setup() {
  
  
  
  1.8       +14 -2     xml-fop/src/java/org/apache/fop/fo/flow/MultiPropertySet.java
  
  Index: MultiPropertySet.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/MultiPropertySet.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- MultiPropertySet.java     12 Jun 2004 23:18:52 -0000      1.7
  +++ MultiPropertySet.java     27 Jul 2004 23:23:23 -0000      1.8
  @@ -18,6 +18,11 @@
   
   package org.apache.fop.fo.flow;
   
  +// XML
  +import org.xml.sax.Attributes;
  +import org.xml.sax.Locator;
  +import org.xml.sax.SAXParseException;
  +
   // FOP
   import org.apache.fop.fo.FONode;
   import org.apache.fop.fo.FOTreeVisitor;
  @@ -36,11 +41,18 @@
           super(parent);
       }
   
  -    private void setup() {
  +    /**
  +     * @see org.apache.fop.fo.FONode#validateChildNode(Locator, String, String)
  +     * XSL Content Model: empty
  +     */
  +    protected void validateChildNode(Locator loc, String nsURI, String localName) 
  +        throws SAXParseException {
  +            invalidChildError(loc, nsURI, localName);
  +    }
   
  +    private void setup() {
           setupID();
           // this.propertyList.get("active-state");
  -
       }
   
       public void acceptVisitor(FOTreeVisitor fotv) {
  
  
  
  1.27      +10 -0     xml-fop/src/java/org/apache/fop/fo/flow/PageNumber.java
  
  Index: PageNumber.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/PageNumber.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- PageNumber.java   27 Jul 2004 05:12:40 -0000      1.26
  +++ PageNumber.java   27 Jul 2004 23:23:23 -0000      1.27
  @@ -20,6 +20,7 @@
   
   // XML
   import org.xml.sax.Attributes;
  +import org.xml.sax.Locator;
   import org.xml.sax.SAXParseException;
   
   // FOP
  @@ -54,6 +55,15 @@
        */
       public PageNumber(FONode parent) {
           super(parent);
  +    }
  +
  +    /**
  +     * @see org.apache.fop.fo.FONode#validateChildNode(Locator, String, String)
  +     * XSL Content Model: empty
  +     */
  +    protected void validateChildNode(Locator loc, String nsURI, String localName) 
  +        throws SAXParseException {
  +            invalidChildError(loc, nsURI, localName);
       }
   
       /**
  
  
  
  1.25      +14 -0     xml-fop/src/java/org/apache/fop/fo/flow/PageNumberCitation.java
  
  Index: PageNumberCitation.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/PageNumberCitation.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- PageNumberCitation.java   18 Jun 2004 04:13:53 -0000      1.24
  +++ PageNumberCitation.java   27 Jul 2004 23:23:23 -0000      1.25
  @@ -18,6 +18,11 @@
   
   package org.apache.fop.fo.flow;
   
  +// XML
  +import org.xml.sax.Attributes;
  +import org.xml.sax.Locator;
  +import org.xml.sax.SAXParseException;
  +
   import org.apache.fop.datatypes.ColorType;
   import org.apache.fop.fo.FONode;
   import org.apache.fop.fo.FOTreeVisitor;
  @@ -55,6 +60,15 @@
        */
       public PageNumberCitation(FONode parent) {
           super(parent);
  +    }
  +
  +    /**
  +     * @see org.apache.fop.fo.FONode#validateChildNode(Locator, String, String)
  +     * XSL Content Model: empty
  +     */
  +    protected void validateChildNode(Locator loc, String nsURI, String localName) 
  +        throws SAXParseException {
  +            invalidChildError(loc, nsURI, localName);
       }
   
       /**
  
  
  
  1.10      +14 -1     xml-fop/src/java/org/apache/fop/fo/flow/RetrieveMarker.java
  
  Index: RetrieveMarker.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/RetrieveMarker.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- RetrieveMarker.java       12 Jun 2004 23:18:52 -0000      1.9
  +++ RetrieveMarker.java       27 Jul 2004 23:23:23 -0000      1.10
  @@ -18,12 +18,16 @@
   
   package org.apache.fop.fo.flow;
   
  +// XML
  +import org.xml.sax.Attributes;
  +import org.xml.sax.Locator;
  +import org.xml.sax.SAXParseException;
  +
   // FOP
   import org.apache.fop.apps.FOPException;
   import org.apache.fop.fo.FONode;
   import org.apache.fop.fo.FObjMixed;
   import org.apache.fop.fo.FOTreeVisitor;
  - import org.xml.sax.Attributes;
   
   /**
    * The retrieve-marker formatting object.
  @@ -43,6 +47,15 @@
        */
       public RetrieveMarker(FONode parent) {
           super(parent);
  +    }
  +
  +    /**
  +     * @see org.apache.fop.fo.FONode#validateChildNode(Locator, String, String)
  +     * XSL Content Model: empty
  +     */
  +    protected void validateChildNode(Locator loc, String nsURI, String localName) 
  +        throws SAXParseException {
  +            invalidChildError(loc, nsURI, localName);
       }
   
       /**
  
  
  
  1.22      +10 -0     xml-fop/src/java/org/apache/fop/fo/flow/TableColumn.java
  
  Index: TableColumn.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/TableColumn.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- TableColumn.java  27 Jul 2004 05:12:40 -0000      1.21
  +++ TableColumn.java  27 Jul 2004 23:23:23 -0000      1.22
  @@ -20,6 +20,7 @@
   
   // XML
   import org.xml.sax.Attributes;
  +import org.xml.sax.Locator;
   import org.xml.sax.SAXParseException;
   
   // FOP
  @@ -53,6 +54,15 @@
        */
       public TableColumn(FONode parent) {
           super(parent);
  +    }
  +
  +    /**
  +     * @see org.apache.fop.fo.FONode#validateChildNode(Locator, String, String)
  +     * XSL Content Model: empty
  +     */
  +    protected void validateChildNode(Locator loc, String nsURI, String localName) 
  +        throws SAXParseException {
  +            invalidChildError(loc, nsURI, localName);
       }
   
       /**
  
  
  
  1.22      +1 -1      xml-fop/src/java/org/apache/fop/fo/pagination/Region.java
  
  Index: Region.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/pagination/Region.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- Region.java       27 Jul 2004 05:12:41 -0000      1.21
  +++ Region.java       27 Jul 2004 23:23:24 -0000      1.22
  @@ -68,7 +68,7 @@
   
       /**
        * @see org.apache.fop.fo.FONode#validateChildNode(Locator, String, String)
  -     * XSL/FOP Content Model: empty
  +     * XSL Content Model: empty
        */
       protected void validateChildNode(Locator loc, String nsURI, String localName) 
           throws SAXParseException {
  
  
  

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

Reply via email to