public abstract class ParseableFacetAbstract extends FacetAbstract implements ParseableFacet
FacetAbstract.Derivation, FacetAbstract.Disabling, FacetAbstract.Hiding, FacetAbstract.Validating| Constructor and Description |
|---|
ParseableFacetAbstract(String candidateParserName,
Class<?> candidateParserClass,
FacetHolder holder,
DeploymentCategory deploymentCategory,
AuthenticationSessionProvider authenticationSessionProvider,
ServicesInjector dependencyInjector,
AdapterManager adapterManager) |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getParserClass()
Guaranteed to implement the
Parser class, thanks to generics in
the applib. |
boolean |
isValid()
Discover whether either of the candidate parser name or class is valid.
|
String |
parseableTitle(ObjectAdapter existing)
A title for the object that is valid but which may be easier to edit than
the title provided by a
TitleFacet. |
ObjectAdapter |
parseTextEntry(ObjectAdapter original,
String entryText,
org.apache.isis.applib.profiles.Localization localization)
Parses a text entry made by a user and sets the domain object's value.
|
protected String |
toStringValues() |
alwaysReplace, facetType, getFacetHolder, getIdentified, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacet, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitalwaysReplace, facetType, getFacetHolder, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacetpublic ParseableFacetAbstract(String candidateParserName, Class<?> candidateParserClass, FacetHolder holder, DeploymentCategory deploymentCategory, AuthenticationSessionProvider authenticationSessionProvider, ServicesInjector dependencyInjector, AdapterManager adapterManager)
public boolean isValid()
public Class<?> getParserClass()
Parser class, thanks to generics in
the applib.protected String toStringValues()
toStringValues in class FacetAbstractpublic ObjectAdapter parseTextEntry(ObjectAdapter original, String entryText, org.apache.isis.applib.profiles.Localization localization)
ParseableFacetEquivalent to Parser#parseTextEntry(Object, String), though may be implemented through some other mechanism.
parseTextEntry in interface ParseableFacetlocalization - TODOpublic String parseableTitle(ObjectAdapter existing)
ParseableFacetTitleFacet.
The idea here is that the viewer can display a parseable title for an
existing object when, for example, the user initially clicks in the
field. So, a date might be rendered via a TitleFacet as
May 2, 2007, but its parseable form might be 20070502.
parseableTitle in interface ParseableFacetCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.