|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.validator.internal.metadata.aggregated.AbstractConstraintMetaData
public abstract class AbstractConstraintMetaData
Base implementation for ConstraintMetaData with attributes common
to all type of meta data.
| Constructor Summary | |
|---|---|
AbstractConstraintMetaData(String name,
Type type,
Set<MetaConstraint<?>> constraints,
ElementKind constrainedMetaDataKind,
boolean isCascading,
boolean isConstrained)
|
|
| Method Summary | |
|---|---|
protected Set<ConstraintDescriptorImpl<?>> |
asDescriptors(Set<MetaConstraint<?>> constraints)
|
boolean |
equals(Object obj)
|
Set<MetaConstraint<?>> |
getConstraints()
|
ElementKind |
getKind()
Returns the kind of this meta data object. |
String |
getName()
Returns the name of this meta data object. |
Type |
getType()
Returns the data type of this meta data object, e.g. |
int |
hashCode()
|
boolean |
isCascading()
Whether this meta data object is marked for cascaded validation or not. |
boolean |
isConstrained()
Whether this meta data object is constrained by any means or not. |
Iterator<MetaConstraint<?>> |
iterator()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.hibernate.validator.internal.metadata.aggregated.ConstraintMetaData |
|---|
asDescriptor |
| Constructor Detail |
|---|
public AbstractConstraintMetaData(String name,
Type type,
Set<MetaConstraint<?>> constraints,
ElementKind constrainedMetaDataKind,
boolean isCascading,
boolean isConstrained)
name - the name of the constrained property, method or parametertype - the type of the constrained elementconstraints - the set of constraintsconstrainedMetaDataKind - the type of constraint - property, method or parameter constraintisCascading - should cascading constraints be evaluated. Returns true is the constrained element
is marked for cascaded validation (@Valid), false otherwise.isConstrained - returns true is there are direct constraints defined on this element or it is
marked for cascaded validation, false otherwise.| Method Detail |
|---|
public String getName()
ConstraintMetaData
getName in interface ConstraintMetaDatapublic Type getType()
ConstraintMetaData
getType in interface ConstraintMetaDatapublic Iterator<MetaConstraint<?>> iterator()
iterator in interface Iterable<MetaConstraint<?>>public Set<MetaConstraint<?>> getConstraints()
public ElementKind getKind()
ConstraintMetaDatakind of this meta data object.
getKind in interface ConstraintMetaDatakind of this meta data object.public boolean isCascading()
ConstraintMetaData
isCascading in interface ConstraintMetaDataTrue if this object is marked for cascaded validation, false otherwise.public boolean isConstrained()
ConstraintMetaData
isConstrained in interface ConstraintMetaDataTrue if this object is marked for cascaded validation or has any constraints, false otherwise.public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectprotected Set<ConstraintDescriptorImpl<?>> asDescriptors(Set<MetaConstraint<?>> constraints)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||