|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.contract.descriptor.Descriptor org.apache.commons.contract.descriptor.ParameterDescriptor
public class ParameterDescriptor
Field Summary | |
---|---|
protected Constraints |
constraints
|
protected Object |
defaultValue
|
static ParameterDescriptor[] |
NO_PARAMETERS
|
protected boolean |
required
|
Fields inherited from class org.apache.commons.contract.descriptor.Descriptor |
---|
description, name |
Constructor Summary | |
---|---|
ParameterDescriptor(String name,
ParameterBundle description,
Constraints valueDescriptor)
|
|
ParameterDescriptor(String name,
ParameterBundle description,
Constraints valueDescriptor,
Object defaultValue)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
Constraints |
getConstraints()
|
Object |
getDefaultValue()
|
boolean |
isRequired()
|
void |
setConstraints(Constraints valueDescriptor)
|
void |
setDefaultValue(Object defaultValue)
|
Methods inherited from class org.apache.commons.contract.descriptor.Descriptor |
---|
getDescription, getName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ParameterDescriptor[] NO_PARAMETERS
protected Constraints constraints
protected Object defaultValue
protected boolean required
Constructor Detail |
---|
public ParameterDescriptor(String name, ParameterBundle description, Constraints valueDescriptor)
public ParameterDescriptor(String name, ParameterBundle description, Constraints valueDescriptor, Object defaultValue)
Method Detail |
---|
public boolean isRequired()
public void setConstraints(Constraints valueDescriptor)
public Constraints getConstraints()
public void setDefaultValue(Object defaultValue)
public Object getDefaultValue()
public boolean equals(Object o)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |