org.apache.commons.contract.constraints
Class MapConstraints
java.lang.Object
org.apache.commons.contract.constraints.MapConstraints
- All Implemented Interfaces:
- Castable, Constraints, Validatable
public class MapConstraints
- extends Object
- implements Constraints
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNCONSTRAINED
public static final MapConstraints UNCONSTRAINED
ALL
public static final String ALL
- See Also:
- Constant Field Values
entryConstraints
protected List entryConstraints
MapConstraints
public MapConstraints()
MapConstraints
public MapConstraints(List entryDescriptors)
MapConstraints
public MapConstraints(ParameterDescriptor parameterDescriptor)
MapConstraints
public MapConstraints(ParameterDescriptor[] parameterDescriptors)
addEntryDescriptor
public void addEntryDescriptor(ParameterDescriptor parameterDescriptor)
getEntryDescriptors
public List getEntryDescriptors()
cast
public Object cast(Object value,
Context context)
throws CastException
- Specified by:
cast
in interface Castable
- Throws:
CastException
castedMap
protected Map castedMap(Map map,
Context context)
throws CastException
- Throws:
CastException
validate
public void validate(Object value,
Context context)
throws ValidationException
- Specified by:
validate
in interface Validatable
- Throws:
ValidationException
verboseConstraints
public org.apache.commons.i18n.bundles.TextBundle verboseConstraints()
- Specified by:
verboseConstraints
in interface Constraints
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.