Save This Page
Home » pentaho-reporting-engine-classic-0.8.10 » org.jfree.report.function.strings » [javadoc | source]
org.jfree.report.function.strings
public class: SubStringExpression [javadoc | source]
java.lang.Object
   org.jfree.report.function.AbstractExpression
      org.jfree.report.function.strings.SubStringExpression

All Implemented Interfaces:
    Expression, Serializable

Creates a substring of the given text. If the expression has an ellipsis defined, and the given start position and length are greater than the string's length, the ellipsis-text will be appended to indicate that this substring result is only a partial match. A similiar functionality can be achived using the built-in formula support.
Constructor:
 public SubStringExpression() 
Method from org.jfree.report.function.strings.SubStringExpression Summary:
getEllipsis,   getField,   getLength,   getStart,   getValue,   setEllipsis,   setField,   setLength,   setStart
Methods from org.jfree.report.function.AbstractExpression:
clone,   getDataRow,   getDependencyLevel,   getInstance,   getName,   getReportConfiguration,   getResourceBundleFactory,   getRuntime,   isActive,   isDeepTraversing,   isPreserve,   setActive,   setDependencyLevel,   setName,   setPreserve,   setRuntime
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.report.function.strings.SubStringExpression Detail:
 public String getEllipsis() 
    Returns the ellipsis-text that indicates partial values.
 public String getField() 
    Returns the name of the datarow-column from where to read the string value.
 public int getLength() 
    Returns the sub-string's length.
 public int getStart() 
    Returns the sub-string's start position.
 public Object getValue() 
    Computes the sub-string.
 public  void setEllipsis(String ellipsis) 
    Defines the ellipsis-text that indicates partial values.
 public  void setField(String field) 
    Defines the name of the datarow-column from where to read the string value.
 public  void setLength(int length) 
    Defines the sub-string's length. The length cannot be negative.
 public  void setStart(int start) 
    Defines the sub-string's start position. The start position cannot be negative.