]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Implemented getNameId() which returns the Constants enumeration ID
authorGlen Mazza <gmazza@apache.org>
Sun, 8 Aug 2004 18:39:26 +0000 (18:39 +0000)
committerGlen Mazza <gmazza@apache.org>
Sun, 8 Aug 2004 18:39:26 +0000 (18:39 +0000)
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

59 files changed:
src/java/org/apache/fop/fo/Constants.java
src/java/org/apache/fop/fo/FObj.java
src/java/org/apache/fop/fo/PropertySets.java
src/java/org/apache/fop/fo/flow/BasicLink.java
src/java/org/apache/fop/fo/flow/BidiOverride.java
src/java/org/apache/fop/fo/flow/Block.java
src/java/org/apache/fop/fo/flow/BlockContainer.java
src/java/org/apache/fop/fo/flow/Character.java
src/java/org/apache/fop/fo/flow/ExternalGraphic.java
src/java/org/apache/fop/fo/flow/Float.java
src/java/org/apache/fop/fo/flow/Footnote.java
src/java/org/apache/fop/fo/flow/FootnoteBody.java
src/java/org/apache/fop/fo/flow/InitialPropertySet.java
src/java/org/apache/fop/fo/flow/Inline.java
src/java/org/apache/fop/fo/flow/InlineContainer.java
src/java/org/apache/fop/fo/flow/InstreamForeignObject.java
src/java/org/apache/fop/fo/flow/Leader.java
src/java/org/apache/fop/fo/flow/ListBlock.java
src/java/org/apache/fop/fo/flow/ListItem.java
src/java/org/apache/fop/fo/flow/ListItemBody.java
src/java/org/apache/fop/fo/flow/ListItemLabel.java
src/java/org/apache/fop/fo/flow/Marker.java
src/java/org/apache/fop/fo/flow/MultiCase.java
src/java/org/apache/fop/fo/flow/MultiProperties.java
src/java/org/apache/fop/fo/flow/MultiPropertySet.java
src/java/org/apache/fop/fo/flow/MultiSwitch.java
src/java/org/apache/fop/fo/flow/MultiToggle.java
src/java/org/apache/fop/fo/flow/PageNumber.java
src/java/org/apache/fop/fo/flow/PageNumberCitation.java
src/java/org/apache/fop/fo/flow/RetrieveMarker.java
src/java/org/apache/fop/fo/flow/Table.java
src/java/org/apache/fop/fo/flow/TableAndCaption.java
src/java/org/apache/fop/fo/flow/TableBody.java
src/java/org/apache/fop/fo/flow/TableCaption.java
src/java/org/apache/fop/fo/flow/TableCell.java
src/java/org/apache/fop/fo/flow/TableColumn.java
src/java/org/apache/fop/fo/flow/TableFooter.java
src/java/org/apache/fop/fo/flow/TableHeader.java
src/java/org/apache/fop/fo/flow/TableRow.java
src/java/org/apache/fop/fo/flow/Wrapper.java
src/java/org/apache/fop/fo/pagination/ColorProfile.java
src/java/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java
src/java/org/apache/fop/fo/pagination/Declarations.java
src/java/org/apache/fop/fo/pagination/Flow.java
src/java/org/apache/fop/fo/pagination/LayoutMasterSet.java
src/java/org/apache/fop/fo/pagination/PageSequence.java
src/java/org/apache/fop/fo/pagination/PageSequenceMaster.java
src/java/org/apache/fop/fo/pagination/RegionAfter.java
src/java/org/apache/fop/fo/pagination/RegionBefore.java
src/java/org/apache/fop/fo/pagination/RegionBody.java
src/java/org/apache/fop/fo/pagination/RegionEnd.java
src/java/org/apache/fop/fo/pagination/RegionStart.java
src/java/org/apache/fop/fo/pagination/RepeatablePageMasterAlternatives.java
src/java/org/apache/fop/fo/pagination/RepeatablePageMasterReference.java
src/java/org/apache/fop/fo/pagination/Root.java
src/java/org/apache/fop/fo/pagination/SimplePageMaster.java
src/java/org/apache/fop/fo/pagination/SinglePageMasterReference.java
src/java/org/apache/fop/fo/pagination/StaticContent.java
src/java/org/apache/fop/fo/pagination/Title.java

