public class FormattedParameters extends Object
Constructor and Description |
---|
FormattedParameters(Map<String,String> parameters)
Constructs a new
FormattedParameters object. |
FormattedParameters(Map<String,String> parameters,
Element dataSection)
Constructs a new
FormattedParameters object. |
FormattedParameters(Map<String,String> parameters,
Element dataSection,
String valueIfEmpty,
String prefixIfNotEmpty,
int maxValueLength)
Constructs a new
FormattedParameters object. |
public FormattedParameters(Map<String,String> parameters)
FormattedParameters
object.parameters
- the parameters, can be null
.public FormattedParameters(Map<String,String> parameters, Element dataSection)
FormattedParameters
object.parameters
- the parameters, can be null
.dataSection
- the data section, can be null
.public FormattedParameters(Map<String,String> parameters, Element dataSection, String valueIfEmpty, String prefixIfNotEmpty, int maxValueLength)
FormattedParameters
object.parameters
- the parameters, can be null
.dataSection
- the data section, can be null
.valueIfEmpty
- the value to return if there is no parameter and no data section, can be null
.prefixIfNotEmpty
- the prefix to add if there is a parameter or a data section, can be null
.maxValueLength
- the maximum of characters to set for the value, if the value is longer
than this limit '...' will be added after the limit.
If the value is -1, no limit will be set.See http://www.xins.org/.