public interface MandatoryFacet extends MarkerFacet, ValidatingInteractionAdvisor
For a mandatory property, the object cannot be saved/updated without the value being provided. For a mandatory parameter, the action cannot be invoked without the value being provided.
In the standard Apache Isis Programming Model, specify mandatory by omitting the @Optional annotation.
NOOP| Modifier and Type | Method and Description |
|---|---|
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)
Whether this value is required but has not been provided (and is
therefore invalid).
|
invalidatesalwaysReplace, facetType, getFacetHolder, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacetboolean isRequiredButNull(ObjectAdapter adapter)
If the value has been provided, or if the property or parameter is not required, then will return false.
boolean isInvertedSemantics()
FacetHolder to which this Facet is
attached is not mandatory.Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.