return (FObj)par;
}
+ public PropertyList getPropertiesForNamespace(String nameSpaceURI) {
+ if (this.properties == null) {
+ return null;
+ }
+ if (! nameSpaceURI.equals(this.properties.getNameSpace())) {
+ return null;
+ }
+ return this.properties;
+ }
+
protected PropertyManager makePropertyManager(
PropertyList propertyList) {
return new PropertyManager(propertyList);
nameSpaceURIToUse = nameSpaceURI;
}
FObj parentFO = fo.findNearestAncestorFObj();
-
- PropertyList parentPropertyList = null;
+ PropertyList parentProperties = null;
if (parentFO != null) {
- parentPropertyList = parentFO.properties;
- }
- PropertyList par = null;
- if (parentPropertyList != null
- && nameSpaceURIToUse.equals(parentPropertyList.getNameSpace())) {
- par = parentPropertyList;
+ parentProperties = parentFO.getPropertiesForNamespace(nameSpaceURIToUse);
}
- PropertyList p = new PropertyList(par, nameSpaceURIToUse,
+ PropertyList p = new PropertyList(parentProperties, nameSpaceURIToUse,
elementName);
p.setBuilder(this);
HashMap table;