A B C D E F G H I J K M N O P R S T U V

A

AccessStrategy - Class in org.apache.bval.util
Description: abstract class to encapsulate different strategies to get the value of a Property.
AccessStrategy() - Constructor for class org.apache.bval.util.AccessStrategy
 
addError(String, ValidationContext<T>) - Method in interface org.apache.bval.model.ValidationListener
Simple API to add an error reason during validation.
addError(ValidationListener.Error, ValidationContext<T>) - Method in interface org.apache.bval.model.ValidationListener
Alternative method to add a fully initialized ValidationListener.Error object.
addError(String, ValidationContext<T>) - Method in class org.apache.bval.ValidationResults
API to add an error to the validation results.
addError(ValidationListener.Error, ValidationContext<T>) - Method in class org.apache.bval.ValidationResults
API to add an error to the validation results.
addError(String, Object, String) - Method in class org.apache.bval.ValidationResults
Old API to add an error to the validation results when no context is available.
addToOwnerBucket(ValidationListener.Error) - Method in class org.apache.bval.ValidationResults
Add an Error to the property-keyed map of Errors maintained for this Error's owner.
addToReasonBucket(ValidationListener.Error) - Method in class org.apache.bval.ValidationResults
Add an Error to the set of Errors shared by a particular "reason."
addValidation(Validation) - Method in class org.apache.bval.model.FeaturesCapable
Add a validation to this FeaturesCapable.

B

BeanValidationContext<T extends ValidationListener> - Class in org.apache.bval
Description: Context during validation to help the Validation and the BeanValidator do their jobs.
BeanValidationContext(T) - Constructor for class org.apache.bval.BeanValidationContext
Create a new BeanValidationContext instance.
BeanValidationContext(T, Map) - Constructor for class org.apache.bval.BeanValidationContext
Create a new BeanValidationContext instance.
BeanValidator<T extends ValidationListener> - Class in org.apache.bval
Description: Top-Level API-class to validate objects or object-trees.
BeanValidator() - Constructor for class org.apache.bval.BeanValidator
Create a new BeanValidator instance.
BeanValidator(MetaBeanFinder) - Constructor for class org.apache.bval.BeanValidator
Create a new BeanValidator instance.
buildAll() - Method in class org.apache.bval.MetaBeanBuilder
Build beans for all known ids.
builder - Variable in class org.apache.bval.MetaBeanManager
MetaBean builder
buildForClass(Class<?>) - Method in class org.apache.bval.MetaBeanBuilder
Build a MetaBean for the specified class.
buildForId(String) - Method in class org.apache.bval.MetaBeanBuilder
Build a MetaBean for a given id.
buildMetaBean(MetaBean) - Method in class org.apache.bval.IntrospectorMetaBeanFactory
Initialize the specified MetaBean.
buildMetaBean(MetaBean) - Method in interface org.apache.bval.MetaBeanFactory
Initialize the specified MetaBean.
buildMetaProperty(PropertyDescriptor) - Method in class org.apache.bval.IntrospectorMetaBeanFactory
Deprecated. 
buildMetaProperty(PropertyDescriptor, MetaProperty) - Method in class org.apache.bval.IntrospectorMetaBeanFactory
Create a MetaProperty from the specified PropertyDescriptor.
BValVersion - Class in org.apache.bval.util
This class contains version information for BVal.
BValVersion() - Constructor for class org.apache.bval.util.BValVersion
 

C

cache(MetaBean) - Method in class org.apache.bval.MetaBeanCache
Cache the specified MetaBean.
cache - Variable in class org.apache.bval.MetaBeanManager
MetaBean cache
cacheByClass - Variable in class org.apache.bval.MetaBeanCache
Cache keyed by class.
cacheById - Variable in class org.apache.bval.MetaBeanCache
Cache keyed by id.
clear() - Method in class org.apache.bval.MetaBeanCache
Clear the cache.
clone() - Method in class org.apache.bval.model.MetaProperty
collectValidated() - Method in class org.apache.bval.BeanValidationContext
Avoid recursion by recording the current state of this context as having been validated.
collectValidated() - Method in interface org.apache.bval.model.ValidationContext
Avoid recursion by recording the current state of this context as having been validated.
complete - Variable in class org.apache.bval.MetaBeanManager
Complete flag
computeRelatedMetaBean(MetaProperty, String) - Method in class org.apache.bval.MetaBeanManager
Compute a single related MetaBean.
computeRelationships(MetaBean) - Method in class org.apache.bval.MetaBeanManager
Compute all known relationships for beanInfo.
copy() - Method in class org.apache.bval.model.FeaturesCapable
Create a deep copy (copy receiver and copy properties).
copyInto(FeaturesCapable) - Method in class org.apache.bval.model.FeaturesCapable
Copy this FeaturesCapable into another FeaturesCapable instance.
copyInto(FeaturesCapable) - Method in class org.apache.bval.model.MetaBean
Copy this FeaturesCapable into another FeaturesCapable instance.
createContext() - Method in class org.apache.bval.BeanValidator
factory method - overwrite in subclasses
createError(String, Object, String) - Method in class org.apache.bval.ValidationResults
Create an Error object.
createFeaturesMap() - Method in class org.apache.bval.model.FeaturesCapable
Create a features map for this FeaturesCapable object.
createResults() - Method in class org.apache.bval.BeanValidator
factory method - overwrite in subclasses

