1 51 package org.apache.fop.fo.expr; 52 53 import org.apache.fop.fo.Property; 54 55 56 public class InheritedPropFunction extends FunctionBase { 57 58 public int nbArgs() { 59 return 1; 60 } 61 62 public Property eval(Property[] args, 63 PropertyInfo pInfo) throws PropertyException { 64 String propName = args[0].getString(); 65 if (propName == null) { 66 throw new PropertyException("Incorrect parameter to inherited-property-value function"); 67 } 68 return pInfo.getPropertyList().getInherited(propName); 69 } 70 71 } 72 | Popular Tags |