aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/XMLObj.java
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2004-05-22 03:59:53 +0000
committerGlen Mazza <gmazza@apache.org>2004-05-22 03:59:53 +0000
commit579ea70d54fbd5a82bc0afe59686c57dae37bc6c (patch)
tree0262b9f859a1f9be3882a4e75b4e9ef34c1badf5 /src/java/org/apache/fop/fo/XMLObj.java
parentd21b5c915da980fc3273ddc7ea821c1c1c73ea62 (diff)
downloadxmlgraphics-fop-579ea70d54fbd5a82bc0afe59686c57dae37bc6c.tar.gz
xmlgraphics-fop-579ea70d54fbd5a82bc0afe59686c57dae37bc6c.zip
Switched from handleAttrs() to more intuitive processNode() and (for FO namespace) addProperties() methods.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197613 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/XMLObj.java')
-rw-r--r--src/java/org/apache/fop/fo/XMLObj.java16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/java/org/apache/fop/fo/XMLObj.java b/src/java/org/apache/fop/fo/XMLObj.java
index 574b8c9fa..91baef3fe 100644
--- a/src/java/org/apache/fop/fo/XMLObj.java
+++ b/src/java/org/apache/fop/fo/XMLObj.java
@@ -39,8 +39,10 @@ public abstract class XMLObj extends FONode {
// temp reference for attributes
private Attributes attr = null;
+
/** DOM element representing this node */
protected Element element;
+
/** DOM document containing this node */
protected Document doc;
@@ -53,18 +55,10 @@ public abstract class XMLObj extends FONode {
}
/**
- * @param str name of the element
- */
- public void setName(String str) {
- name = str;
- }
-
- /**
- * Store the attributes for this element
- * @param attlist Collection of attributes passed to us from the parser.
- * @throws FOPException for errors in the attributes
+ * @see org.apache.fop.fo.FONode#processNode
*/
- public void handleAttrs(Attributes attlist) throws FOPException {
+ public void processNode(String elementName, Locator locator, Attributes attlist) throws FOPException {
+ name = elementName;
attr = attlist;
}