D

DEFAULT_EMAIL_PATTERN - Static variable in class org.apache.bval.routines.EMailValidationUtils
 
DEFAULT_VALUE - Static variable in interface org.apache.bval.model.Features.Property
INFO: String-representation of a default value
DENIED - Static variable in interface org.apache.bval.model.Features.Property
SECURITY, INFO: Boolean, Field accessible? If false, the field must not be displayed, queried, changed.
determineMetaBean(Validate, Object, ValidationContext<VL>) - Method in class org.apache.bval.BeanValidator
Determine the metabean for the given object.
DOMAIN - Static variable in interface org.apache.bval.model.Features.Bean
INFO: category/domain to which the metaBean belongs to
DynamicMetaBean - Class in org.apache.bval
Description: Dynamic MetaBean subclass.
DynamicMetaBean(MetaBeanFinder) - Constructor for class org.apache.bval.DynamicMetaBean
Create a new DynamicMetaBean instance.
DynaType - Interface in org.apache.bval.model
Description: implementation of a dynamic type.
DynaTypeEnum - Class in org.apache.bval.model
Description: ("artificial" enum with custom values).
DynaTypeEnum(Class<?>) - Constructor for class org.apache.bval.model.DynaTypeEnum
Create a new DynaTypeEnum instance.
DynaTypeEnum(Class<?>, String...) - Constructor for class org.apache.bval.model.DynaTypeEnum
Create a new DynaTypeEnum instance.
DynaTypeEnum.Value - Class in org.apache.bval.model
Represents a single "enum" instance (= the value).
DynaTypeEnum.Value(String) - Constructor for class org.apache.bval.model.DynaTypeEnum.Value
Create a new Value instance.

E

EMailValidationUtils - Class in org.apache.bval.routines
Description: holds the regexp to validate an email address
User: roman.stumm
Date: 17.06.2010
Time: 10:40:59
EMailValidationUtils() - Constructor for class org.apache.bval.routines.EMailValidationUtils
 
ENUM - Static variable in interface org.apache.bval.model.Features.Property
INFO: possible Enum values
equals(Object) - Method in class org.apache.bval.util.FieldAccess
equals(Object) - Method in class org.apache.bval.util.MethodAccess
equals(Object) - Method in class org.apache.bval.util.PropertyAccess

F

Features - Interface in org.apache.bval.model
Description: Contains key of common feature keys used by standard validators etc.
Features.Bean - Interface in org.apache.bval.model
Features of MetaBean
Features.Property - Interface in org.apache.bval.model
Features of MetaProperty
FeaturesCapable - Class in org.apache.bval.model
Description: abstract superclass of meta objects that support a map of features.
FeaturesCapable() - Constructor for class org.apache.bval.model.FeaturesCapable
Create a new FeaturesCapable instance.
FieldAccess - Class in org.apache.bval.util
Description: direct field access strategy.
FieldAccess(Field) - Constructor for class org.apache.bval.util.FieldAccess
Create a new FieldAccess instance.
findAll() - Method in class org.apache.bval.MetaBeanCache
Return all cached MetaBeans by id.
findForClass(Class<?>) - Method in class org.apache.bval.MetaBeanCache
Find the MetaBean for the specified class.
findForClass(Class<?>) - Method in interface org.apache.bval.MetaBeanFinder
Find the MetaBean for the specified class.
findForClass(Class<?>) - Method in class org.apache.bval.MetaBeanManager
Find the MetaBean for the specified class.
findForId(String) - Method in class org.apache.bval.MetaBeanCache
Find a MetaBean with a certain id.
findForId(String) - Method in interface org.apache.bval.MetaBeanFinder
Find a MetaBean with a certain id.
findForId(String) - Method in class org.apache.bval.MetaBeanManager
Find a MetaBean with a certain id.
findLocalClass(String) - Method in class org.apache.bval.MetaBeanBuilder
Find the named class.

G

