it.eng.spagobi.commons.utilities
Class ParameterValuesEncoder

java.lang.Object
  extended by it.eng.spagobi.commons.utilities.ParameterValuesEncoder

public class ParameterValuesEncoder
extends java.lang.Object

Author:
Gioia

Field Summary
static java.lang.String DEFAULT_CLOSE_BLOCK_MARKER
           
static java.lang.String DEFAULT_OPEN_BLOCK_MARKER
           
static java.lang.String DEFAULT_SEPARATOR
           
 
Constructor Summary
ParameterValuesEncoder()
          Instantiates a new parameter values encoder.
ParameterValuesEncoder(java.lang.String separator, java.lang.String openBlockMarker, java.lang.String closeBlockMarker)
          Instantiates a new parameter values encoder.
 
Method Summary
 java.lang.String encode(BIObjectParameter biobjPar)
          Encode.
 java.lang.String encodeDescription(BIObjectParameter biobjPar)
          Get the description of a BIObjectParameter and encode it's description..
 java.lang.String getCloseBlockMarker()
          Gets the close block marker.
 java.lang.String getOpenBlockMarker()
          Gets the open block marker.
 java.lang.String getSeparator()
          Gets the separator.
 void setCloseBlockMarker(java.lang.String closeBlockMarker)
          Sets the close block marker.
 void setOpenBlockMarker(java.lang.String openBlockMarker)
          Sets the open block marker.
 void setSeparator(java.lang.String separator)
          Sets the separator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SEPARATOR

public static final java.lang.String DEFAULT_SEPARATOR
See Also:
Constant Field Values

DEFAULT_OPEN_BLOCK_MARKER

public static final java.lang.String DEFAULT_OPEN_BLOCK_MARKER
See Also:
Constant Field Values

DEFAULT_CLOSE_BLOCK_MARKER

public static final java.lang.String DEFAULT_CLOSE_BLOCK_MARKER
See Also:
Constant Field Values
Constructor Detail

ParameterValuesEncoder

public ParameterValuesEncoder()
Instantiates a new parameter values encoder.


ParameterValuesEncoder

public ParameterValuesEncoder(java.lang.String separator,
                              java.lang.String openBlockMarker,
                              java.lang.String closeBlockMarker)
Instantiates a new parameter values encoder.

Parameters:
separator - the separator
openBlockMarker - the open block marker
closeBlockMarker - the close block marker
Method Detail

getCloseBlockMarker

public java.lang.String getCloseBlockMarker()
Gets the close block marker.

Returns:
the close block marker

setCloseBlockMarker

public void setCloseBlockMarker(java.lang.String closeBlockMarker)
Sets the close block marker.

Parameters:
closeBlockMarker - the new close block marker

getOpenBlockMarker

public java.lang.String getOpenBlockMarker()
Gets the open block marker.

Returns:
the open block marker

setOpenBlockMarker

public void setOpenBlockMarker(java.lang.String openBlockMarker)
Sets the open block marker.

Parameters:
openBlockMarker - the new open block marker

getSeparator

public java.lang.String getSeparator()
Gets the separator.

Returns:
the separator

setSeparator

public void setSeparator(java.lang.String separator)
Sets the separator.

Parameters:
separator - the new separator

encode

public java.lang.String encode(BIObjectParameter biobjPar)
Encode.

Parameters:
biobjPar - the biobj par
Returns:
the string

encodeDescription

public java.lang.String encodeDescription(BIObjectParameter biobjPar)
Get the description of a BIObjectParameter and encode it's description.. In this way we create a new parameter with the description of the parameter to pass at the engine

Parameters:
biobjPar - the parameter
Returns:
a string with the encoded description