pbwest 2002/08/19 09:08:22
Modified: src/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design FOTree.java
Log:
Added getCurrentInherited() to return computed or specified values
from TOStack
Revision Changes Path
No revision
No revision
1.1.2.6 +19 -2 xml-fop/src/org/apache/fop/fo/Attic/FOTree.java
Index: FOTree.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/Attic/FOTree.java,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -r1.1.2.5 -r1.1.2.6
--- FOTree.java 4 Jul 2002 02:18:33 -0000 1.1.2.5
+++ FOTree.java 19 Aug 2002 16:08:22 -0000 1.1.2.6
@@ -64,6 +64,11 @@
protected PropertyParser exprParser;
/**
+ * Args array for refineParsingMethods[].invoke() calls
+ */
+ Object[] args = new Object[2];
+
+ /**
* An Array of LinkedList[]. Each LinkedList is a stack containing the
* most recently specified value of a particular property. The first
* element of each stack will contain the initial value.
@@ -291,6 +296,18 @@
throws PropertyException
{
return getCurrentPropertyTriplet(index).getComputed();
+ }
+
+ /**
+ * @param index: <tt>int</tt> property index.
+ * @return a <tt>PropertyValue</tt> containing the inherited
+ * property value for the indexed property; i.e. computed if available,
+ * else specified.
+ */
+ public PropertyValue getCurrentInherited(int index)
+ throws PropertyException
+ {
+ return getCurrentPropertyTriplet(index).getComputedOrSpecified();
}
public void setParserThread(Thread parserThread) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]