Interface NumberFormatSpecifier
- All Superinterfaces:
org.eclipse.emf.ecore.EObject,FormatSpecifier,IChartObject,org.eclipse.emf.common.notify.Notifier
- All Known Implementing Classes:
NumberFormatSpecifierImpl
A representation of the model object 'Number
Format Specifier'.
NumberFormatSpecifier extends FormatSpecifier
specially for formatting numeric values.
The following features are supported:
-
Method Summary
Modifier and TypeMethodDescriptionformat(double dValue, com.ibm.icu.util.ULocale lo) Formats a value using the internally defined format specifier rulesDeprecated.Returns a formatted string representation of specified number.intReturns the value of the 'Fraction Digits' attribute.doubleReturns the value of the 'Multiplier' attribute.Returns the value of the 'Prefix' attribute.Returns the value of the 'Suffix' attribute.booleanReturns whether the value of the 'Fraction Digits' attribute is set.booleanReturns whether the value of the 'Multiplier' attribute is set.voidsetFractionDigits(int value) Sets the value of the 'Fraction Digits' attribute.voidsetMultiplier(double value) Sets the value of the 'Multiplier' attribute.voidSets the value of the 'Prefix' attribute.voidSets the value of the 'Suffix' attribute.voidUnsets the value of the 'Fraction Digits' attribute.voidUnsets the value of the 'Multiplier' attribute.Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getPrefix
String getPrefix()Returns the value of the 'Prefix' attribute. Attribute "Prefix" specifies the prefix of the output text.- Returns:
- the value of the 'Prefix' attribute.
- See Also:
-
setPrefix
Sets the value of the 'Prefix' attribute.- Parameters:
value- the new value of the 'Prefix' attribute.- See Also:
-
getSuffix
String getSuffix()Returns the value of the 'Suffix' attribute. Attribute "Suffix" specifies the suffix of the output text.- Returns:
- the value of the 'Suffix' attribute.
- See Also:
-
setSuffix
Sets the value of the 'Suffix' attribute.- Parameters:
value- the new value of the 'Suffix' attribute.- See Also:
-
getMultiplier
double getMultiplier()Returns the value of the 'Multiplier' attribute. Specifies the multiplier.- Returns:
- the value of the 'Multiplier' attribute.
- See Also:
-
setMultiplier
void setMultiplier(double value) Sets the value of the 'Multiplier' attribute.- Parameters:
value- the new value of the 'Multiplier' attribute.- See Also:
-
unsetMultiplier
void unsetMultiplier()Unsets the value of the 'Multiplier' attribute. -
isSetMultiplier
boolean isSetMultiplier()Returns whether the value of the 'Multiplier' attribute is set.- Returns:
- whether the value of the 'Multiplier' attribute is set.
- See Also:
-
getFractionDigits
int getFractionDigits()Returns the value of the 'Fraction Digits' attribute. Defines the number of fractional digits to be shown.- Returns:
- the value of the 'Fraction Digits' attribute.
- See Also:
-
setFractionDigits
void setFractionDigits(int value) Sets the value of the 'Fraction Digits' attribute.- Parameters:
value- the new value of the 'Fraction Digits' attribute.- See Also:
-
unsetFractionDigits
void unsetFractionDigits()Unsets the value of the 'Fraction Digits' attribute. -
isSetFractionDigits
boolean isSetFractionDigits()Returns whether the value of the 'Fraction Digits' attribute is set.- Returns:
- whether the value of the 'Fraction Digits' attribute is set.
- See Also:
-
format
Deprecated.Formats a value using the internally defined format specifier rules- Parameters:
dValue-- Returns:
- A formatted string representation of the numerical value provided
-
format
Formats a value using the internally defined format specifier rules- Parameters:
dValue-- Returns:
- A formatted string representation of the numerical value provided
- Since:
- 2.1
-
format
Returns a formatted string representation of specified number.- Parameters:
number-lo-- Returns:
- Since:
- 2.6
-
copyInstance
NumberFormatSpecifier copyInstance()- Specified by:
copyInstancein interfaceFormatSpecifier- Specified by:
copyInstancein interfaceIChartObject
-