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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to