public class PropertyValidateFacetDefault extends FacetAbstract implements PropertyValidateFacet
FacetAbstract.Derivation, FacetAbstract.Disabling, FacetAbstract.Hiding, FacetAbstract.ValidatingNOOP| Constructor and Description |
|---|
PropertyValidateFacetDefault(FacetHolder holder) |
| Modifier and Type | Method and Description |
|---|---|
String |
invalidates(ValidityContext<? extends org.apache.isis.applib.events.ValidityEvent> ic)
Whether the validation represented by this facet passes or fails.
|
String |
invalidReason(ObjectAdapter target,
ObjectAdapter proposedValue)
The reason why the proposed value is invalid.
|
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 PropertyValidateFacetDefault(FacetHolder holder)
public String invalidates(ValidityContext<? extends org.apache.isis.applib.events.ValidityEvent> ic)
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 ValidatingInteractionAdvisorpublic String invalidReason(ObjectAdapter target, ObjectAdapter proposedValue)
PropertyValidateFacetShould return null if the value is in fact valid.
invalidReason in interface PropertyValidateFacetCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.