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

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

Deprecated. This can be replaced by a formula.

public class URLEncodeExpression
extends AbstractExpression

Performs an URL encoding on the value read from the given field. As the URL-encoding schema is a binary encoding, a real character encoding must be given as well. If not defined otherwise, ISO-8859-1 is used.

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
URLEncodeExpression()
          Deprecated. Default Constructor.
 
Method Summary
 String getEncoding()
          Deprecated. Returns the defined character encoding that is used to transform the Java-Unicode strings into bytes.
 String getField()
          Deprecated. Returns the name of the datarow-column from where to read the string value.
 Object getValue()
          Deprecated. Encodes the value read from the defined field.
 void setEncoding(String encoding)
          Deprecated. Defines the character encoding that is used to transform the Java-Unicode strings into bytes.
 void setField(String field)
          Deprecated. Defines the name of the datarow-column from where to read the string value.
 
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

URLEncodeExpression

public URLEncodeExpression()
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.

getEncoding

public String getEncoding()
Deprecated. 
Returns the defined character encoding that is used to transform the Java-Unicode strings into bytes.

Returns:
the encoding.

setEncoding

public void setEncoding(String encoding)
Deprecated. 
Defines the character encoding that is used to transform the Java-Unicode strings into bytes.

Parameters:
encoding - the encoding.

getValue

public Object getValue()
Deprecated. 
Encodes the value read from the defined field. The value is converted to a string using the "toString" method.

Returns:
the value of the function.