public abstract class MandatoryFacetAbstract extends MarkerFacetAbstract implements MandatoryFacet
| Modifier and Type | Class and Description |
|---|---|
static class |
MandatoryFacetAbstract.Semantics |
FacetAbstract.Derivation, FacetAbstract.Disabling, FacetAbstract.Hiding, FacetAbstract.ValidatingNOOP| Constructor and Description |
|---|
MandatoryFacetAbstract(FacetHolder holder,
MandatoryFacetAbstract.Semantics semantics) |
| Modifier and Type | Method and Description |
|---|---|
String |
invalidates(ValidityContext<? extends org.apache.isis.applib.events.ValidityEvent> context)
Whether the validation represented by this facet passes or fails.
|
boolean |
isInvertedSemantics()
Indicates that the implementation is overridding the usual semantics, in
other words that the
FacetHolder to which this Facet is
attached is not mandatory. |
boolean |
isRequiredButNull(ObjectAdapter adapter)
If not specified or, if a string, then zero length.
|
static Class<? extends Facet> |
type() |
alwaysReplace, facetType, getFacetHolder, getIdentified, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacet, toString, toStringValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitalwaysReplace, facetType, getFacetHolder, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacetpublic MandatoryFacetAbstract(FacetHolder holder, MandatoryFacetAbstract.Semantics semantics)
public final boolean isRequiredButNull(ObjectAdapter adapter)
isRequiredButNull in interface MandatoryFacetpublic boolean isInvertedSemantics()
MandatoryFacetFacetHolder to which this Facet is
attached is not mandatory.isInvertedSemantics in interface MandatoryFacetpublic 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 ValidatingInteractionAdvisorCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.