get(Object) - Method in class org.apache.bval.util.AccessStrategy
Get the value from the given instance.
get(Object) - Method in class org.apache.bval.util.FieldAccess
Get the value from the given instance.
get(Object) - Method in class org.apache.bval.util.IndexedAccess
Get the value from the given instance.
get(Object) - Method in class org.apache.bval.util.KeyedAccess
Get the value from the given instance.
get(Object) - Method in class org.apache.bval.util.MethodAccess
Get the value from the given instance.
get(Object) - Method in class org.apache.bval.util.PropertyAccess
Get the value from the given instance.
getAccess() - Method in class org.apache.bval.BeanValidationContext
Get the current access strategy.
getAccess() - Method in interface org.apache.bval.model.ValidationContext
Get the current access strategy.
getAnnotationValue(Annotation, String) - Static method in class org.apache.bval.util.PrivilegedActions
Return a PrivilegedAction object for clazz.getDeclaredMethod().invoke().
getBean() - Method in class org.apache.bval.BeanValidationContext
Get the bean.
getBean() - Method in interface org.apache.bval.model.ValidationContext
Get the bean.
getBeanClass() - Method in class org.apache.bval.model.MetaBean
Get the beanClass.
getBuilder() - Method in class org.apache.bval.MetaBeanManager
Get the builder used.
getCache() - Method in class org.apache.bval.MetaBeanManager
Get the cache used.
getClass(ClassLoader, String) - Static method in class org.apache.bval.util.PrivilegedActions
Perform AccessController.doPrivileged() action for ClassUtil.getClass()
getClassLoader(Class<?>) - Static method in class org.apache.bval.util.PrivilegedActions
Return a PrivilegeAction object for clazz.getClassloader().
getElementType() - Method in class org.apache.bval.util.AccessStrategy
Get the Java program ElementType used by this AccessStrategy to determine property values.
getElementType() - Method in class org.apache.bval.util.FieldAccess
Get the Java program ElementType used by this AccessStrategy to determine property values.
getElementType() - Method in class org.apache.bval.util.IndexedAccess
Get the Java program ElementType used by this AccessStrategy to determine property values.
getElementType() - Method in class org.apache.bval.util.KeyedAccess
Get the Java program ElementType used by this AccessStrategy to determine property values.
getElementType() - Method in class org.apache.bval.util.MethodAccess
Get the Java program ElementType used by this AccessStrategy to determine property values.
getElementType() - Method in class org.apache.bval.util.PropertyAccess
Get the Java program ElementType used by this AccessStrategy to determine property values.
getEnumConstants() - Method in class org.apache.bval.model.DynaTypeEnum
Get the emulated constants.
getErrorsByOwner() - Method in class org.apache.bval.ValidationResults
Get the map of Errors by owner; key = owner, value = map with:
   key = propertyName, value = list of errors for this owner.propertyName
