|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.metamodel.facets.FacetAbstract
org.nakedobjects.metamodel.facets.properties.validate.PropertyValidateFacetDefault
public class PropertyValidateFacetDefault
Non checking property validation facet that provides default behaviour for all properties.
| Field Summary |
|---|
| Fields inherited from interface org.nakedobjects.metamodel.consent.InteractionAdvisorFacet |
|---|
NOOP |
| Constructor Summary | |
|---|---|
PropertyValidateFacetDefault(FacetHolder holder)
|
|
| Method Summary | |
|---|---|
java.lang.String |
invalidates(ValidityContext<? extends ValidityEvent> ic)
Whether the validation represented by this facet passes or fails. |
java.lang.String |
invalidReason(NakedObject target,
NakedObject proposedValue)
The reason why the proposed value is invalid. |
| Methods inherited from class org.nakedobjects.metamodel.facets.FacetAbstract |
|---|
alwaysReplace, facetType, getFacetHolder, getIdentified, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacet, toString, toStringValues, unwrapObject, unwrapString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.nakedobjects.metamodel.facets.Facet |
|---|
alwaysReplace, facetType, getFacetHolder, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacet |
| Constructor Detail |
|---|
public PropertyValidateFacetDefault(FacetHolder holder)
| Method Detail |
|---|
public java.lang.String invalidates(ValidityContext<? extends 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 ValidatingInteractionAdvisor
public java.lang.String invalidReason(NakedObject target,
NakedObject proposedValue)
PropertyValidateFacetShould return null if the value is in fact valid.
invalidReason in interface PropertyValidateFacet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||