org.nakedobjects.metamodel.facets.propparam.validate.maxlength
Interface MaxLengthFacet

All Superinterfaces:
Facet, InteractionAdvisor, InteractionAdvisorFacet, SingleIntValueFacet, ValidatingInteractionAdvisor
All Known Implementing Classes:
MaxLengthFacetAbstract, MaxLengthFacetAnnotation, MaxLengthFacetUnlimited

public interface MaxLengthFacet
extends SingleIntValueFacet, ValidatingInteractionAdvisor

Whether the (string) property or a parameter's length must not exceed a certain length.

In the standard Naked Objects Programming Model, corresponds to the @MaxLength annotation.


Field Summary
 
Fields inherited from interface org.nakedobjects.metamodel.consent.InteractionAdvisorFacet
NOOP
 
Method Summary
 boolean exceeds(NakedObject nakedObject)
          Whether the provided string exceeds the maximum length.
 
Methods inherited from interface org.nakedobjects.metamodel.facets.SingleIntValueFacet
value
 
Methods inherited from interface org.nakedobjects.metamodel.interactions.ValidatingInteractionAdvisor
invalidates
 
Methods inherited from interface org.nakedobjects.metamodel.facets.Facet
alwaysReplace, facetType, getFacetHolder, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacet
 

Method Detail

exceeds

boolean exceeds(NakedObject nakedObject)
Whether the provided string exceeds the maximum length.



Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.