getErrorsByReason() - Method in class org.apache.bval.ValidationResults
Get the map of Errors by reason; key = reason, value = list of errors for this reason
getFactories() - Method in class org.apache.bval.MetaBeanBuilder
Get the configured set of MetaBeanFactory objects.
getFeature(String) - Method in class org.apache.bval.model.FeaturesCapable
Get the specified feature.
getFeature(String, T) - Method in class org.apache.bval.model.FeaturesCapable
Get the specified feature, returning defaultValue if undeclared.
getFeatures() - Method in class org.apache.bval.model.FeaturesCapable
Get the (live) map of features.
getFinder() - Static method in class org.apache.bval.MetaBeanManagerFactory
global meta bean finder.
getId() - Method in class org.apache.bval.model.MetaBean
Get the id.
getID() - Static method in class org.apache.bval.util.BValVersion
Get the fully-qualified project id.
getJavaElementType(Type) - Static method in class org.apache.bval.util.IndexedAccess
Get the Java element type of a particular container type.
getJavaElementType(Type) - Static method in class org.apache.bval.util.KeyedAccess
Get the Java element type of a particular container type.
getJavaScriptValidations() - Method in class org.apache.bval.model.MetaProperty
Deprecated.  
getJavaType() - Method in class org.apache.bval.util.AccessStrategy
Get the type of the property
getJavaType() - Method in class org.apache.bval.util.FieldAccess
Get the type of the property
getJavaType() - Method in class org.apache.bval.util.IndexedAccess
Get the type of the property
getJavaType() - Method in class org.apache.bval.util.KeyedAccess
Get the type of the property
getJavaType() - Method in class org.apache.bval.util.MethodAccess
Get the type of the property
getJavaType() - Method in class org.apache.bval.util.PropertyAccess
Get the type of the property
getLineSeparator() - Static method in class org.apache.bval.util.PrivilegedActions
Deprecated. 
getListener() - Method in class org.apache.bval.BeanValidationContext
Get the ValidationListener.
getListener() - Method in interface org.apache.bval.model.ValidationContext
Get the ValidationListener.
getMeta() - Method in class org.apache.bval.BeanValidationContext
Depending on whether we have a metaProperty or not, this returns the metaProperty or otherwise the metaBean.
getMetaBean() - Method in class org.apache.bval.BeanValidationContext
Get the model meta-bean.
getMetaBean() - Method in class org.apache.bval.model.MetaProperty
Get the metabean of the target bean (mainly for relationships).
getMetaBean() - Method in interface org.apache.bval.model.ValidationContext
Get the model meta-bean.
getMetaBeanFinder() - Method in class org.apache.bval.BeanValidator
Get the metabean finder associated with this validator.
getMetaProperty() - Method in class org.apache.bval.BeanValidationContext
Get the model meta-property.
getMetaProperty() - Method in interface org.apache.bval.model.ValidationContext
Get the model meta-property.
getName() - Method in class org.apache.bval.model.DynaTypeEnum
Get the name of the enum class.
getName() - Method in class org.apache.bval.model.MetaBean
Get the name.
getName() - Method in class org.apache.bval.model.MetaProperty
Get the name of this property.
getName() - Static method in class org.apache.bval.util.BValVersion
Get the project name.
getOwner() - Method in class org.apache.bval.model.ValidationListener.Error
Get the owner.
getParentMetaBean() - Method in class org.apache.bval.model.MetaProperty
Get the metabean that owns this property (set by MetaBean.putProperty())
getPathSeparator() - Static method in class org.apache.bval.util.PrivilegedActions
Deprecated. 
getProperties() - Method in class org.apache.bval.model.MetaBean
Get the properties.
getProperty(String) - Method in class org.apache.bval.model.MetaBean
Get the specified MetaProperty.
getProperty(String) - Static method in class org.apache.bval.util.PrivilegedActions
Return a PrivilegeAction object for System.getProperty().
getProperty(Object, String) - Static method in class org.apache.bval.util.PropertyAccess
Get a named property from bean.
getPropertyName() - Method in class org.apache.bval.BeanValidationContext
Convenience method to access metaProperty.name
getPropertyName() - Method in interface org.apache.bval.model.ValidationContext
Get the property name.
getPropertyName() - Method in class org.apache.bval.model.ValidationListener.Error
Get the propertyName.
getPropertyName() - Method in class org.apache.bval.util.AccessStrategy
Get a name representative of this property.
getPropertyName() - Method in class org.apache.bval.util.FieldAccess
Get a name representative of this property.
getPropertyName() - Method in class org.apache.bval.util.IndexedAccess
Get a name representative of this property.
getPropertyName() - Method in class org.apache.bval.util.KeyedAccess
Get a name representative of this property.
getPropertyName(Method) - Static method in class org.apache.bval.util.MethodAccess
Process bean properties getter by applying the JavaBean naming conventions.
getPropertyName() - Method in class org.apache.bval.util.MethodAccess
Get a name representative of this property.
getPropertyName() - Method in class org.apache.bval.util.PropertyAccess
Get a name representative of this property.
getPropertyValue() - Method in class org.apache.bval.BeanValidationContext
Get the cached value or access it somehow (via field or method)
you should prefer getPropertyValue(AccessStrategy) instead of this method
getPropertyValue(AccessStrategy) - Method in class org.apache.bval.BeanValidationContext
Get the value by using the given access strategy.
getPropertyValue() - Method in interface org.apache.bval.model.ValidationContext
Get the property value.
getPropertyValue(AccessStrategy) - Method in interface org.apache.bval.model.ValidationContext
Get the value by using the given access strategy.
getRawType() - Method in interface org.apache.bval.model.DynaType
Resolve the type indirection.
getRawType() - Method in class org.apache.bval.model.DynaTypeEnum
Resolve the type indirection.
getReason() - Method in class org.apache.bval.model.ValidationListener.Error
Get the reason.
getRevision() - Static method in class org.apache.bval.util.BValVersion
Get the version control revision number.
getType() - Method in class org.apache.bval.model.MetaProperty
Get the type of this property.
getTypeClass() - Method in class org.apache.bval.model.MetaProperty
Resolve the type of this property to a class.
getValidations() - Method in class org.apache.bval.model.FeaturesCapable
Get any validations set for this FeaturesCapable.
getVersion() - Static method in class org.apache.bval.util.BValVersion
Get the project version number.

H

hasError(Object, String) - Method in class org.apache.bval.ValidationResults
Learn whether bean has any errors keyed to property propertyName.
hasErrorForReason(String) - Method in class org.apache.bval.ValidationResults
Learn whether there is an Error keyed to a specified reason description.
hashCode() - Method in class org.apache.bval.util.FieldAccess
hashCode() - Method in class org.apache.bval.util.MethodAccess
hashCode() - Method in class org.apache.bval.util.PropertyAccess
hasProperties() - Method in class org.apache.bval.model.MetaBean
Learn whether there are any known properties.
hasRelationships() - Method in class org.apache.bval.model.MetaBean
Learn whether any known property is a relationship.
hasValidation(Validation) - Method in class org.apache.bval.model.FeaturesCapable
Search for an equivalent validation among those configured.
HIDDEN - Static variable in interface org.apache.bval.model.Features.Property
INFO: Boolean, Field visible?