index 496776b1fadeca2915ddf54db3c0a83c47fafc0e..3c8638c1606713d14064c4f955e867ff1396de86 100644 (file)
@@ -56,6 +56,7 @@ public interface Constants {
     int RENDER_RTF = 10;
     
     // element constants
+    int FO_UNKNOWN = 0;  // FObj base class
     int FO_BASIC_LINK = 1;
     int FO_BIDI_OVERRIDE = 2;
     int FO_BLOCK = 3;
@@ -63,7 +64,7 @@ public interface Constants {
     int FO_CHARACTER = 5;
     int FO_COLOR_PROFILE = 6;
     int FO_CONDITIONAL_PAGE_MASTER_REFERENCE = 7;
-    int FO_DECLARATION = 8;
+    int FO_DECLARATIONS = 8;
     int FO_EXTERNAL_GRAPHIC = 9;
     int FO_FLOAT = 10;
     int FO_FLOW = 11;
index 6d176819edcc21687f695cc2546a465b595fb1ea..bfb97398c2ea3c5ee8ea94692faafc2667dab4d4 100644 (file)
@@ -548,5 +548,13 @@ public class FObj extends FONode implements Constants {
         }
         return -1;
     }
+
+    /**
+     * Returns the Constants class integer value of this formatting object
+     * @return the integer enumeration of this FO
+     */
+    public int getNameId() {
+        return FO_UNKNOWN;
+    }
 }
 
index 8f4c12ef43d455cf556461e3154c4d94f9ed57bf..2494d25b584b9c16fee71788c17216ad45e902f7 100644 (file)
@@ -187,10 +187,10 @@ public class PropertySets {
         elem = elements[Constants.FO_ROOT];
         elem.addProperty(Constants.PR_MEDIA_USAGE);
         elem.addContent(Constants.FO_LAYOUT_MASTER_SET);
-        elem.addContent(Constants.FO_DECLARATION);
+        elem.addContent(Constants.FO_DECLARATIONS);
         elem.addContent(Constants.FO_PAGE_SEQUENCE);
 
-        elem = elements[Constants.FO_DECLARATION];
+        elem = elements[Constants.FO_DECLARATIONS];
         elem.addContent(Constants.FO_COLOR_PROFILE);
 
         elem = elements[Constants.FO_COLOR_PROFILE];
index e26eb348439aa25369ffb2b733d3ad0777a049f7..63784aebcda8b5be58bc64c12a25bc0b4f6ea894 100644 (file)
@@ -135,6 +135,13 @@ public class BasicLink extends Inline {
         return "fo:basic-link";
     }
     
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_BASIC_LINK;
+    }
+
     /**
      * @return true (BasicLink can contain Markers)
      * @todo see if can remove in favor of a BitSet for all FO's
index ebd29f34fdb5f5d564b0a8bbcb331f96741bd758..de1cd83dc4d2d36920fe104b8dc038cc7a0f9fc1 100644 (file)
@@ -140,6 +140,13 @@ public class BidiOverride extends FObjMixed {
         return "fo:bidi-override";
     }
 
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_BIDI_OVERRIDE;
+    }
+
     /**
      * @return true (BidiOverride can contain Markers)
      */
index bdcf7c61dab51ba85e598dddd65900b267ecdf9b..b45b9778229e66ae6dbdc198d00fe32e6990b945 100644 (file)
@@ -344,6 +344,13 @@ public class Block extends FObjMixed {
         return "fo:block";
     }
 
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_BLOCK;
+    }
+
     /**
      * @return true (Block can contain Markers)
      */
