org.hibernate.validator.internal.metadata.raw
Class BeanConfiguration<T>
java.lang.Object
org.hibernate.validator.internal.metadata.raw.BeanConfiguration<T>
public class BeanConfiguration<T>
- extends Object
Represents the complete constraint related configuration of one Java type
originating from one ConfigurationSource. Contains meta-data on
constraints (field, method and class level) as well as meta data on default
group sequences.
- Author:
- Gunnar Morling
BeanConfiguration
public BeanConfiguration(ConfigurationSource source,
Class<T> beanClass,
Set<? extends ConstrainedElement> constrainedElements,
List<Class<?>> defaultGroupSequence,
DefaultGroupSequenceProvider<? super T> defaultGroupSequenceProvider)
- Creates a new bean configuration.
- Parameters:
source - The source of this configuration.beanClass - The type represented by this configuration.constrainedElements - The constraint elements representing this type's fields,
methods etc.defaultGroupSequence - The default group sequence for the given type as configured by
the given configuration source.defaultGroupSequenceProvider - The default group sequence provider for the given type as
configured by the given configuration source.
getSource
public ConfigurationSource getSource()
getBeanClass
public Class<T> getBeanClass()
getConstrainedElements
public Set<ConstrainedElement> getConstrainedElements()
getDefaultGroupSequence
public List<Class<?>> getDefaultGroupSequence()
getDefaultGroupSequenceProvider
public DefaultGroupSequenceProvider<? super T> getDefaultGroupSequenceProvider()
toString
public String toString()
- Overrides:
toString in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2012 Oracle Corporation. All Rights Reserved.