aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/FObj.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/FObj.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/FObj.java')
-rw-r--r--src/java/org/apache/fop/fo/FObj.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/fo/FObj.java b/src/java/org/apache/fop/fo/FObj.java
index 702a78683..a9272333b 100644
--- a/src/java/org/apache/fop/fo/FObj.java
+++ b/src/java/org/apache/fop/fo/FObj.java
@@ -25,13 +25,14 @@ import java.util.ListIterator;
import java.util.Map;
import java.util.Set;
-import org.apache.fop.apps.FOPException;
import org.apache.fop.fo.flow.Marker;
import org.apache.fop.fo.properties.Property;
import org.apache.fop.fo.properties.PropertyMaker;
import org.apache.fop.layoutmgr.AddLMVisitor;
+
import org.xml.sax.Attributes;
import org.xml.sax.Locator;
+import org.xml.sax.SAXParseException;
/**
* Base class for representation of formatting objects and their processing.
@@ -98,7 +99,7 @@ public class FObj extends FONode implements Constants {
* @see org.apache.fop.fo.FONode#processNode
*/
public void processNode(String elementName, Locator locator,
- Attributes attlist) throws FOPException {
+ Attributes attlist) throws SAXParseException {
setLocation(locator);
addProperties(attlist);
}
@@ -107,7 +108,7 @@ public class FObj extends FONode implements Constants {
* Set properties for this FO based on node attributes
* @param attlist Collection of attributes passed to us from the parser.
*/
- protected void addProperties(Attributes attlist) throws FOPException {
+ protected void addProperties(Attributes attlist) throws SAXParseException {
FObj parentFO = findNearestAncestorFObj();
PropertyList parentPL = null;