it.eng.spagobi.commons.utilities
Class ParameterValuesDecoder

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

public class ParameterValuesDecoder
extends java.lang.Object

Author:
Gioia

Field Summary
static java.lang.String DEFAULT_CLOSE_BLOCK_MARKER
           
static java.lang.String DEFAULT_OPEN_BLOCK_MARKER
           
 
Constructor Summary
ParameterValuesDecoder()
          Instantiates a new parameter values decoder.
ParameterValuesDecoder(java.lang.String openBlockMarker, java.lang.String closeBlockMarker)
          Instantiates a new parameter values decoder.
 
Method Summary
 java.util.List decode(java.lang.String value)
          Decode.
 java.lang.String getCloseBlockMarker()
          Gets the close block marker.
 java.lang.String getOpenBlockMarker()
          Gets the open block marker.
 boolean isMultiValues(java.lang.String value)
          Checks if is multi values.
static void main(java.lang.String[] args)
          Just for test purpose ;-).
 void setCloseBlockMarker(java.lang.String closeBlockMarker)
          Sets the close block marker.
 void setOpenBlockMarker(java.lang.String openBlockMarker)
          Sets the open block marker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

ParameterValuesDecoder

public ParameterValuesDecoder()
Instantiates a new parameter values decoder.


ParameterValuesDecoder

public ParameterValuesDecoder(java.lang.String openBlockMarker,
                              java.lang.String closeBlockMarker)
Instantiates a new parameter values decoder.

Parameters:
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

isMultiValues

public boolean isMultiValues(java.lang.String value)
Checks if is multi values.

Parameters:
value - the value
Returns:
true, if is multi values

decode

public java.util.List decode(java.lang.String value)
Decode.

Parameters:
value - the value
Returns:
the list

main

public static void main(java.lang.String[] args)
Just for test purpose ;-).

Parameters:
args - the args