aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/flow
diff options
context:
space:
mode:
authorLuca Furini <lfurini@apache.org>2005-05-17 14:30:33 +0000
committerLuca Furini <lfurini@apache.org>2005-05-17 14:30:33 +0000
commit8a6f6d0013730c58b880c29a57bb2b830a7a2d0b (patch)
treed30d0e82be0a8d8f99752b99b0ee1fc2efd6f4d8 /src/java/org/apache/fop/fo/flow
parent35caddb90abdb7d445db236041c221d7fc9bf8a1 (diff)
downloadxmlgraphics-fop-8a6f6d0013730c58b880c29a57bb2b830a7a2d0b.tar.gz
xmlgraphics-fop-8a6f6d0013730c58b880c29a57bb2b830a7a2d0b.zip
Footnote implementation: changes to existing files
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198637 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/flow')
-rw-r--r--src/java/org/apache/fop/fo/flow/Footnote.java24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/java/org/apache/fop/fo/flow/Footnote.java b/src/java/org/apache/fop/fo/flow/Footnote.java
index 2d161c2c8..7c7b1a8f8 100644
--- a/src/java/org/apache/fop/fo/flow/Footnote.java
+++ b/src/java/org/apache/fop/fo/flow/Footnote.java
@@ -38,7 +38,7 @@ public class Footnote extends FObj {
private CommonAccessibility commonAccessibility;
// End of property values
- private Inline inlineFO = null;
+ private Inline footnoteCitation = null;
private FootnoteBody footnoteBody;
/**
@@ -69,7 +69,7 @@ public class Footnote extends FObj {
*/
protected void endOfNode() throws FOPException {
super.endOfNode();
- if (inlineFO == null || footnoteBody == null) {
+ if (footnoteCitation == null || footnoteBody == null) {
missingChildElementError("(inline,footnote-body)");
}
getFOEventHandler().endFootnote(this);
@@ -87,11 +87,11 @@ public class Footnote extends FObj {
protected void validateChildNode(Locator loc, String nsURI, String localName)
throws ValidationException {
if (nsURI == FO_URI && localName.equals("inline")) {
- if (inlineFO != null) {
+ if (footnoteCitation != null) {
tooManyNodesError(loc, "fo:inline");
}
} else if (nsURI == FO_URI && localName.equals("footnote-body")) {
- if (inlineFO == null) {
+ if (footnoteCitation == null) {
nodesOutOfOrderError(loc, "fo:inline", "fo:footnote-body");
} else if (footnoteBody != null) {
tooManyNodesError(loc, "fo:footnote-body");
@@ -106,7 +106,7 @@ public class Footnote extends FObj {
*/
public void addChildNode(FONode child) {
if (((FObj)child).getNameId() == FO_INLINE) {
- inlineFO = (Inline) child;
+ footnoteCitation = (Inline) child;
} else if (((FObj)child).getNameId() == FO_FOOTNOTE_BODY) {
footnoteBody = (FootnoteBody) child;
}
@@ -114,10 +114,18 @@ public class Footnote extends FObj {
/**
* Public accessor for inline FO
- * @return the Inline object stored as inline FO
+ * @return the Inline child
*/
- public Inline getInlineFO() {
- return inlineFO;
+ public Inline getFootnoteCitation() {
+ return footnoteCitation;
+ }
+
+ /**
+ * Public accessor for footnote-body FO
+ * @return the FootnoteBody child
+ */
+ public FootnoteBody getFootnoteBody() {
+ return footnoteBody;
}
/**