1 28 package net.sf.jasperreports.engine.base; 29 30 import java.io.Serializable ; 31 32 import net.sf.jasperreports.engine.JRConstants; 33 import net.sf.jasperreports.engine.JRExpressionChunk; 34 35 36 40 public class JRBaseExpressionChunk implements JRExpressionChunk, Serializable 41 { 42 43 44 47 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 48 49 52 protected byte type = TYPE_TEXT; 53 protected String text = null; 54 55 56 59 protected JRBaseExpressionChunk() 60 { 61 } 62 63 64 67 protected JRBaseExpressionChunk(JRExpressionChunk queryChunk, JRBaseObjectFactory factory) 68 { 69 factory.put(queryChunk, this); 70 71 type = queryChunk.getType(); 72 text = queryChunk.getText(); 73 } 74 75 76 79 public byte getType() 80 { 81 return this.type; 82 } 83 84 87 public String getText() 88 { 89 return this.text; 90 } 91 92 93 } 94 | Popular Tags |