]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Added getFlowName()
authorPeter Bernard West <pbwest@apache.org>
Fri, 16 Apr 2004 05:12:34 +0000 (05:12 +0000)
committerPeter Bernard West <pbwest@apache.org>
Fri, 16 Apr 2004 05:12:34 +0000 (05:12 +0000)
Fixed erroneous exception messages

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197511 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/flow/FoStaticContent.java

index ef6ddae3c012c87c285350c7452274012b75c04e..f51fa5d65437a620b77c42300e8d1af9957f2f2c 100644 (file)
@@ -91,8 +91,7 @@ public class FoStaticContent extends FOPageSeqNode {
 
     /**
      * Construct an fo:static-content node, and buffer the contents for later
-* parsing
-     * subtree.
+     * parsing.
      * <p>Content model for fo:static-content: (%block;)+
      * @param foTree the FO tree being built
      * @param parent the parent FONode of this node
@@ -109,9 +108,11 @@ public class FoStaticContent extends FOPageSeqNode {
             ncName = (NCName)(getPropertyValue(PropNames.FLOW_NAME));
         } catch (PropertyException e) {
             throw new FOPException(
-                    "Cannot find marker-class-name in fo:marker", e);
+                    "Cannot find flow-name in fo:static-content", e);
         } catch (ClassCastException e) {
-            throw new FOPException("Wrong PropertyValue type in fo:marker", e);
+            throw new FOPException
+            ("Wrong PropertyValue type for flow-name in fo:static-content",
+                    e);
         }
         flowName = ncName.getNCName();
         
@@ -132,11 +133,23 @@ public class FoStaticContent extends FOPageSeqNode {
     }
     
     /**
+     * Gets the buffer of <code>XmlEvent</code>s from this
+     * <b>fo:static-content</b> subtree
+     * 
      * @return the static-content subtree buffer
      */
     public XmlEventsArrayBuffer getEventBuffer() {
         return buffer;
     }
 
+    /**
+     * Gets the <b>flow-name</b> with which this <b>fo:static-content</b>
+     * is associated
+     * 
+     * @return the flow-name
+     */
+    public String getFlowName() {
+        return flowName;
+    }
     
 }