index c05033d8431004cb3dd61a2079450269849479ea..7c6aeccfe08e06564655bdbf451af2c09edfe9d6 100644 (file)
@@ -145,5 +145,12 @@ public class BlockContainer extends FObj {
     public String getName() {
         return "fo:block-container";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_BLOCK_CONTAINER;
+    }
 }
 
index 381b883cff5350797b5c65bc751e3e2aba05a223..f3c76f504c0a6218a1bddeca02636809978b0b51 100644 (file)
@@ -140,7 +140,17 @@ public class Character extends FObj implements LMVisited {
         aLMV.serveCharacter(this);
     }
 
+    /**
+     * @see org.apache.fop.fo.FObj#getName()
+     */
     public String getName() {
         return "fo:character";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_CHARACTER;
+    }
 }
index a023c21c075d8d7dc12ee5c17641144d392b063c..53dcc67c6689e4d3018fa8d91b9ec108f639fce3 100644 (file)
@@ -298,5 +298,11 @@ public class ExternalGraphic extends FObj {
 
          return vp;
      }
-    
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_EXTERNAL_GRAPHIC;
+    }
 }
index a428e86ca78828a13175d149033e97ca9f649d45..403f0adc032ef6841a8c9ef06cc21935798ab631 100644 (file)
@@ -44,4 +44,11 @@ public class Float extends ToBeImplementedElement {
     public String getName() {
         return "fo:float";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_FLOAT;
+    }
 }
index 1c16e12cba29e7264e0283917401cd509c0aaad4..515755fd83e3cf5b596f7b3e3a1811ff32b2ffe6 100644 (file)
@@ -95,5 +95,12 @@ public class Footnote extends FObj {
     public String getName() {
         return "fo:footnote";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_FOOTNOTE;
+    }
 }
 
index 0b131896d82b28c5dc42d3bfde0824371c455a83..9e35352b19aa8212915a4dcfc037ba46a5f52ddd 100644 (file)
@@ -63,4 +63,11 @@ public class FootnoteBody extends FObj {
     public String getName() {
         return "fo:footnote-body";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_FOOTNOTE_BODY;
+    }
 }
index 2972491ca551d216a7dc54460c2742de386254e3..e27399b8cb97e0bc66d96da8a43eda4cd8bc7f7e 100644 (file)
@@ -88,4 +88,11 @@ public class InitialPropertySet extends ToBeImplementedElement {
     public String getName() {
         return "fo:initial-property-set";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_INITIAL_PROPERTY_SET;
+    }
 }
index 2be77db774db18da9cf304bfb0614e73e8ebed8a..d23aea29d9b06d8ffb8f31f07395441bfa15972c 100644 (file)
@@ -110,4 +110,11 @@ public class Inline extends FObjMixed {
     public String getName() {
         return "fo:inline";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_INLINE;
+    }
 }
index 753d6253d4b1e8a42ed49a47095c935a23df1526..c96fd6afe28ca6d3e66b1fe475225892687edec0 100644 (file)
@@ -106,4 +106,11 @@ public class InlineContainer extends FObj {
     public String getName() {
         return "fo:inline-container";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_INLINE_CONTAINER;
+    }
 }
index 1a763844d4688fc7e79d8b331f30698698e7f00f..f11a7ece37f93641d41555efb47af6e66d810f18 100644 (file)
@@ -132,4 +132,11 @@ public class InstreamForeignObject extends FObj implements LMVisited {
     public String getName() {
         return "fo:instream-foreign-object";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_INSTREAM_FOREIGN_OBJECT;
+    }
 }
index 522ce8c89d49081fd239a4007ae32ae8aff06c3e..da38974c5cba5861652fe57667cc9fe93cb53d0b 100644 (file)
@@ -176,4 +176,11 @@ public class Leader extends FObjMixed implements LMVisited {
         setup();
         aLMV.serveLeader(this);
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_LEADER;
+    }
 }
