pbwest 2004/04/15 22:12:34
Modified: src/java/org/apache/fop/fo/flow Tag: FOP_0-20-0_Alt-Design
FoStaticContent.java
Log:
Added getFlowName()
Fixed erroneous exception messages
Revision Changes Path
No revision
No revision
1.1.2.11 +19 -6
xml-fop/src/java/org/apache/fop/fo/flow/Attic/FoStaticContent.java
Index: FoStaticContent.java
===================================================================
RCS file:
/home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/Attic/FoStaticContent.java,v
retrieving revision 1.1.2.10
retrieving revision 1.1.2.11
diff -u -r1.1.2.10 -r1.1.2.11
--- FoStaticContent.java 25 Feb 2004 23:40:28 -0000 1.1.2.10
+++ FoStaticContent.java 16 Apr 2004 05:12:34 -0000 1.1.2.11
@@ -91,8 +91,7 @@
/**
* Construct an fo:static-content node, and buffer the contents for later
-* parsing
- * subtree.
+ * parsing.
* <p>Content model for fo:static-content: (%block;)+
* @param foTree the FO tree being built
* @param parent the parent FONode of this node
@@ -109,9 +108,11 @@
ncName = (NCName)(getPropertyValue(PropNames.FLOW_NAME));
} catch (PropertyException e) {
throw new FOPException(
- "Cannot find marker-class-name in fo:marker", e);
+ "Cannot find flow-name in fo:static-content", e);
} catch (ClassCastException e) {
- throw new FOPException("Wrong PropertyValue type in fo:marker", e);
+ throw new FOPException
+ ("Wrong PropertyValue type for flow-name in fo:static-content",
+ e);
}
flowName = ncName.getNCName();
@@ -132,11 +133,23 @@
}
/**
+ * Gets the buffer of <code>XmlEvent</code>s from this
+ * <b>fo:static-content</b> subtree
+ *
* @return the static-content subtree buffer
*/
public XmlEventsArrayBuffer getEventBuffer() {
return buffer;
}
+ /**
+ * Gets the <b>flow-name</b> with which this <b>fo:static-content</b>
+ * is associated
+ *
+ * @return the flow-name
+ */
+ public String getFlowName() {
+ return flowName;
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]