You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by pb...@apache.org on 2002/10/05 04:42:22 UTC
cvs commit: xml-fop/src/org/apache/fop/datatypes/indirect InheritedValue.java
pbwest 2002/10/04 19:42:21
Modified: src/org/apache/fop/datatypes/indirect Tag:
FOP_0-20-0_Alt-Design InheritedValue.java
Log:
Throw PropertyException in constructor if property in not inherited.
Revision Changes Path
No revision
No revision
1.1.2.4 +11 -3 xml-fop/src/org/apache/fop/datatypes/indirect/Attic/InheritedValue.java
Index: InheritedValue.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/datatypes/indirect/Attic/InheritedValue.java,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -r1.1.2.3 -r1.1.2.4
--- InheritedValue.java 3 Oct 2002 12:02:25 -0000 1.1.2.3
+++ InheritedValue.java 5 Oct 2002 02:42:21 -0000 1.1.2.4
@@ -50,6 +50,10 @@
throws PropertyException
{
super(property, PropertyValue.INHERIT, sourceProperty);
+ if (PropertyConsts.nonInheritedProps.get(sourceProperty))
+ throw new PropertyException
+ ("Non-inherited property "
+ + PropNames.getPropertyName(sourceProperty));
}
/**
@@ -74,6 +78,10 @@
throws PropertyException
{
super(propertyName, PropertyValue.INHERIT, sourcePropertyName);
+ if (PropertyConsts.nonInheritedProps.get(
+ PropertyConsts.getPropertyIndex(sourcePropertyName)))
+ throw new PropertyException
+ ("Non-inherited property " + sourcePropertyName);
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org