1 28 package net.sf.jasperreports.engine.xml; 29 30 import net.sf.jasperreports.engine.design.JRDesignExpression; 31 32 import org.xml.sax.Attributes ; 33 34 35 39 public class JRImageExpressionFactory extends JRBaseFactory 40 { 41 42 43 46 private static final String ATTRIBUTE_class = "class"; 47 48 49 52 public Object createObject(Attributes atts) 53 { 54 JRDesignExpression expression = new JRDesignExpression(); 55 56 if (atts.getValue(ATTRIBUTE_class) != null) 57 { 58 expression.setValueClassName(atts.getValue(ATTRIBUTE_class)); 59 } 60 else 61 { 62 expression.setValueClass(java.lang.String .class); 63 } 64 65 return expression; 66 } 67 68 69 } 70 | Popular Tags |