public class IlpMessageFormat extends MessageFormat
java.text.MessageFormat
,
so that it can be parsed by the CSS engine when configuring JTGO.
It defines the getter and setter methods (getPattern
and
setPattern
) for the pattern used for message formatting.
MessageFormat.Field
Constructor and Description |
---|
IlpMessageFormat()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getPattern()
Method to retrieve the current pattern.
|
void |
setPattern(String pattern)
Method to set a new pattern for the format.
|
applyPattern, clone, equals, format, format, format, formatToCharacterIterator, getFormats, getFormatsByArgumentIndex, getLocale, hashCode, parse, parse, parseObject, setFormat, setFormatByArgumentIndex, setFormats, setFormatsByArgumentIndex, setLocale, toPattern
format, parseObject
public IlpMessageFormat()
Creates an empty message format that does nothing to the input text; the
format
method always returns an empty string.
public void setPattern(String pattern)
If the given pattern is null
, nothing will be done; the current
pattern is preserved.
pattern
- The new pattern to be used.public String getPattern()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.