I

IndexedAccess - Class in org.apache.bval.util
AccessStrategy to get an indexed member of an Iterable or array object.
IndexedAccess(Type, Integer) - Constructor for class org.apache.bval.util.IndexedAccess
Create a new IndexedAccessStrategy instance.
initialize() - Method in class org.apache.bval.ValidationResults
initialize the error-buckets now when needed and not on instance creation to save memory garbage.
IntrospectorMetaBeanFactory - Class in org.apache.bval
Description: use information from java.beans.Introspector in MetaBeans.
IntrospectorMetaBeanFactory() - Constructor for class org.apache.bval.IntrospectorMetaBeanFactory
 
isAssignableFrom(Class<?>) - Method in class org.apache.bval.model.DynaTypeEnum
Learn whether the wrapped class is assignable from cls.
isEmpty() - Method in class org.apache.bval.ValidationResults
Learn whether these results are empty/error-free.
isEnum() - Method in class org.apache.bval.model.DynaTypeEnum
Learn whether the referred class is, in fact, an enum class.
isFixed() - Method in class org.apache.bval.BeanValidationContext
Learn whether the current property value is "fixed."
isKnown() - Method in class org.apache.bval.util.PropertyAccess
Learn whether this PropertyAccess references a known property.
isMandatory() - Method in class org.apache.bval.model.MetaProperty
Learn whether this property is considered mandatory.
isRelationship() - Method in class org.apache.bval.model.MetaProperty
Learn whether this property is considered a relationship.
isTreatMapsLikeBeans() - Method in class org.apache.bval.BeanValidator
 
isValid(Object) - Static method in class org.apache.bval.routines.EMailValidationUtils
Learn whether a given object is a valid email address.
isValid(Object, Pattern) - Static method in class org.apache.bval.routines.EMailValidationUtils
Learn whether a particular value matches a given pattern per Matcher.matches().
isValidated(Object) - Method in class org.apache.bval.BeanValidationContext
Learn whether a particular object has been validated.

J

JAVASCRIPT_VALIDATION_FUNCTIONS - Static variable in interface org.apache.bval.model.Features.Property
Deprecated. 

K

KeyedAccess - Class in org.apache.bval.util
AccessStrategy to get a keyed value from a Map.
KeyedAccess(Type, Object) - Constructor for class org.apache.bval.util.KeyedAccess
Create a new KeyedAccess instance.

M

