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