public class BigDecimalValueSemanticsProvider extends ValueSemanticsProviderAndFacetAbstract<BigDecimal> implements BigDecimalValueFacet
ValueSemanticsProviderAndFacetAbstract.EqualByContent, ValueSemanticsProviderAndFacetAbstract.ImmutabilityFacetAbstract.Derivation, FacetAbstract.Disabling, FacetAbstract.Hiding, FacetAbstract.Validating| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_LENGTH |
static int |
DEFAULT_SCALE |
| Constructor and Description |
|---|
BigDecimalValueSemanticsProvider()
Required because implementation of
Parser and
EncoderDecoder. |
BigDecimalValueSemanticsProvider(FacetHolder holder,
IsisConfiguration configuration,
ValueSemanticsProviderContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
doEncode(Object object)
Hook method to perform the actual encoding.
|
protected BigDecimal |
doParse(Object context,
String entry) |
protected BigDecimal |
doRestore(String data)
Hook method to perform the actual restoring.
|
Integer |
getLength()
Deprecated.
|
Integer |
getPrecision()
Maximum length of digits for this decimal (in other words, its precision).
|
Integer |
getScale()
The number of digits to the right of the decimal place (fractional part) for this decimal.
|
void |
setLocale(Locale l) |
String |
titleString(Object object,
org.apache.isis.applib.profiles.Localization localization)
Return a string representation of aforesaid object.
|
String |
titleStringWithMask(Object value,
String usingMask) |
String |
toString() |
alwaysReplace, createAdapter, determineNumberFormat, displayTitleOf, displayTitleOf, doParse, fromEncodedString, getAdaptedClass, getAdapterManager, getAuthenticationSessionProvider, getClock, getConfiguration, getContext, getDefaultsProvider, getDefaultValue, getDependencyInjector, getEncoderDecoder, getParser, getSpecification, getSpecificationLookup, isEqualByContent, isImmutable, parseableTitleOf, parseTextEntry, titleString, toEncodedString, typicalLengthfacetType, getFacetHolder, getIdentified, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacet, toStringValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitalwaysReplace, facetType, getFacetHolder, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacetpublic static final int DEFAULT_LENGTH
public static final int DEFAULT_SCALE
public BigDecimalValueSemanticsProvider()
Parser and
EncoderDecoder.public BigDecimalValueSemanticsProvider(FacetHolder holder, IsisConfiguration configuration, ValueSemanticsProviderContext context)
@Deprecated public Integer getLength()
BigDecimalValueFacetBigDecimalValueFacet.getPrecision().getLength in interface BigDecimalValueFacetpublic Integer getPrecision()
BigDecimalValueFacetFor example:
getPrecision in interface BigDecimalValueFacetpublic Integer getScale()
BigDecimalValueFacetFor example:
getScale in interface BigDecimalValueFacetprotected BigDecimal doParse(Object context, String entry)
doParse in class ValueSemanticsProviderAndFacetAbstract<BigDecimal>context - - the underlying object, or null.entry - - the proposed new object, as a string representation to be
parsedpublic String titleString(Object object, org.apache.isis.applib.profiles.Localization localization)
ValueSemanticsProviderAndFacetAbstracttitleString in class ValueSemanticsProviderAndFacetAbstract<BigDecimal>public String titleStringWithMask(Object value, String usingMask)
titleStringWithMask in class ValueSemanticsProviderAndFacetAbstract<BigDecimal>protected String doEncode(Object object)
ValueSemanticsProviderAndFacetAbstractdoEncode in class ValueSemanticsProviderAndFacetAbstract<BigDecimal>protected BigDecimal doRestore(String data)
ValueSemanticsProviderAndFacetAbstractdoRestore in class ValueSemanticsProviderAndFacetAbstract<BigDecimal>public String toString()
toString in class FacetAbstractCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.