org.pentaho.reporting.engine.classic.core.function.strings
Class TokenizeStringExpression

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.function.AbstractExpression
      extended by org.pentaho.reporting.engine.classic.core.function.strings.TokenizeStringExpression
All Implemented Interfaces:
Serializable, Cloneable, Expression

Deprecated. Use a formula: "prefix & SUBSTITUTE(field, delimeter, replacement) & suffix"

public class TokenizeStringExpression
extends AbstractExpression

Tokenizes a string and replaces all occurences of the delimeter with the value given in replacement. An optional prefix and suffix can be appended to the string.

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
TokenizeStringExpression()
          Deprecated. Default Constructor.
 
Method Summary
 String getDelimeter()
          Deprecated. Returns the delimeter string.
 String getField()
          Deprecated. Returns the name of the datarow-column from where to read the string value.
 String getPrefix()
          Deprecated. Returns the prefix text.
 String getReplacement()
          Deprecated. Returns the replacement for the delimter.
 String getSuffix()
          Deprecated. Returns the suffix text.
 Object getValue()
          Deprecated. Computes the tokenized string.
 void setDelimeter(String delimeter)
          Deprecated. Defines the delimeter string.
 void setField(String field)
          Deprecated. Defines the name of the datarow-column from where to read the string value.
 void setPrefix(String prefix)
          Deprecated. Defines the prefix text.
 void setReplacement(String replacement)
          Deprecated. Defines the replacement for the delimter.
 void setSuffix(String suffix)
          Deprecated. Defines the suffix text.
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractExpression
clone, getDataRow, getDependencyLevel, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenizeStringExpression

public TokenizeStringExpression()
Deprecated. 
Default Constructor.

Method Detail

getField

public String getField()
Deprecated. 
Returns the name of the datarow-column from where to read the string value.

Returns:
the field.

setField

public void setField(String field)
Deprecated. 
Defines the name of the datarow-column from where to read the string value.

Parameters:
field - the field.

getDelimeter

public String getDelimeter()
Deprecated. 
Returns the delimeter string.

Returns:
the delimeter.

setDelimeter

public void setDelimeter(String delimeter)
Deprecated. 
Defines the delimeter string.

Parameters:
delimeter - the delimeter.

getReplacement

public String getReplacement()
Deprecated. 
Returns the replacement for the delimter.

Returns:
the replacement text.

setReplacement

public void setReplacement(String replacement)
Deprecated. 
Defines the replacement for the delimter.

Parameters:
replacement - the replacement text.

getPrefix

public String getPrefix()
Deprecated. 
Returns the prefix text.

Returns:
the prefix text.

setPrefix

public void setPrefix(String prefix)
Deprecated. 
Defines the prefix text.

Parameters:
prefix - the prefix text.

getSuffix

public String getSuffix()
Deprecated. 
Returns the suffix text.

Returns:
the suffix text.

setSuffix

public void setSuffix(String suffix)
Deprecated. 
Defines the suffix text.

Parameters:
suffix - the suffix text.

getValue

public Object getValue()
Deprecated. 
Computes the tokenized string. Replaces

Returns:
the value of the function.