1 51 package org.apache.fop.fo.expr; 52 53 import org.apache.fop.fo.Property; 54 55 56 public class FromParentFunction 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 from-parent function"); 67 } 68 76 return pInfo.getPropertyList().getFromParent(propName); 77 } 78 79 } 80 | Popular Tags |