index d3dbf77f158c30056cde29e14b1b03e2f6cf2145..147ac5ab3693230422dd705cca84d5eb34a167c3 100644 (file)
@@ -117,5 +117,12 @@ public class ListBlock extends FObj {
     public String getName() {
         return "fo:list-block";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_LIST_BLOCK;
+    }
 }
 
index 4ccde913aec8f6b0695cde4a6c1e12e63567b032..af7cc7e5673df8b9122846200f2356b7302e2769 100644 (file)
@@ -134,5 +134,12 @@ public class ListItem extends FObj {
     public String getName() {
         return "fo:list-item";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_LIST_ITEM;
+    }
 }
 
index 59847758a880baef8d8951ed50b2968c813699f3..db7431a04eeb36ab0e3e6f160d6136bf5ba062b7 100644 (file)
@@ -63,5 +63,12 @@ public class ListItemBody extends FObj {
     public String getName() {
         return "fo:list-item-body";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_LIST_ITEM_BODY;
+    }
 }
 
index 13fd0058ba6bd6703adf8a0b0619a212e8be928a..50b1d227c0c97477e176752e4b1b5e202c8a63af 100644 (file)
@@ -80,5 +80,12 @@ public class ListItemLabel extends FObj {
     public String getName() {
         return "fo:list-item-label";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_LIST_ITEM_LABEL;
+    }
 }
 
index 767dfbb8be0567fb8ddc393d488508a23e391283..61fe5e04c0f347d2d67391c646cc6003a8d13f22 100644 (file)
@@ -65,4 +65,11 @@ public class Marker extends FObjMixed {
     public String getName() {
         return "fo:marker";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_MARKER;
+    }
 }
index efac25394116b0185f591c465db9cb9ed741f010..d15e3112021509db5df310fa85a30b360603278f 100644 (file)
@@ -51,4 +51,11 @@ public class MultiCase extends ToBeImplementedElement {
     public String getName() {
         return "fo:multi-case";
     }
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_MULTI_CASE;
+    }
 }
index a2a2c04e503960c73f6cba8f1f0f85e53826b809..f241a5902627bb5402b86483c6f4c8a7ddd083cd 100644 (file)
@@ -48,4 +48,11 @@ public class MultiProperties extends ToBeImplementedElement {
     public String getName() {
         return "fo:multi-properties";
     }
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_MULTI_PROPERTIES;
+    }
 }
index 05edd6e019c9f49ccfb5e18b21c8457bfbcedf11..f4ebb74078c16d02a6e37b55763a9a644a6b5884 100644 (file)
@@ -57,4 +57,11 @@ public class MultiPropertySet extends ToBeImplementedElement {
     public String getName() {
         return "fo:multi-property-set";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_MULTI_PROPERTY_SET;
+    }
 }
index 61420201ac5ab04f38128a7b938f468e704f9f5e..f14a155e93dee2bcd21c2a3d81bd21280eb767ba 100644 (file)
@@ -49,4 +49,11 @@ public class MultiSwitch extends ToBeImplementedElement {
     public String getName() {
         return "fo:multi-switch";
     }
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_MULTI_SWITCH;
+    }
 }
index 06e129c268dfbadf27c6c1245bf72d023eb9a5cd..25034ca26bf84e898f1d8067f9bb220dcbfb255c 100644 (file)
@@ -49,4 +49,11 @@ public class MultiToggle extends ToBeImplementedElement {
     public String getName() {
         return "fo:multi-toggle";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_MULTI_TOGGLE;
+    }
 }
index 678c77205f46050a8859926dda403638b1a884e8..dfee543bdcc6cc0fb8d6e136c63419c0f3114e42 100644 (file)
@@ -107,4 +107,8 @@ public class PageNumber extends FObj {
     public String getName() {
         return "fo:page-number";
     }
+    
+    public int getNameId() {
+        return FO_PAGE_NUMBER;
+    }
 }
