aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/flow/PageNumber.java
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2004-08-08 18:39:26 +0000
committerGlen Mazza <gmazza@apache.org>2004-08-08 18:39:26 +0000
commit4e8a44140791a7565d4b7ae3983f9a594e300b49 (patch)
treed81ad1af1598398fd08d4db59df0dd5ae4560b43 /src/java/org/apache/fop/fo/flow/PageNumber.java
parent0b09e52cd836a838e3140ef8113532d3033433a1 (diff)
downloadxmlgraphics-fop-4e8a44140791a7565d4b7ae3983f9a594e300b49.tar.gz
xmlgraphics-fop-4e8a44140791a7565d4b7ae3983f9a594e300b49.zip
Implemented getNameId() which returns the Constants enumeration ID
for the FO. For future array work or to reduce the amount of string comparisons being done. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197861 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/flow/PageNumber.java')
-rw-r--r--src/java/org/apache/fop/fo/flow/PageNumber.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fo/flow/PageNumber.java b/src/java/org/apache/fop/fo/flow/PageNumber.java
index 678c77205..dfee543bd 100644
--- a/src/java/org/apache/fop/fo/flow/PageNumber.java
+++ b/src/java/org/apache/fop/fo/flow/PageNumber.java
@@ -107,4 +107,8 @@ public class PageNumber extends FObj {
public String getName() {
return "fo:page-number";
}
+
+ public int getNameId() {
+ return FO_PAGE_NUMBER;
+ }
}