public class UUIDValueSemanticsProvider extends ValueSemanticsProviderAndFacetAbstract<UUID> implements UUIDValueFacet
ValueSemanticsProviderAndFacetAbstract.EqualByContent, ValueSemanticsProviderAndFacetAbstract.ImmutabilityFacetAbstract.Derivation, FacetAbstract.Disabling, FacetAbstract.Hiding, FacetAbstract.Validating| Modifier and Type | Field and Description |
|---|---|
static int |
TYPICAL_LENGTH |
| Constructor and Description |
|---|
UUIDValueSemanticsProvider()
Required because implementation of
Parser and
EncoderDecoder. |
UUIDValueSemanticsProvider(FacetHolder holder,
IsisConfiguration configuration,
ValueSemanticsProviderContext context) |
| Modifier and Type | Method and Description |
|---|---|
ObjectAdapter |
createValue(UUID value) |
protected String |
doEncode(Object object)
Hook method to perform the actual encoding.
|
protected UUID |
doParse(Object context,
String entry) |
protected UUID |
doRestore(String data)
Hook method to perform the actual restoring.
|
String |
titleString(Object object,
org.apache.isis.applib.profiles.Localization localization)
Return a string representation of aforesaid object.
|
String |
titleStringWithMask(Object object,
String usingMask) |
String |
toString() |
static Class<? extends Facet> |
type() |
UUID |
uuidValue(ObjectAdapter object) |
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 TYPICAL_LENGTH
public UUIDValueSemanticsProvider()
Parser and
EncoderDecoder.public UUIDValueSemanticsProvider(FacetHolder holder, IsisConfiguration configuration, ValueSemanticsProviderContext context)
protected UUID doParse(Object context, String entry)
doParse in class ValueSemanticsProviderAndFacetAbstract<UUID>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<UUID>public String titleStringWithMask(Object object, String usingMask)
titleStringWithMask in class ValueSemanticsProviderAndFacetAbstract<UUID>protected String doEncode(Object object)
ValueSemanticsProviderAndFacetAbstractdoEncode in class ValueSemanticsProviderAndFacetAbstract<UUID>protected UUID doRestore(String data)
ValueSemanticsProviderAndFacetAbstractdoRestore in class ValueSemanticsProviderAndFacetAbstract<UUID>public UUID uuidValue(ObjectAdapter object)
uuidValue in interface UUIDValueFacetpublic ObjectAdapter createValue(UUID value)
createValue in interface UUIDValueFacetpublic String toString()
toString in class FacetAbstractCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.