Revision: 7882
http://svn.sourceforge.net/foray/?rev=7882&view=rev
Author: victormote
Date: 2006-09-04 10:02:17 -0700 (Mon, 04 Sep 2006)
Log Message:
-----------
Share more common code.
Modified Paths:
--------------
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMAlternatives.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMReference.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SinglePageMasterReference.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SubSequenceSpecifier.java
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMAlternatives.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMAlternatives.java 2006-09-04 16:57:28 UTC (rev 7881)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMAlternatives.java 2006-09-04 17:02:17 UTC (rev 7882)
@@ -84,15 +84,6 @@
}
/**
- * The parent.
- * @return The parent, properly cast.
- */
- public PageSequenceMaster pageSequenceMaster() {
- /* Cast verified at construction. */
- return (PageSequenceMaster) this.parentFO();
- }
-
- /**
* {@inheritDoc}
*/
public Set getPages() {
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMReference.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMReference.java 2006-09-04 16:57:28 UTC (rev 7881)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMReference.java 2006-09-04 17:02:17 UTC (rev 7882)
@@ -80,15 +80,6 @@
}
/**
- * The parent.
- * @return The parent, properly cast.
- */
- public PageSequenceMaster pageSequenceMaster() {
- /* Cast verified at construction. */
- return (PageSequenceMaster) this.parentFO();
- }
-
- /**
* {@inheritDoc}
*/
public Set getPages() {
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SinglePageMasterReference.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SinglePageMasterReference.java 2006-09-04 16:57:28 UTC (rev 7881)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SinglePageMasterReference.java 2006-09-04 17:02:17 UTC (rev 7882)
@@ -65,15 +65,6 @@
validateEmptyContent();
}
- /**
- * The parent.
- * @return The parent, properly cast.
- */
- public PageSequenceMaster pageSequenceMaster() {
- /* Cast verified at construction. */
- return (PageSequenceMaster) this.parentFO();
- }
-
public String getName() {
return "single-page-master-reference";
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SubSequenceSpecifier.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SubSequenceSpecifier.java 2006-09-04 16:57:28 UTC (rev 7881)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SubSequenceSpecifier.java 2006-09-04 17:02:17 UTC (rev 7882)
@@ -69,6 +69,15 @@
}
/**
+ * The parent.
+ * @return The parent, properly cast.
+ */
+ public PageSequenceMaster pageSequenceMaster() {
+ /* Cast verified at validateAncestry(). */
+ return (PageSequenceMaster) this.parentFO();
+ }
+
+ /**
* Returns the page-master instances that are included in this template.
* @return The page-master instances that can be generated from this
* template.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|