aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/flow
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2004-06-12 23:18:53 +0000
committerGlen Mazza <gmazza@apache.org>2004-06-12 23:18:53 +0000
commit40610cdc9d203ac61e6d80a18b68adc0f95a4ce5 (patch)
tree1c08d1b68c75410ea7af140ff3388118cf021233 /src/java/org/apache/fop/fo/flow
parente389e54a568773a3ea1599718d28a014ee86b227 (diff)
downloadxmlgraphics-fop-40610cdc9d203ac61e6d80a18b68adc0f95a4ce5.tar.gz
xmlgraphics-fop-40610cdc9d203ac61e6d80a18b68adc0f95a4ce5.zip
Created a validateChildNode() in FONode for better syntax checking in the
fo document: e.g., preventing two fo:layout-master-set's from occurring within an fo:root, requiring fo:page-sequence to follow the fo:l-m-s (and fo:declarations, if present). Currently just validates fo:root's children--validateChildNode() needs to be overridden in other FObj subclasses to do the same for other formatting objects. Comments most welcome. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197703 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/BasicLink.java4
-rw-r--r--src/java/org/apache/fop/fo/flow/BidiOverride.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/Block.java4
-rw-r--r--src/java/org/apache/fop/fo/flow/BlockContainer.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/Character.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/ExternalGraphic.java4
-rw-r--r--src/java/org/apache/fop/fo/flow/Float.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/Footnote.java4
-rw-r--r--src/java/org/apache/fop/fo/flow/FootnoteBody.java4
-rw-r--r--src/java/org/apache/fop/fo/flow/InitialPropertySet.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/Inline.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/InlineContainer.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/InstreamForeignObject.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/Leader.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/ListBlock.java4
-rw-r--r--src/java/org/apache/fop/fo/flow/ListItem.java4
-rw-r--r--src/java/org/apache/fop/fo/flow/ListItemBody.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/ListItemLabel.java4
-rw-r--r--src/java/org/apache/fop/fo/flow/Marker.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/MultiCase.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/MultiProperties.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/MultiPropertySet.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/MultiSwitch.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/MultiToggle.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/PageNumber.java4
-rw-r--r--src/java/org/apache/fop/fo/flow/PageNumberCitation.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/RetrieveMarker.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/Table.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/TableAndCaption.java4
-rw-r--r--src/java/org/apache/fop/fo/flow/TableBody.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/TableCaption.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/TableCell.java5
-rw-r--r--src/java/org/apache/fop/fo/flow/TableColumn.java4
-rw-r--r--src/java/org/apache/fop/fo/flow/TableFooter.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/TableHeader.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/TableRow.java4
-rw-r--r--src/java/org/apache/fop/fo/flow/Wrapper.java4
37 files changed, 126 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fo/flow/BasicLink.java b/src/java/org/apache/fop/fo/flow/BasicLink.java
index a541ac27f..002650c67 100644
--- a/src/java/org/apache/fop/fo/flow/BasicLink.java
+++ b/src/java/org/apache/fop/fo/flow/BasicLink.java
@@ -145,4 +145,8 @@ public class BasicLink extends Inline {
getFOTreeControl().getFOInputHandler().endLink();
}
+
+ public String getName() {
+ return "fo:basic-link";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/BidiOverride.java b/src/java/org/apache/fop/fo/flow/BidiOverride.java
index 040bbb8a4..ffb022206 100644
--- a/src/java/org/apache/fop/fo/flow/BidiOverride.java
+++ b/src/java/org/apache/fop/fo/flow/BidiOverride.java
@@ -79,4 +79,7 @@ public class BidiOverride extends FObjMixed {
fotv.serveBidiOverride(this);
}
+ public String getName() {
+ return "fo:bidi-override";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/Block.java b/src/java/org/apache/fop/fo/flow/Block.java
index bd99ced06..e1f90ea9a 100644
--- a/src/java/org/apache/fop/fo/flow/Block.java
+++ b/src/java/org/apache/fop/fo/flow/Block.java
@@ -401,4 +401,8 @@ public class Block extends FObjMixed {
fotv.serveBlock(this);
}
+ public String getName() {
+ return "fo:block";
+ }
+
}
diff --git a/src/java/org/apache/fop/fo/flow/BlockContainer.java b/src/java/org/apache/fop/fo/flow/BlockContainer.java
index 1d8e8e90f..d3d243db9 100644
--- a/src/java/org/apache/fop/fo/flow/BlockContainer.java
+++ b/src/java/org/apache/fop/fo/flow/BlockContainer.java
@@ -140,5 +140,8 @@ public class BlockContainer extends FObj {
fotv.serveBlockContainer(this);
}
+ public String getName() {
+ return "fo:block-container";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/Character.java b/src/java/org/apache/fop/fo/flow/Character.java
index 7aefd25fc..8bc70f0c2 100644
--- a/src/java/org/apache/fop/fo/flow/Character.java
+++ b/src/java/org/apache/fop/fo/flow/Character.java
@@ -126,4 +126,7 @@ public class Character extends FObj {
fotv.serveCharacter(this);
}
+ public String getName() {
+ return "fo:character";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/ExternalGraphic.java b/src/java/org/apache/fop/fo/flow/ExternalGraphic.java
index 842be7641..adcac83ca 100644
--- a/src/java/org/apache/fop/fo/flow/ExternalGraphic.java
+++ b/src/java/org/apache/fop/fo/flow/ExternalGraphic.java
@@ -242,4 +242,8 @@ public class ExternalGraphic extends FObj {
return placement;
}
+ public String getName() {
+ return "fo:external-graphic";
+ }
+
}
diff --git a/src/java/org/apache/fop/fo/flow/Float.java b/src/java/org/apache/fop/fo/flow/Float.java
index 3ca56f3e0..28f255ba7 100644
--- a/src/java/org/apache/fop/fo/flow/Float.java
+++ b/src/java/org/apache/fop/fo/flow/Float.java
@@ -47,4 +47,7 @@ public class Float extends ToBeImplementedElement {
fotv.serveFloat(this);
}
+ public String getName() {
+ return "fo:float";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/Footnote.java b/src/java/org/apache/fop/fo/flow/Footnote.java
index 136e15363..4f74945a5 100644
--- a/src/java/org/apache/fop/fo/flow/Footnote.java
+++ b/src/java/org/apache/fop/fo/flow/Footnote.java
@@ -81,5 +81,9 @@ public class Footnote extends FObj {
super.end();
getFOTreeControl().getFOInputHandler().endFootnote(this);
}
+
+ public String getName() {
+ return "fo:footnote";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/FootnoteBody.java b/src/java/org/apache/fop/fo/flow/FootnoteBody.java
index 162a1bcec..5b9a2c3a6 100644
--- a/src/java/org/apache/fop/fo/flow/FootnoteBody.java
+++ b/src/java/org/apache/fop/fo/flow/FootnoteBody.java
@@ -64,4 +64,8 @@ public class FootnoteBody extends FObj {
getFOTreeControl().getFOInputHandler().endFootnoteBody(this);
}
+
+ public String getName() {
+ return "fo:footnote-body";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/InitialPropertySet.java b/src/java/org/apache/fop/fo/flow/InitialPropertySet.java
index d065c7414..0c9a7867d 100644
--- a/src/java/org/apache/fop/fo/flow/InitialPropertySet.java
+++ b/src/java/org/apache/fop/fo/flow/InitialPropertySet.java
@@ -76,4 +76,7 @@ public class InitialPropertySet extends ToBeImplementedElement {
fotv.serveInitialPropertySet(this);
}
+ public String getName() {
+ return "fo:initial-property-set";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/Inline.java b/src/java/org/apache/fop/fo/flow/Inline.java
index 1441e0396..ebe49bd49 100644
--- a/src/java/org/apache/fop/fo/flow/Inline.java
+++ b/src/java/org/apache/fop/fo/flow/Inline.java
@@ -142,4 +142,7 @@ public class Inline extends FObjMixed {
getFOTreeControl().getFOInputHandler().endInline(this);
}
+ public String getName() {
+ return "fo:inline";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/InlineContainer.java b/src/java/org/apache/fop/fo/flow/InlineContainer.java
index 2889034d0..bd9607a05 100644
--- a/src/java/org/apache/fop/fo/flow/InlineContainer.java
+++ b/src/java/org/apache/fop/fo/flow/InlineContainer.java
@@ -98,4 +98,7 @@ public class InlineContainer extends FObj {
fotv.serveInlineContainer(this);
}
+ public String getName() {
+ return "fo:inline-container";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/InstreamForeignObject.java b/src/java/org/apache/fop/fo/flow/InstreamForeignObject.java
index 53ba21d88..5e27d6983 100644
--- a/src/java/org/apache/fop/fo/flow/InstreamForeignObject.java
+++ b/src/java/org/apache/fop/fo/flow/InstreamForeignObject.java
@@ -168,4 +168,7 @@ public class InstreamForeignObject extends FObj {
fotv.serveInstreamForeignObject(this);
}
+ public String getName() {
+ return "fo:instream-foreign-object";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/Leader.java b/src/java/org/apache/fop/fo/flow/Leader.java
index 5e1fdd0cc..f9c3ac8c4 100644
--- a/src/java/org/apache/fop/fo/flow/Leader.java
+++ b/src/java/org/apache/fop/fo/flow/Leader.java
@@ -172,4 +172,7 @@ public class Leader extends FObjMixed {
fotv.serveLeader(this);
}
+ public String getName() {
+ return "fo:leader";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/ListBlock.java b/src/java/org/apache/fop/fo/flow/ListBlock.java
index b0fd8c4b6..23d4da5ef 100644
--- a/src/java/org/apache/fop/fo/flow/ListBlock.java
+++ b/src/java/org/apache/fop/fo/flow/ListBlock.java
@@ -141,5 +141,9 @@ public class ListBlock extends FObj {
getFOTreeControl().getFOInputHandler().endList(this);
}
+
+ public String getName() {
+ return "fo:list-block";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/ListItem.java b/src/java/org/apache/fop/fo/flow/ListItem.java
index 69f2a9c29..6c5ed254b 100644
--- a/src/java/org/apache/fop/fo/flow/ListItem.java
+++ b/src/java/org/apache/fop/fo/flow/ListItem.java
@@ -150,5 +150,9 @@ public class ListItem extends FObj {
super.end();
getFOTreeControl().getFOInputHandler().endListItem(this);
}
+
+ public String getName() {
+ return "fo:list-item";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/ListItemBody.java b/src/java/org/apache/fop/fo/flow/ListItemBody.java
index 59f2e15b6..c5fec56dd 100644
--- a/src/java/org/apache/fop/fo/flow/ListItemBody.java
+++ b/src/java/org/apache/fop/fo/flow/ListItemBody.java
@@ -71,5 +71,8 @@ public class ListItemBody extends FObj {
fotv.serveListItemBody(this);
}
+ public String getName() {
+ return "fo:list-item-body";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/ListItemLabel.java b/src/java/org/apache/fop/fo/flow/ListItemLabel.java
index c04dece44..cead94f88 100644
--- a/src/java/org/apache/fop/fo/flow/ListItemLabel.java
+++ b/src/java/org/apache/fop/fo/flow/ListItemLabel.java
@@ -88,5 +88,9 @@ public class ListItemLabel extends FObj {
getFOTreeControl().getFOInputHandler().endListLabel();
}
+
+ public String getName() {
+ return "fo:list-item-label";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/Marker.java b/src/java/org/apache/fop/fo/flow/Marker.java
index 81e681650..215557bfc 100644
--- a/src/java/org/apache/fop/fo/flow/Marker.java
+++ b/src/java/org/apache/fop/fo/flow/Marker.java
@@ -74,4 +74,7 @@ public class Marker extends FObjMixed {
fotv.serveMarker(this);
}
+ public String getName() {
+ return "fo:marker";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/MultiCase.java b/src/java/org/apache/fop/fo/flow/MultiCase.java
index 4b599f624..c4945ff15 100644
--- a/src/java/org/apache/fop/fo/flow/MultiCase.java
+++ b/src/java/org/apache/fop/fo/flow/MultiCase.java
@@ -53,4 +53,7 @@ public class MultiCase extends ToBeImplementedElement {
fotv.serveMultiCase(this);
}
+ public String getName() {
+ return "fo:multi-case";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/MultiProperties.java b/src/java/org/apache/fop/fo/flow/MultiProperties.java
index 2c5c8b03e..d35f747d5 100644
--- a/src/java/org/apache/fop/fo/flow/MultiProperties.java
+++ b/src/java/org/apache/fop/fo/flow/MultiProperties.java
@@ -50,4 +50,7 @@ public class MultiProperties extends ToBeImplementedElement {
fotv.serveMultiProperties(this);
}
+ public String getName() {
+ return "fo:multi-properties";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/MultiPropertySet.java b/src/java/org/apache/fop/fo/flow/MultiPropertySet.java
index fabd2e7f6..8472962fa 100644
--- a/src/java/org/apache/fop/fo/flow/MultiPropertySet.java
+++ b/src/java/org/apache/fop/fo/flow/MultiPropertySet.java
@@ -47,4 +47,7 @@ public class MultiPropertySet extends ToBeImplementedElement {
fotv.serveMultiPropertySet(this);
}
+ public String getName() {
+ return "fo:multi-property-set";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/MultiSwitch.java b/src/java/org/apache/fop/fo/flow/MultiSwitch.java
index 6c350836b..5535327c7 100644
--- a/src/java/org/apache/fop/fo/flow/MultiSwitch.java
+++ b/src/java/org/apache/fop/fo/flow/MultiSwitch.java
@@ -51,4 +51,7 @@ public class MultiSwitch extends ToBeImplementedElement {
fotv.serveMultiSwitch(this);
}
+ public String getName() {
+ return "fo:multi-switch";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/MultiToggle.java b/src/java/org/apache/fop/fo/flow/MultiToggle.java
index 60f8a4848..da77e7da8 100644
--- a/src/java/org/apache/fop/fo/flow/MultiToggle.java
+++ b/src/java/org/apache/fop/fo/flow/MultiToggle.java
@@ -51,4 +51,7 @@ public class MultiToggle extends ToBeImplementedElement {
fotv.serveMultiToggle(this);
}
+ public String getName() {
+ return "fo:multi-toggle";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/PageNumber.java b/src/java/org/apache/fop/fo/flow/PageNumber.java
index b092cf75c..1871e8133 100644
--- a/src/java/org/apache/fop/fo/flow/PageNumber.java
+++ b/src/java/org/apache/fop/fo/flow/PageNumber.java
@@ -131,4 +131,8 @@ public class PageNumber extends FObj {
protected void end() {
getFOTreeControl().getFOInputHandler().endPageNumber(this);
}
+
+ public String getName() {
+ return "fo:page-number";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/PageNumberCitation.java b/src/java/org/apache/fop/fo/flow/PageNumberCitation.java
index 865de762c..b1907b05b 100644
--- a/src/java/org/apache/fop/fo/flow/PageNumberCitation.java
+++ b/src/java/org/apache/fop/fo/flow/PageNumberCitation.java
@@ -142,4 +142,7 @@ public class PageNumberCitation extends FObj {
return fontState;
}
+ public String getName() {
+ return "fo:page-number-citation";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/RetrieveMarker.java b/src/java/org/apache/fop/fo/flow/RetrieveMarker.java
index 826a6faf9..dee50c989 100644
--- a/src/java/org/apache/fop/fo/flow/RetrieveMarker.java
+++ b/src/java/org/apache/fop/fo/flow/RetrieveMarker.java
@@ -80,4 +80,7 @@ public class RetrieveMarker extends FObjMixed {
fotv.serveRetrieveMarker(this);
}
+ public String getName() {
+ return "fo:retrieve-marker";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/Table.java b/src/java/org/apache/fop/fo/flow/Table.java
index 8c81cf796..94fada6c1 100644
--- a/src/java/org/apache/fop/fo/flow/Table.java
+++ b/src/java/org/apache/fop/fo/flow/Table.java
@@ -206,4 +206,7 @@ public class Table extends FObj {
getFOTreeControl().getFOInputHandler().endTable(this);
}
+ public String getName() {
+ return "fo:table";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/TableAndCaption.java b/src/java/org/apache/fop/fo/flow/TableAndCaption.java
index 5b98a4e80..8585fb59b 100644
--- a/src/java/org/apache/fop/fo/flow/TableAndCaption.java
+++ b/src/java/org/apache/fop/fo/flow/TableAndCaption.java
@@ -86,5 +86,9 @@ public class TableAndCaption extends ToBeImplementedElement {
fotv.serveTableAndCaption(this);
}
+ public String getName() {
+ return "fo:table-and-caption";
+ }
+
}
diff --git a/src/java/org/apache/fop/fo/flow/TableBody.java b/src/java/org/apache/fop/fo/flow/TableBody.java
index 23b02e2ec..ce5048a67 100644
--- a/src/java/org/apache/fop/fo/flow/TableBody.java
+++ b/src/java/org/apache/fop/fo/flow/TableBody.java
@@ -107,5 +107,8 @@ public class TableBody extends FObj {
getFOTreeControl().getFOInputHandler().endBody(this);
}
+ public String getName() {
+ return "fo:table-body";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/TableCaption.java b/src/java/org/apache/fop/fo/flow/TableCaption.java
index 001ce2387..c167dabe2 100644
--- a/src/java/org/apache/fop/fo/flow/TableCaption.java
+++ b/src/java/org/apache/fop/fo/flow/TableCaption.java
@@ -79,5 +79,8 @@ public class TableCaption extends ToBeImplementedElement {
fotv.serveTableCaption(this);
}
+ public String getName() {
+ return "fo:table-caption";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/TableCell.java b/src/java/org/apache/fop/fo/flow/TableCell.java
index a63eedd79..b9d4e2b6a 100644
--- a/src/java/org/apache/fop/fo/flow/TableCell.java
+++ b/src/java/org/apache/fop/fo/flow/TableCell.java
@@ -350,4 +350,9 @@ public class TableCell extends FObj {
protected void end() {
getFOTreeControl().getFOInputHandler().endCell(this);
}
+
+ public String getName() {
+ return "fo:table-cell";
+ }
+
}
diff --git a/src/java/org/apache/fop/fo/flow/TableColumn.java b/src/java/org/apache/fop/fo/flow/TableColumn.java
index 067aec266..232d6b0ea 100644
--- a/src/java/org/apache/fop/fo/flow/TableColumn.java
+++ b/src/java/org/apache/fop/fo/flow/TableColumn.java
@@ -126,5 +126,9 @@ public class TableColumn extends FObj {
protected void end() {
getFOTreeControl().getFOInputHandler().endColumn(this);
}
+
+ public String getName() {
+ return "fo:table-column";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/TableFooter.java b/src/java/org/apache/fop/fo/flow/TableFooter.java
index ced2e68c2..e1681f787 100644
--- a/src/java/org/apache/fop/fo/flow/TableFooter.java
+++ b/src/java/org/apache/fop/fo/flow/TableFooter.java
@@ -39,4 +39,7 @@ public class TableFooter extends TableBody {
fotv.serveTableFooter(this);
}
+ public String getName() {
+ return "fo:table-footer";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/TableHeader.java b/src/java/org/apache/fop/fo/flow/TableHeader.java
index 0232bfeb0..0e6b809fc 100644
--- a/src/java/org/apache/fop/fo/flow/TableHeader.java
+++ b/src/java/org/apache/fop/fo/flow/TableHeader.java
@@ -39,4 +39,7 @@ public class TableHeader extends TableBody {
fotv.serveTableHeader(this);
}
+ public String getName() {
+ return "fo:table-header";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/TableRow.java b/src/java/org/apache/fop/fo/flow/TableRow.java
index fabde75a0..9ecc3ec12 100644
--- a/src/java/org/apache/fop/fo/flow/TableRow.java
+++ b/src/java/org/apache/fop/fo/flow/TableRow.java
@@ -147,5 +147,9 @@ public class TableRow extends FObj {
protected void end() {
getFOTreeControl().getFOInputHandler().endRow(this);
}
+
+ public String getName() {
+ return "fo:table-row";
+ }
}
diff --git a/src/java/org/apache/fop/fo/flow/Wrapper.java b/src/java/org/apache/fop/fo/flow/Wrapper.java
index 6a073be37..90e35a593 100644
--- a/src/java/org/apache/fop/fo/flow/Wrapper.java
+++ b/src/java/org/apache/fop/fo/flow/Wrapper.java
@@ -50,6 +50,10 @@ public class Wrapper extends FObjMixed {
public void acceptVisitor(FOTreeVisitor fotv) {
fotv.serveWrapper(this);
}
+
+ public String getName() {
+ return "fo:wrapper";
+ }
}