pbwest 2002/10/08 21:50:24 Modified: src/org/apache/fop/datatypes Tag: FOP_0-20-0_Alt-Design AbstractPropertyValue.java Log: Removed stackedBy references. Added typeString(). Modified toString(). Revision Changes Path No revision No revision 1.1.2.5 +10 -23 xml-fop/src/org/apache/fop/datatypes/Attic/AbstractPropertyValue.java Index: AbstractPropertyValue.java =================================================================== RCS file: /home/cvs/xml-fop/src/org/apache/fop/datatypes/Attic/AbstractPropertyValue.java,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -u -r1.1.2.4 -r1.1.2.5 --- AbstractPropertyValue.java 4 Oct 2002 15:49:33 -0000 1.1.2.4 +++ AbstractPropertyValue.java 9 Oct 2002 04:50:24 -0000 1.1.2.5 @@ -34,11 +34,6 @@ * An integer property type. */ public final int type; - - /** - * The <tt>FONode</tt> that stacked this value. - */ - private FONode stackedBy = null; /** * @param index index of the property in the property arrays. @@ -90,21 +85,6 @@ } /** - * Set the node that stacked this value. - * @param node - the <tt>FONode</tt> that stacked this value. - */ - public void setStackedBy(FONode node) { - stackedBy = node; - } - - /** - * Get the node that stacked this value. - */ - public FONode getStackedBy() { - return stackedBy; - } - - /** * In some circumstances, the property against which a type is to be * validated may not be the same as the property against which this * <i>AbstractPropertyValue</i> is defined. @@ -146,10 +126,17 @@ validate(property, type); } + public static String typeString(int type) { + if (type < 0 || type >PropertyValue.LAST_PROPERTY_TYPE) + return "Property type out of range"; + return PropertyValue.propertyTypes.get(type); + } + public String toString() { try { return "Property: " + PropNames.getPropertyName(property) - + " Index: " + property; + + " Index: " + property + " Type: " + + typeString(type); } catch (PropertyException e) { throw new RuntimeException(e.getMessage()); }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]