1 28 package net.sf.jasperreports.engine.xml; 29 30 import net.sf.jasperreports.engine.JRPrintHyperlinkParameter; 31 import net.sf.jasperreports.engine.JRPrintHyperlinkParameters; 32 33 import org.xml.sax.Attributes ; 34 35 36 44 public class JRPrintHyperlinkParameterFactory extends JRBaseFactory 45 { 46 47 public static final String ELEMENT_hyperlinkParameter = "hyperlinkParameter"; 48 49 public static final String ATTRIBUTE_name = "name"; 50 public static final String ATTRIBUTE_class = "class"; 51 52 public Object createObject(Attributes attrs) 53 { 54 JRPrintHyperlinkParameter parameter = new JRPrintHyperlinkParameter(); 55 parameter.setName(attrs.getValue(ATTRIBUTE_name)); 56 57 String valueClass = attrs.getValue(ATTRIBUTE_class); 58 if (valueClass != null) 59 { 60 parameter.setValueClass(valueClass); 61 } 62 63 return parameter; 64 } 65 66 } 67 | Popular Tags |