public abstract class MaxLengthFacetAbstract extends SingleIntValueFacetAbstract implements MaxLengthFacet
FacetAbstract.Derivation, FacetAbstract.Disabling, FacetAbstract.Hiding, FacetAbstract.ValidatingNOOP| Constructor and Description |
|---|
MaxLengthFacetAbstract(int value,
FacetHolder holder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exceeds(ObjectAdapter adapter)
Whether the provided argument exceeds the
maximum length
. |
String |
invalidates(ValidityContext<? extends org.apache.isis.applib.events.ValidityEvent> context)
Whether the validation represented by this facet passes or fails.
|
protected String |
toStringValues() |
static Class<? extends Facet> |
type() |
valuealwaysReplace, facetType, getFacetHolder, getIdentified, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacet, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitvaluealwaysReplace, facetType, getFacetHolder, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacetpublic MaxLengthFacetAbstract(int value, FacetHolder holder)
public boolean exceeds(ObjectAdapter adapter)
maximum length
.exceeds in interface MaxLengthFacetpublic String invalidates(ValidityContext<? extends org.apache.isis.applib.events.ValidityEvent> context)
ValidatingInteractionAdvisor
Implementations should use the provided ValidityContext to
determine whether they declare the interaction invalid. They must however
guard against a null target
and session - neither are guaranteed
to be populated.
invalidates in interface ValidatingInteractionAdvisorprotected String toStringValues()
toStringValues in class FacetAbstractCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.