com.sap.dictionary.runtime
Interface IUnitService
- public interface IUnitService
|
Method Summary |
java.lang.String |
format(java.lang.String unitKey,
java.lang.Object value)
Formats a value of type Object according to the unitKey
to produce a string. |
java.lang.Object |
parse(java.lang.String unitKey,
java.lang.String text)
Returns an instance of Object with a value matching the given string,
including normalizing and unitKey information |
java.lang.String |
toString(java.lang.String unitKey,
java.lang.Object obj)
Formats a value of type Object according to the unitKey
to produce a string.
|
java.lang.Object |
valueOf(java.lang.String unitKey,
java.lang.String text)
Returns an instance of Object with a value matching the given string,
including normalizing and unitKey information
Operation is language independent, Locale xml is used. |
format
public java.lang.String format(java.lang.String unitKey,
java.lang.Object value)
throws com.sap.dictionary.runtime.DdException
- Formats a value of type Object according to the unitKey
to produce a string.
- Parameters:
value - - The value to format- Returns:
- the value passed in as the result string
parse
public java.lang.Object parse(java.lang.String unitKey,
java.lang.String text)
throws java.text.ParseException
- Returns an instance of Object with a value matching the given string,
including normalizing and unitKey information
- Parameters:
value - - the string to be parsed- Returns:
- the parsed value, or ParseException if the parse fails
- See Also:
com.sap.dictionary.runtime.IDictionary#getUnitService()
toString
public java.lang.String toString(java.lang.String unitKey,
java.lang.Object obj)
throws com.sap.dictionary.runtime.DdException
- Formats a value of type Object according to the unitKey
to produce a string.
Operation is language independent, Locale xml is used.
- Parameters:
value - - The value to format- Returns:
- the value passed in as the result string
valueOf
public java.lang.Object valueOf(java.lang.String unitKey,
java.lang.String text)
throws java.text.ParseException
- Returns an instance of Object with a value matching the given string,
including normalizing and unitKey information
Operation is language independent, Locale xml is used.
- Parameters:
value - - the string to be parsed- Returns:
- the parsed value, or ParseException if the parse fails
- See Also:
com.sap.dictionary.runtime.IDictionary#getUnitService()
Copyright © 2005 SAP AG. All Rights Reserved.