diff options
author | Glen Mazza <gmazza@apache.org> | 2004-08-08 18:39:26 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2004-08-08 18:39:26 +0000 |
commit | 4e8a44140791a7565d4b7ae3983f9a594e300b49 (patch) | |
tree | d81ad1af1598398fd08d4db59df0dd5ae4560b43 /src/java/org/apache/fop/fo/flow/PageNumber.java | |
parent | 0b09e52cd836a838e3140ef8113532d3033433a1 (diff) | |
download | xmlgraphics-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.java | 4 |
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; + } } |