aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/pagination/Flow.java
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2004-08-01 04:20:50 +0000
committerGlen Mazza <gmazza@apache.org>2004-08-01 04:20:50 +0000
commitaa569d642f3814a7e1242ade45cac003761914e6 (patch)
treee4a744514b1fd1bfd084c1cb0e36381c87dd447a /src/java/org/apache/fop/fo/pagination/Flow.java
parent07e8b67a4aedd53a69895a82f328b472c9a05a6e (diff)
downloadxmlgraphics-fop-aa569d642f3814a7e1242ade45cac003761914e6.tar.gz
xmlgraphics-fop-aa569d642f3814a7e1242ade45cac003761914e6.zip
1.) Moved from FOPException to SAXParseException for addProperties()
2.) FONode: locator object added, its three components (file, line, col) removed 3.) FONode: new attributeError() method created for attribute problems in input FO. 4.) Removed some setup() methods in the FO's, placed them in addProperties() instead. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197847 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/pagination/Flow.java')
-rw-r--r--src/java/org/apache/fop/fo/pagination/Flow.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/java/org/apache/fop/fo/pagination/Flow.java b/src/java/org/apache/fop/fo/pagination/Flow.java
index d333d13f2..cbfbecb66 100644
--- a/src/java/org/apache/fop/fo/pagination/Flow.java
+++ b/src/java/org/apache/fop/fo/pagination/Flow.java
@@ -31,7 +31,6 @@ import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.FOElementMapping;
import org.apache.fop.layoutmgr.AddLMVisitor;
-import org.apache.fop.apps.FOPException;
/**
* Class modelling the fo:flow object. See Sec. 6.4.18 in the XSL-FO Standard.
@@ -100,13 +99,13 @@ public class Flow extends FObj {
/**
* @see org.apache.fop.fo.FObj#addProperties
*/
- protected void addProperties(Attributes attlist) throws FOPException {
+ protected void addProperties(Attributes attlist) throws SAXParseException {
super.addProperties(attlist);
if (parent.getName().equals("fo:page-sequence")) {
this.pageSequence = (PageSequence) parent;
} else {
- throw new FOPException("flow must be child of "
- + "page-sequence, not " + parent.getName());
+ throw new SAXParseException("flow must be child of "
+ + "page-sequence, not " + parent.getName(), locator);
}
// according to communication from Paul Grosso (XSL-List,
// 001228, Number 406), confusion in spec section 6.4.5 about
@@ -134,10 +133,10 @@ public class Flow extends FObj {
* @param name the name of the flow to set
* @throws FOPException for an empty name
*/
- protected void setFlowName(String name) throws FOPException {
+ protected void setFlowName(String name) throws SAXParseException {
if (name == null || name.equals("")) {
- throw new FOPException("A 'flow-name' is required for "
- + getName());
+ throw new SAXParseException("A 'flow-name' is required for "
+ + getName(), locator);
} else {
flowName = name;
}