main(String[]) - Static method in class org.apache.bval.util.BValVersion
Main method of this class that prints the BValVersion.toString() to System.out.
MAIN_KEY - Static variable in interface org.apache.bval.model.Features.Bean
INFO: String, name of the Property, that is the Primary Key
MAJOR_RELEASE - Static variable in class org.apache.bval.util.BValVersion
Major release number
MANDATORY - Static variable in interface org.apache.bval.model.Features.Property
VALIDATION: Boolean, mandatory field?
MAX_LENGTH - Static variable in interface org.apache.bval.model.Features.Property
VALIDATION: Integer, max.
MAX_VALUE - Static variable in interface org.apache.bval.model.Features.Property
VALIDATION: Comparable (e.g.
MetaBean - Class in org.apache.bval.model
Description: the meta description of a bean or class.
MetaBean() - Constructor for class org.apache.bval.model.MetaBean
 
MetaBeanBuilder - Class in org.apache.bval
Description: internal implementation class to construct metabeans with factories
MetaBeanBuilder() - Constructor for class org.apache.bval.MetaBeanBuilder
Create a new MetaBeanBuilder instance.
MetaBeanBuilder(MetaBeanFactory[]) - Constructor for class org.apache.bval.MetaBeanBuilder
Create a new MetaBeanBuilder instance.
MetaBeanCache - Class in org.apache.bval
Description: a cache to hold metabeans by id and by class.
MetaBeanCache() - Constructor for class org.apache.bval.MetaBeanCache
Create a new MetaBeanCache instance.
MetaBeanCache(Map<String, MetaBean>) - Constructor for class org.apache.bval.MetaBeanCache
Create a new MetaBeanCache instance.
MetaBeanFactory - Interface in org.apache.bval
Description: interface for abstraction how to initialize a MetaBean with information from somewhere
MetaBeanFinder - Interface in org.apache.bval
Description: Interface to find BeanInfos
MetaBeanManager - Class in org.apache.bval
Description: Default implementation for the interface to find, register and create MetaBeans.
MetaBeanManager() - Constructor for class org.apache.bval.MetaBeanManager
Create a new MetaBeanManager instance.
MetaBeanManager(MetaBeanBuilder) - Constructor for class org.apache.bval.MetaBeanManager
Create a new MetaBeanManager instance.
MetaBeanManagerFactory - Class in org.apache.bval
Description: API class to hold a singleton of a MetaBeanManager that implements the finder and registry interfaces for MetaBeans
MetaBeanManagerFactory() - Constructor for class org.apache.bval.MetaBeanManagerFactory
 
MetaProperty - Class in org.apache.bval.model
Description: the meta description of a property of a bean.
MetaProperty() - Constructor for class org.apache.bval.model.MetaProperty
Create a new MetaProperty instance.
MethodAccess - Class in org.apache.bval.util
Description: invoke a zero-argument method (getter)
MethodAccess(Method) - Constructor for class org.apache.bval.util.MethodAccess
Create a new MethodAccess instance.
MethodAccess(String, Method) - Constructor for class org.apache.bval.util.MethodAccess
Create a new MethodAccess instance.
MIN_LENGTH - Static variable in interface org.apache.bval.model.Features.Property
VALIDATION: Integer, min.
MIN_VALUE - Static variable in interface org.apache.bval.model.Features.Property
VALIDATION: Comparable (e.g.
MINOR_RELEASE - Static variable in class org.apache.bval.util.BValVersion
Minor release number
moveDown(MetaProperty, AccessStrategy) - Method in class org.apache.bval.BeanValidationContext
Step deeper into association at 'prop'
moveDown(MetaProperty, AccessStrategy) - Method in interface org.apache.bval.model.ValidationContext
Step deeper into association at 'prop'
moveUp(Object, MetaBean) - Method in class org.apache.bval.BeanValidationContext
Step out from a validation of associated objects.
moveUp(Object, MetaBean) - Method in interface org.apache.bval.model.ValidationContext
Step out from a validation of associated objects.

N

name - Variable in class org.apache.bval.model.DynaTypeEnum.Value
 
name() - Method in class org.apache.bval.model.DynaTypeEnum.Value
used by freemarker-template "bean-infos-json.ftl"

O

optimizeRead(boolean) - Method in class org.apache.bval.model.FeaturesCapable
Set whether to optimize read operations by accessing the features map in an unsynchronized manner.
org.apache.bval - package org.apache.bval
 
org.apache.bval.model - package org.apache.bval.model
 
org.apache.bval.routines - package org.apache.bval.routines
 
org.apache.bval.util - package org.apache.bval.util
 
owner - Variable in class org.apache.bval.model.ValidationListener.Error
Owner

P

PATCH_RELEASE - Static variable in class org.apache.bval.util.BValVersion
Patch/point release number
PREFERRED - Static variable in interface org.apache.bval.model.Features.Property
INFO: Boolean
PrivilegedActions - Class in org.apache.bval.util
Description: utility methods to perform actions with AccessController or without.
PrivilegedActions() - Constructor for class org.apache.bval.util.PrivilegedActions
 
PROJECT_ID - Static variable in class org.apache.bval.util.BValVersion
Unique id of the current project/version/revision
PROJECT_NAME - Static variable in class org.apache.bval.util.BValVersion
Project name
PropertyAccess - Class in org.apache.bval.util
Description: Undefined dynamic strategy (FIELD or METHOD access) Uses PropertyUtils or tries to determine field to access the value
PropertyAccess(Class<?>, String) - Constructor for class org.apache.bval.util.PropertyAccess
Create a new PropertyAccess instance.
propertyName - Variable in class org.apache.bval.model.ValidationListener.Error
Property name
putFeature(String, T) - Method in class org.apache.bval.model.FeaturesCapable
Convenience method to set a particular feature value.
putProperty(String, MetaProperty) - Method in class org.apache.bval.model.MetaBean
bidirectional - set the relationship between a MetaProperty and its parentMetaBean

R

READONLY - Static variable in interface org.apache.bval.model.Features.Property
SECURITY, INFO: Boolean, is value or relationship unmodifiable
reason - Variable in class org.apache.bval.model.ValidationListener.Error
Reason
REF_BEAN_ID - Static variable in interface org.apache.bval.model.Features.Property
INFO: relationship's target metaBean.id *
REF_BEAN_TYPE - Static variable in interface org.apache.bval.model.Features.Property
INFO: Class
Relationship's target metaBean.beanClass.
REF_CASCADE - Static variable in interface org.apache.bval.model.Features.Property
INFO: AccessStrategy[]
an array of accessStrategies how validation should cascade into relationship target beans
null when validation should NOT cascade into relationship target beans

Default: {PropertyAccess(metaProperty.name)}, when MetaProperty.metaBean is != null

REG_EXP - Static variable in interface org.apache.bval.model.Features.Property
VALIDATION: String, regular expression to validate the format of input data
RELEASE_STATUS - Static variable in class org.apache.bval.util.BValVersion
Release status
removeFromCache(MetaBean) - Method in class org.apache.bval.MetaBeanCache
Remove a single MetaBean from the cache.
resetValidated() - Method in class org.apache.bval.BeanValidationContext
Clear map of validated objects (invoke when you want to 'reuse' the context for different validations)
resolveMetaBean(Object) - Method in class org.apache.bval.DynamicMetaBean
If this MetaBean is compatible with bean, return this, else null.
resolveMetaBean(Object) - Method in class org.apache.bval.model.MetaBean
If this MetaBean is compatible with bean, return this, else null.
REVISION_NUMBER - Static variable in class org.apache.bval.util.BValVersion
Version control revision number

S

setBean(Object, MetaBean) - Method in class org.apache.bval.BeanValidationContext
Set the current bean/metabean.
setBean(Object) - Method in class org.apache.bval.BeanValidationContext
Set the bean.
setBean(Object) - Method in interface org.apache.bval.model.ValidationContext
Set the bean.
setBean(Object, MetaBean) - Method in interface org.apache.bval.model.ValidationContext
Set the current bean/metabean.
setBeanClass(Class<?>) - Method in class org.apache.bval.model.MetaBean
Set the beanClass.
setCurrentIndex(Integer) - Method in class org.apache.bval.BeanValidationContext
Set the index of the object currently validated into the context.
setCurrentIndex(Integer) - Method in interface org.apache.bval.model.ValidationContext
Set the index of the object currently validated into the context.
setCurrentKey(Object) - Method in class org.apache.bval.BeanValidationContext
set the key of the object in a map currently validated into the context.
setCurrentKey(Object) - Method in interface org.apache.bval.model.ValidationContext
set the key of the object in a map currently validated into the context.
setEnumNames(String[]) - Method in class org.apache.bval.model.DynaTypeEnum
Set the enumeration value names.
setFactories(MetaBeanFactory[]) - Method in class org.apache.bval.MetaBeanBuilder
Set the array of MetaBeanFactory instances with which to enrich MetaBeans.
setFixed(boolean) - Method in class org.apache.bval.BeanValidationContext
Potentially declare the current property value as being "fixed." If true, the context will reuse any not-UNKNOWN propertyValue regardless of the AccessStrategy by which it is requested.
setFixedValue(Object) - Method in class org.apache.bval.BeanValidationContext
Set the property value, fixed.
setId(String) - Method in class org.apache.bval.model.MetaBean
Set the id.
setListener(T) - Method in class org.apache.bval.BeanValidationContext
Set the listener.
setManager(MetaBeanManager) - Static method in class org.apache.bval.MetaBeanManagerFactory
set global meta bean manager, that is responsible for finding, caching, xml registry and enrichment algorithm.
setMandatory(boolean) - Method in class org.apache.bval.model.MetaProperty
Set this property as being mandatory (or not).
setMetaBean(MetaBean) - Method in class org.apache.bval.BeanValidationContext
Set the model meta-bean.
setMetaBean(MetaBean) - Method in class org.apache.bval.model.MetaProperty
Set the MetaBean of this MetaProperty.
setMetaBean(MetaBean) - Method in interface org.apache.bval.model.ValidationContext
Set the model meta-bean.
setMetaProperty(MetaProperty) - Method in class org.apache.bval.BeanValidationContext
Set the current meta-property.
setMetaProperty(MetaProperty) - Method in interface org.apache.bval.model.ValidationContext
Set the current meta-property.
setName(String) - Method in class org.apache.bval.model.MetaBean
Set the name.
setName(String) - Method in class org.apache.bval.model.MetaProperty
Set the name of this property.
setParentMetaBean(MetaBean) - Method in class org.apache.bval.model.MetaProperty
Set the metabean that owns this property (usually called by MetaBean.putProperty())
setProperties(MetaProperty[]) - Method in class org.apache.bval.model.MetaBean
Set the properties.
setPropertyValue(Object) - Method in class org.apache.bval.BeanValidationContext
Set the current property value.
setTreatMapsLikeBeans(boolean) - Method in class org.apache.bval.BeanValidator
 
setType(Type) - Method in class org.apache.bval.model.MetaProperty
Set the type of this property.
setValidations(Validation[]) - Method in class org.apache.bval.model.FeaturesCapable
Set the validations for this FeaturesCapable.

T

TIME_LAG - Static variable in interface org.apache.bval.model.Features.Property
VALIDATION: String, Constraint for time-information of a Date-field: org.apache.bval.xml.XMLMetaValue#TIMELAG_Past or org.apache.bval.xml.XMLMetaValue#TIMELAG_Future
toString() - Method in class org.apache.bval.BeanValidationContext
toString() - Method in class org.apache.bval.model.MetaBean
toString() - Method in class org.apache.bval.model.MetaProperty
toString() - Method in class org.apache.bval.model.ValidationListener.Error
toString() - Method in class org.apache.bval.util.BValVersion
toString() - Method in class org.apache.bval.util.FieldAccess
toString() - Method in class org.apache.bval.util.MethodAccess
toString() - Method in class org.apache.bval.util.PropertyAccess
toString() - Method in class org.apache.bval.ValidationResults

U

UNIQUE_KEY - Static variable in interface org.apache.bval.model.Features.Bean
 
UNIQUE_KEY - Static variable in interface org.apache.bval.model.Features.Property
INFO: Boolean, TRUE if Property is a Unique Key
unknownValue() - Method in class org.apache.bval.BeanValidationContext
Drop cached value, marking the internal cachedValue as UNKNOWN.

V

validate(Object) - Method in class org.apache.bval.BeanValidator
Convenience API.
validate(Object, MetaBean) - Method in class org.apache.bval.BeanValidator
Convenience API.
validate(ValidationContext<T>) - Method in interface org.apache.bval.model.Validation
Perform a single validation routine.
validate() - Method in interface org.apache.bval.util.ValidationHelper.ValidateCallback
 
Validate - Annotation Type in org.apache.bval
Description: Annotate an element (parameter) to be validated.
validateArrayInContext(ValidationContext<VL>, ValidationHelper.ValidateCallback) - Static method in class org.apache.bval.util.ValidationHelper
Iterates the values of an array, setting the current context appropriately and validating each value.
validateBean(ValidationContext<VL>) - Static method in class org.apache.bval.util.ValidationHelper
Validate a single bean only, no related beans will be validated.
validateBeanInContext(ValidationContext<VL>, ValidationHelper.ValidateCallback) - Static method in class org.apache.bval.util.ValidationHelper
Validates a single object.
validateBeanNet(ValidationContext<VL>) - Method in class org.apache.bval.BeanValidator
internal validate a bean (=not a collection of beans) and its related beans
validateCall(Method, Object[]) - Method in class org.apache.bval.BeanValidator
Validate the method parameters based on @Validate annotations.
validateContext(ValidationContext<?>, ValidationHelper.ValidateCallback, boolean) - Static method in class org.apache.bval.util.ValidationHelper
validate a complex 'bean' with related beans according to validation rules in 'metaBean'
validatedObjects - Variable in class org.apache.bval.BeanValidationContext
set of objects already validated to avoid endless loops.
validateIterableInContext(ValidationContext<VL>, ValidationHelper.ValidateCallback) - Static method in class org.apache.bval.util.ValidationHelper
Iterates the values of an Iterable object, setting the current context appropriately and validating each value.
validateMapInContext(ValidationContext<VL>, ValidationHelper.ValidateCallback) - Static method in class org.apache.bval.util.ValidationHelper
Iterates the values of a Map, setting the current context appropriately and validating each value.
validateProperty(Object, MetaProperty) - Method in class org.apache.bval.BeanValidator
Convenience API.
validateProperty(ValidationContext<VL>) - Static method in class org.apache.bval.util.ValidationHelper
Validate a single property only.
validateRelatedBean(ValidationContext<VL>, MetaProperty) - Method in class org.apache.bval.BeanValidator
Validate a property of a graph.
Validation - Interface in org.apache.bval.model
Description: Interface for a single validation
ValidationContext<T extends ValidationListener> - Interface in org.apache.bval.model
Description: Interface of the context that holds all state information during the validation process
ValidationHelper - Class in org.apache.bval.util
Stateless helper methods used by the validators.
ValidationHelper() - Constructor for class org.apache.bval.util.ValidationHelper
 
ValidationHelper.ValidateCallback - Interface in org.apache.bval.util
Interface implemented by the call-back object passed to ValidationHelper.validateContext(ValidationContext, ValidateCallback, boolean) .
ValidationListener - Interface in org.apache.bval.model
Description: The interface to collect errors found during validation
ValidationListener.Error - Class in org.apache.bval.model
An object holding a single validation constraint violation found during the validation process.
ValidationListener.Error(String, Object, String) - Constructor for class org.apache.bval.model.ValidationListener.Error
Create a new Error instance.
ValidationResults - Class in org.apache.bval
Description: Implements a contains to hold and transport validation results
ValidationResults() - Constructor for class org.apache.bval.ValidationResults
 
VERSION_NUMBER - Static variable in class org.apache.bval.util.BValVersion
Version number

A B C D E F G H I J K M N O P R S T U V

Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.