index 514891031cc5fff4d782f22fc9612219ec420758..6195bf3bd4c93626bc43bf903941c124a55c7ff2 100644 (file)
@@ -223,4 +223,11 @@ public class PageNumberCitation extends FObj {
          }
          return inline;
      }
+     
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_PAGE_NUMBER_CITATION;
+    }
 }
index b151f6068c4019510ff0b7853facf22f78bc428d..d3f1cc96dd2b066fae0832c9813656060c099126 100644 (file)
@@ -96,4 +96,12 @@ public class RetrieveMarker extends FObjMixed implements LMVisited {
     public String getName() {
         return "fo:retrieve-marker";
     }
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_RETRIEVE_MARKER;
+    }
+
 }
index 8524e162cdf3f8c9b70e67b2483023a8a9919121..6778f01aa2fd3a21d80a64360a1a2a5567e1d605 100644 (file)
@@ -208,4 +208,11 @@ public class Table extends FObj implements LMVisited {
     public String getName() {
         return "fo:table";
     }
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_TABLE;
+    }
 }
index b87b23c8c36ebfea55aac3be47448992408ea28c..872eb99bd9a630f222e5f16117def822253503b9 100644 (file)
@@ -84,5 +84,12 @@ public class TableAndCaption extends ToBeImplementedElement {
     public String getName() {
         return "fo:table-and-caption";
     }
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_TABLE_AND_CAPTION;
+    }
 }
 
index 739a4277eb033f940deee7330bc848c27e7f436f..4bf3e1e825c8176ed199e1f8abd5768b344c7307 100644 (file)
@@ -112,5 +112,12 @@ public class TableBody extends FObj implements LMVisited {
     public String getName() {
         return "fo:table-body";
     }
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_TABLE_BODY;
+    }
 }
 
index ec8cacfe4245ead69398d5c1889f33f8da4ebf79..650de9b08b346d34dc18869e51dbda2ef9dfa1e8 100644 (file)
@@ -77,5 +77,12 @@ public class TableCaption extends ToBeImplementedElement {
     public String getName() {
         return "fo:table-caption";
     }
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_TABLE_CAPTION;
+    }
 }
 
index 6157de628c2746ef090a8cfc444f15358339ec97..041901aa42419a3a2d6c2f4abbb2ca0f9a8e17eb 100644 (file)
@@ -356,5 +356,11 @@ public class TableCell extends FObj {
     public String getName() {
         return "fo:table-cell";
     }
-    
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_TABLE_CELL;
+    }
 }
index d7ff1dbcf786fe885fa42e3c2ff784a86572e3c0..9350eaa7d552eee3b4ee890226db3ba1fbb98234 100644 (file)
@@ -129,5 +129,12 @@ public class TableColumn extends FObj {
     public String getName() {
         return "fo:table-column";
     }
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_TABLE_COLUMN;
+    }
 }
 
index 411349da13961ea39792c241e248918a1b1f522d..b2816df9c43abf87a02bbba85c05bae7a1c90e23 100644 (file)
@@ -43,4 +43,11 @@ public class TableFooter extends TableBody implements LMVisited {
     public String getName() {
         return "fo:table-footer";
     }
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_TABLE_FOOTER;
+    }
 }
index b9698d3d3a1d96130d8572589a6b4a6b8b9e1e01..f2960147ca5291f1bacdf16ac55a60a21161dcd2 100644 (file)
@@ -43,4 +43,11 @@ public class TableHeader extends TableBody implements LMVisited {
     public String getName() {
         return "fo:table-header";
     }
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_TABLE_HEADER;
+    }
 }
