public final class Scheme extends MessageFormat
MessageFormat.Field| Constructor and Description |
|---|
Scheme(StorageManagerFactory factory,
String pattern)
Instantiate the Scheme
|
| Modifier and Type | Method and Description |
|---|---|
String |
format(Object... params)
Applies the parameters to the scheme's pattern.
|
protected Object |
resolveParameter(Object param)
Resolves an object (passed as a parameter) to a value that can be applied in a pattern.
|
String |
toString() |
applyPattern, clone, equals, format, format, format, formatToCharacterIterator, getFormats, getFormatsByArgumentIndex, getLocale, hashCode, parse, parse, parseObject, setFormat, setFormatByArgumentIndex, setFormats, setFormatsByArgumentIndex, setLocale, toPatternformat, parseObjectpublic Scheme(StorageManagerFactory factory, String pattern)
factory - The factory this scheme belongs to.pattern - The pattern to use for the schemeprotected Object resolveParameter(Object param) throws StorageException
param - the object to resolveStorageException - if the object cannot be resolvedpublic String format(Object... params) throws StorageException
params - an array of parameters to apply to the patternStorageException - if one of the passed parameters cannot be resolvedMMBase 1.9-SNAPSHOT - ${javadoctimestamp}