Package org.apache.juneau
Class BeanPropertyMeta.Builder
java.lang.Object
org.apache.juneau.BeanPropertyMeta.Builder
- Enclosing class:
- BeanPropertyMeta
BeanPropertyMeta builder class.
-
Method Summary
Modifier and TypeMethodDescriptionbeanRegistry(BeanRegistry value) Sets the bean registry to use with this bean property.build()canRead()Marks this property as readable.canWrite()Marks this property as writable.delegateFor(BeanPropertyMeta value) Sets the original bean property that this one is overriding.overrideValue(Object value) Sets the overridden value of this bean property.rawMetaType(ClassMeta<?> value) Sets the raw metadata type for this bean property.Marks this property as a constructor argument.setExtraKeys(MethodInfo value) Sets the extra keys method for this bean property.Sets the field for this bean property.setGetter(MethodInfo value) Sets the getter method for this bean property.setInnerField(FieldInfo value) Sets the inner field for this bean property from aFieldInfo.setSetter(MethodInfo value) Sets the setter method for this bean property.booleanvalidate(BeanContext bc, BeanRegistry parentBeanRegistry, TypeVariables typeVarImpls, Set<String> bpro, Set<String> bpwo) Validates this bean property configuration.
-
Method Details
-
beanRegistry
Sets the bean registry to use with this bean property.- Parameters:
value- The bean registry to use with this bean property.- Returns:
- This object.
-
build
- Returns:
- A new BeanPropertyMeta object using this builder.
-
delegateFor
Sets the original bean property that this one is overriding.- Parameters:
value- The original bean property that this one is overriding.- Returns:
- This object.
-
overrideValue
Sets the overridden value of this bean property.- Parameters:
value- The overridden value of this bean property.- Returns:
- This object.
-
rawMetaType
Sets the raw metadata type for this bean property.- Parameters:
value- The raw metadata type for this bean property.- Returns:
- This object.
-
canRead
Marks this property as readable.- Returns:
- This object.
-
canWrite
Marks this property as writable.- Returns:
- This object.
-
setAsConstructorArg
Marks this property as a constructor argument.- Returns:
- This object.
-
setExtraKeys
Sets the extra keys method for this bean property.- Parameters:
value- The method info that returns extra keys for this property.- Returns:
- This object.
-
setField
Sets the field for this bean property.- Parameters:
value- The field info for this bean property.- Returns:
- This object.
-
setGetter
Sets the getter method for this bean property.- Parameters:
value- The getter method info for this bean property.- Returns:
- This object.
-
setInnerField
Sets the inner field for this bean property from aFieldInfo.- Parameters:
value- The field info containing the inner field.- Returns:
- This object.
-
setSetter
Sets the setter method for this bean property.- Parameters:
value- The setter method info for this bean property.- Returns:
- This object.
-
validate
public boolean validate(BeanContext bc, BeanRegistry parentBeanRegistry, TypeVariables typeVarImpls, Set<String> bpro, Set<String> bpwo) throws Exception Validates this bean property configuration.- Parameters:
bc- The bean context.parentBeanRegistry- The parent bean registry.typeVarImpls- Type variable implementations.bpro- Bean properties read-only set.bpwo- Bean properties write-only set.- Returns:
true if this property is valid,false otherwise.- Throws:
Exception- If validation fails.
-