diff options
author | Glen Mazza <gmazza@apache.org> | 2004-06-12 23:18:53 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2004-06-12 23:18:53 +0000 |
commit | 40610cdc9d203ac61e6d80a18b68adc0f95a4ce5 (patch) | |
tree | 1c08d1b68c75410ea7af140ff3388118cf021233 /src/java/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java | |
parent | e389e54a568773a3ea1599718d28a014ee86b227 (diff) | |
download | xmlgraphics-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/pagination/ConditionalPageMasterReference.java')
-rw-r--r-- | src/java/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java b/src/java/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java index b98276462..a2a931a91 100644 --- a/src/java/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java +++ b/src/java/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java @@ -167,4 +167,7 @@ public class ConditionalPageMasterReference extends FObj { fotv.serveConditionalPageMasterReference(this); } + public String getName() { + return "fo:conditional-page-master-reference"; + } } |