public interface ICdmFormatter
ICdmFormatter.FormatKey
enum.Modifier and Type | Interface and Description |
---|---|
static class |
ICdmFormatter.FormatKey |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(java.lang.Object object)
Returns a string representation of the given object.
Note: Only use this method if the formatKeys for this ICdmFormatter have been set before. |
java.lang.String |
format(java.lang.Object object,
ICdmFormatter.FormatKey... formatKeys)
Returns a string representation of the given object.
The is built according to the formatKeys passed as arguments. E.g. |
java.lang.String format(java.lang.Object object, ICdmFormatter.FormatKey... formatKeys)
format(derivedUnit, GATHERING_COUNTRY, COMMA, GATHERING_COLLECTOR, COMMA, OPEN_BRACKET, COLLECTION_CODE, CLOSE_BRACKET
will result in something like Peru, L. (B)
Note:object
- the object which should be formatted as a string representationformatKeys
- a list of enum values specifying the parts of which the string consistsjava.lang.UnsupportedOperationException
- if the format operation
is not supported by this formatterjava.lang.String format(java.lang.Object object)
object
- the object which should be formatted as a string representationCopyright © 2007-2020 EDIT. All Rights Reserved.