|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.bval.jsr303.ElementDescriptorImpl
org.apache.bval.jsr303.BeanDescriptorImpl
org.apache.bval.jsr303.extensions.MethodBeanDescriptorImpl
class MethodBeanDescriptorImpl
Description: MethodBeanDescriptor implementation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.validation.metadata.ElementDescriptor |
|---|
ElementDescriptor.ConstraintFinder |
| Field Summary |
|---|
| Fields inherited from class org.apache.bval.jsr303.BeanDescriptorImpl |
|---|
factoryContext |
| Fields inherited from class org.apache.bval.jsr303.ElementDescriptorImpl |
|---|
elementClass, metaBean |
| Constructor Summary | |
|---|---|
protected |
MethodBeanDescriptorImpl(ApacheFactoryContext factoryContext,
MetaBean metaBean)
Create a new MethodBeanDescriptorImpl instance. |
| Method Summary | |
|---|---|
Set<ConstructorDescriptor> |
getConstrainedConstructors()
Get the set of constrained constructors. |
Set<MethodDescriptor> |
getConstrainedMethods()
Get the set of constrained methods. |
ConstructorDescriptor |
getConstraintsForConstructor(Constructor<?> constructor)
Get the constraints that apply to a particular constructor. |
MethodDescriptor |
getConstraintsForMethod(Method method)
Get the constraints that apply to a particular method. |
Map<Constructor<?>,ConstructorDescriptor> |
getConstructorConstraints()
Get the configured constructor constraints. |
Map<Method,MethodDescriptor> |
getMethodConstraints()
Get the configured method constraints. |
void |
putConstructorDescriptor(Constructor<?> cons,
ConstructorDescriptor desc)
Add a ConstructorDescriptor to this
MethodBeanDescriptorImpl. |
void |
putMethodDescriptor(Method method,
MethodDescriptor desc)
Add a MethodDescriptor to this MethodBeanDescriptorImpl. |
void |
setConstructorConstraints(Map<Constructor<?>,ConstructorDescriptor> constructorConstraints)
Set the map of constructor constraints for this bean. |
void |
setMethodConstraints(Map<Method,MethodDescriptor> methodConstraints)
Set the map of method constraints for this bean. |
| Methods inherited from class org.apache.bval.jsr303.BeanDescriptorImpl |
|---|
getConstrainedProperties, getConstraintsForProperty, isBeanConstrained, toString |
| Methods inherited from class org.apache.bval.jsr303.ElementDescriptorImpl |
|---|
findConstraints, getConstraintDescriptors, getConstraintDescriptors, getElementClass, getMetaBean, getMutableConstraintDescriptors, hasConstraints, setConstraintDescriptors |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.validation.metadata.BeanDescriptor |
|---|
getConstrainedProperties, getConstraintsForProperty, isBeanConstrained |
| Methods inherited from interface javax.validation.metadata.ElementDescriptor |
|---|
findConstraints, getConstraintDescriptors, getElementClass, hasConstraints |
| Constructor Detail |
|---|
protected MethodBeanDescriptorImpl(ApacheFactoryContext factoryContext,
MetaBean metaBean)
factoryContext - metaBean - | Method Detail |
|---|
public void setMethodConstraints(Map<Method,MethodDescriptor> methodConstraints)
methodConstraints - public void setConstructorConstraints(Map<Constructor<?>,ConstructorDescriptor> constructorConstraints)
constructorConstraints - public MethodDescriptor getConstraintsForMethod(Method method)
getConstraintsForMethod in interface MethodBeanDescriptorMethodDescriptorpublic ConstructorDescriptor getConstraintsForConstructor(Constructor<?> constructor)
getConstraintsForConstructor in interface MethodBeanDescriptorConstructorDescriptorpublic Set<MethodDescriptor> getConstrainedMethods()
getConstrainedMethods in interface MethodBeanDescriptorSet of MethodDescriptor
public void putMethodDescriptor(Method method,
MethodDescriptor desc)
MethodDescriptor to this MethodBeanDescriptorImpl.
method - desc - public Set<ConstructorDescriptor> getConstrainedConstructors()
getConstrainedConstructors in interface MethodBeanDescriptorSet of ConstructorDescriptor
public void putConstructorDescriptor(Constructor<?> cons,
ConstructorDescriptor desc)
ConstructorDescriptor to this
MethodBeanDescriptorImpl.
cons - desc - public Map<Method,MethodDescriptor> getMethodConstraints()
Map of Method : MethodDescriptorpublic Map<Constructor<?>,ConstructorDescriptor> getConstructorConstraints()
Map of Constructor :
ConstructorDescriptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||