public interface ValidateObjectFacet extends Facet, ValidatingInteractionAdvisor
Even though all the properties of an object may themselves be valid, there could be inter-property dependencies which are invalid. For example fromDate > toDate would probably represent an invalid state.
In the standard Apache Isis Programming Model, typically corresponds to the validate method.
PersistingCallbackFacet,
UpdatingCallbackFacetNOOP| Modifier and Type | Method and Description |
|---|---|
String |
invalidReason(ObjectAdapter adapter)
The reason the object is invalid.
|
invalidatesalwaysReplace, facetType, getFacetHolder, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacetString invalidReason(ObjectAdapter adapter)
. If the object is actually valid, should return null.
Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.