index 7ddf4d9d15019530d1fc4363e96ba81d118b69c2..d45be3bc808a7d56c8bc2a9c48707ebcb3fe5d7f 100644 (file)
@@ -153,4 +153,10 @@ public class TableRow extends FObj {
         return "fo:table-row";
     }
 
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_TABLE_ROW;
+    }
 }
index 81c48649ca0eb9b573cd07e72771bc14f74be237..bf7eee07b5686ba55ca8d80d27ec3531f2aa4c7d 100644 (file)
@@ -56,5 +56,11 @@ public class Wrapper extends FObjMixed implements LMVisited {
         return "fo:wrapper";
     }
 
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_WRAPPER;
+    }
 }
 
index 4694fca7546f4836c91bcb7bca1897d3d11971d4..eedfabc3231707fdb595f03a799f455fc3b0869f 100644 (file)
@@ -111,7 +111,17 @@ public class ColorProfile extends FObj {
         }
     }
 
+    /**
+     * @see org.apache.fop.fo.FObj#getName()
+     */
     public String getName() {
         return "fo:color-profile";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_COLOR_PROFILE;
+    }
 }
index 7b30535aafb48f300139b510266ab56270e06967..8793f957bc17557cc6347e02b4b09efed397e671 100644 (file)
@@ -172,7 +172,17 @@ public class ConditionalPageMasterReference extends FObj {
         }
     }
 
+    /**
+     * @see org.apache.fop.fo.FObj#getName()
+     */
     public String getName() {
         return "fo:conditional-page-master-reference";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_CONDITIONAL_PAGE_MASTER_REFERENCE;
+    }
 }
index 7cc553385e8067c26664e91fbe26a2483369c97b..fa815a2849b1178b6d9b8cff73505fb6e7591bda 100644 (file)
@@ -104,7 +104,17 @@ public class Declarations extends FObj {
         childNodes = null;
     }
 
+    /**
+     * @see org.apache.fop.fo.FObj#getName()
+     */
     public String getName() {
         return "fo:declarations";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_DECLARATIONS;
+    }
 }
index 88d4f1d8bdfc29be7341bde6c3fe93defea51afa..b659d1e5b460b023686870ede074f2ee5905245d 100644 (file)
@@ -181,4 +181,11 @@ public class Flow extends FObj {
     public String getName() {
         return "fo:flow";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_FLOW;
+    }
 }
index ec5c5fff73bd527b2c22d703091bb198a5515a1d..2d143e4212e9a331702ed3aa7d4883164865029d 100644 (file)
@@ -218,5 +218,12 @@ public class LayoutMasterSet extends FObj {
     public String getName() {
         return "fo:layout-master-set";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_LAYOUT_MASTER_SET;
+    }
 }
 
index 7802a63c76fad7ad150896773084208c4641564b..f29708d4cfe1356350b1a4efc2930a5444601986 100644 (file)
@@ -746,4 +746,11 @@ public class PageSequence extends FObj {
     public String getName() {
         return "fo:page-sequence";
     }
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_PAGE_SEQUENCE;
+    }
 }
index 6d87d5315cab9d7024348cd342f7930b363d3c46..043ca817647596fea329f5b90667166c09050cec 100644 (file)
@@ -201,5 +201,12 @@ public class PageSequenceMaster extends FObj {
     public String getName() {
         return "fo:page-sequence-master";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_PAGE_SEQUENCE_MASTER;
+    }
 }
 
index 71d03643051bac8acefed30520434d7693a4a47f..b5e4ea5decbaeba0467e0acf5e03501946c18376 100644 (file)
@@ -71,5 +71,12 @@ public class RegionAfter extends RegionBA {
     public String getName() {
         return "fo:region-after";
     }
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_REGION_AFTER;
+    }
 }
 
index 42cf4910f0ffe8d288f1af308435df06b6ab45e4..d70f2c0d212d5851f1884a02dc37edc9c7789938 100644 (file)
@@ -76,5 +76,12 @@ public class RegionBefore extends RegionBA {
     public String getName() {
         return "fo:region-before";
     }
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_REGION_BEFORE;
+    }
 }
 
