From 5516c22f7ca791b7a52963e94bf529d19d6e584d Mon Sep 17 00:00:00 2001 From: William Victor Mote Date: Thu, 1 May 2003 08:10:43 +0000 Subject: [PATCH] Refactor: minor cleanup of variable names, APIs, javadocs. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196385 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/fop/fo/PropertyListBuilder.java | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/src/java/org/apache/fop/fo/PropertyListBuilder.java b/src/java/org/apache/fop/fo/PropertyListBuilder.java index 5e7b22af0..33da6d242 100644 --- a/src/java/org/apache/fop/fo/PropertyListBuilder.java +++ b/src/java/org/apache/fop/fo/PropertyListBuilder.java @@ -159,15 +159,14 @@ public class PropertyListBuilder { */ String attributeName = FONTSIZEATTR; String attributeValue = attributes.getValue(attributeName); - convertAttributeToProperty(attributes, attributeName, validProperties, - p, parentFO, attributeValue); + convertAttributeToProperty(attributes, attributeName, attributeValue, + validProperties, p, parentFO); for (int i = 0; i < attributes.getLength(); i++) { attributeName = attributes.getQName(i); attributeValue = attributes.getValue(i); - convertAttributeToProperty(attributes, attributeName, - validProperties, p, parentFO, - attributeValue); + convertAttributeToProperty(attributes, attributeName, attributeValue, + validProperties, p, parentFO); } return p; } @@ -176,6 +175,7 @@ public class PropertyListBuilder { * * @param attributes Collection of attributes * @param attributeName Attribute name to convert + * @param attributeValue Attribute value to assign to property * @param validProperties Collection of valid properties * @param propList PropertyList in which to add the newly created Property * @param parentFO Parent FO of the object for which this property is being @@ -183,10 +183,10 @@ public class PropertyListBuilder { */ private void convertAttributeToProperty(Attributes attributes, String attributeName, + String attributeValue, HashMap validProperties, - PropertyList p, - FObj parentFO, - String attributeValue) { + PropertyList propList, + FObj parentFO) { /* Handle "compound" properties, ex. space-before.minimum */ String basePropName = findBasePropertyName(attributeName); String subPropName = findSubPropertyName(attributeName); @@ -202,13 +202,13 @@ public class PropertyListBuilder { try { Property prop = null; if (subPropName == null) { - prop = propertyMaker.make(p, attributeValue, parentFO); + prop = propertyMaker.make(propList, attributeValue, parentFO); } else { - prop = findSubPropValue(attributes, p, parentFO, basePropName, subPropName, prop, propertyMaker, attributeValue); + prop = findSubPropValue(attributes, propList, parentFO, basePropName, subPropName, prop, propertyMaker, attributeValue); } if (prop != null) { - p.put(basePropName, prop); + propList.put(basePropName, prop); } } catch (FOPException e) { @@ -236,9 +236,7 @@ public class PropertyListBuilder { } // else baseProp = propertyMaker.makeCompound(p, parentFO); } - propVal = propertyMaker.make(baseProp, subPropName, - p, - attributeValue, + propVal = propertyMaker.make(baseProp, subPropName, p, attributeValue, parentFO); return propVal; } -- 2.39.5