org.apache.commons.contract.constraints
Class ArrayConstraints

java.lang.Object
  extended by org.apache.commons.contract.constraints.ArrayConstraints
All Implemented Interfaces:
Castable, Constraints, Validatable

public class ArrayConstraints
extends Object
implements Constraints


Field Summary
protected  Constraints entryValueDescriptor
           
static ArrayConstraints UNCONSTRAINED
           
 
Constructor Summary
ArrayConstraints()
           
ArrayConstraints(Constraints entryValueDescriptor)
           
 
Method Summary
 Object cast(Object value, Context context)
           
 Constraints getEntryValueDescriptor()
           
 void setEntryValueDescriptor(Constraints entryValueDescriptor)
           
 void validate(Object value, Context context)
           
 org.apache.commons.i18n.bundles.TextBundle verboseConstraints()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNCONSTRAINED

public static final ArrayConstraints UNCONSTRAINED

entryValueDescriptor

protected Constraints entryValueDescriptor
Constructor Detail

ArrayConstraints

public ArrayConstraints()

ArrayConstraints

public ArrayConstraints(Constraints entryValueDescriptor)
Method Detail

setEntryValueDescriptor

public void setEntryValueDescriptor(Constraints entryValueDescriptor)

getEntryValueDescriptor

public Constraints getEntryValueDescriptor()

cast

public Object cast(Object value,
                   Context context)
            throws CastException
Specified by:
cast in interface Castable
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.