index 002c8e6623a41a6c37919beedbdf9453705a5acd..52a491b74edbb01c01ec9e4e7baaabf9949cbc4a 100644 (file)
@@ -109,4 +109,11 @@ public class RegionBody extends Region {
     public String getName() {
         return "fo:region-body";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_REGION_BODY;
+    }
 }
index 3254fd3b6a15b76ec3dc333147b7081264dc2bc3..8e07eaccc09af5441f7dbbbb7f054205b3678f13 100644 (file)
@@ -72,5 +72,12 @@ public class RegionEnd extends RegionSE {
     public String getName() {
         return "fo:region-end";
     }
+    
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_REGION_END;
+    }
 }
 
index f58750505fbdf53533762c9876014bcb2076a9ab..b02626ea64c7c596e39c2f1acc14488601cc701b 100644 (file)
@@ -71,5 +71,12 @@ public class RegionStart extends RegionSE {
     public String getName() {
         return "fo:region-start";
     }
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_REGION_START;
+    }
 }
 
index f7f37757baf9360e0b714b4838ce2fde5d8c4388..300d8d8d3016d4eefe19b7a122dfac2bfc83fe85 100644 (file)
@@ -157,4 +157,11 @@ public class RepeatablePageMasterAlternatives extends FObj
     public String getName() {
         return "fo:repeatable-page-master-alternatives";
     }
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_REPEATABLE_PAGE_MASTER_ALTERNATIVES;
+    }
 }
index 060a19d2f60ab5a13a84b63dc42dff086ef05575..8f6ae241a97e0fe3f325175b02bff86ba77b422e 100644 (file)
@@ -106,4 +106,11 @@ public class RepeatablePageMasterReference extends PageMasterReference
     public String getName() {
         return "fo:repeatable-page-master-reference";
     }
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_REPEATABLE_PAGE_MASTER_REFERENCE;
+    }
 }
index 5b7d0b5b9158db50b4d0f673f1083f07046c4022..4c81da5c8494365a7f54d5153fec68b02deee293 100644 (file)
@@ -226,4 +226,12 @@ public class Root extends FObj {
     public String getName() {
         return "fo:root";
     }
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_ROOT;
+    }
+
 }
index 07171a7cf79720c229b9f6c8afe16cfd75883ee2..e334988b2816f9acb6e8852f49de4fec2e0a63af 100644 (file)
@@ -159,4 +159,11 @@ public class SimplePageMaster extends FObj {
     public String getName() {
         return "fo:simple-page-master";
     }
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_SIMPLE_PAGE_MASTER;
+    }
 }
index c1b60079004b6aa54121531453da36d66a954071..f90e5c584c77138b0aa1ba493e60b25e833e0286 100644 (file)
@@ -80,5 +80,12 @@ public class SinglePageMasterReference extends PageMasterReference
     public String getName() {
         return "fo:single-page-master-reference";
     }
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_SINGLE_PAGE_MASTER_REFERENCE;
+    }
 }
 
index 06ab42bc99d200f4b57c80e8bba42a7a5ec28e13..3a1b96820db3998ab5dca26a3628ac273a3862f0 100644 (file)
@@ -83,4 +83,11 @@ public class StaticContent extends Flow {
     public String getName() {
         return "fo:static-content";
     }
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_STATIC_CONTENT;
+    }
 }
index 9365c14a2cfa77a1cb0dceba2a7ef03af194308e..f887db91b91653cfe3edfc8b3f8e4cd0926eb9f0 100644 (file)
@@ -98,5 +98,12 @@ public class Title extends FObjMixed {
     public String getName() {
         return "fo:title";
     }
+
+    /**
+     * @see org.apache.fop.fo.FObj#getNameId()
+     */
+    public int getNameId() {
+        return FO_TITLE;
+    }
 }