BeanPropertyDefinition implementation that can
be wrapped around a AnnotatedMember that is a simple
accessor (getter) or mutator (setter, constructor parameter)
(or both, for fields).
| Modifier and Type | Field and Description |
|---|---|
| protected final MapperConfig | |
| protected final PropertyName | |
| protected final JsonInclude. | |
| protected final AnnotatedMember | _member
Member that defines logical property. |
| protected final PropertyMetadata |
| Access | Constructor and Description |
|---|---|
| protected | SimpleBeanPropertyDefinition(MapperConfig<?> config, AnnotatedMember member, PropertyName fullName, PropertyMetadata metadata, JsonInclude.
|
| Modifier and Type | Method and Description |
|---|---|
| public static SimpleBeanPropertyDefinition | |
| public static SimpleBeanPropertyDefinition | |
| public static SimpleBeanPropertyDefinition | construct(MapperConfig<?> config, AnnotatedMember member, PropertyName name, PropertyMetadata metadata, JsonInclude.
Method called to create instance for virtual properties. |
| public static SimpleBeanPropertyDefinition | construct(MapperConfig<?> config, AnnotatedMember member, PropertyName name, PropertyMetadata metadata, JsonInclude.
|
| public List | findAliases()
Implements abstract tools. Method for finding all aliases of the property, if any. |
| public JsonInclude. | findInclusion()
Implements abstract tools. Method used to check if this property has specific inclusion override associated with it or not. |
| public AnnotatedParameter | |
| public Iterator | getConstructorParameters()
Overrides tools. Additional method that may be called instead of |
| public AnnotatedField | |
| public PropertyName | |
| public AnnotatedMethod | |
| public String | getInternalName()
Implements abstract tools. Accessor that can be used to determine implicit name from underlying element(s) before possible renaming. |
| public PropertyMetadata | getMetadata()
Implements abstract tools. We will indicate that property is optional, since there is nothing to indicate whether it might be required. |
| public String | |
| public AnnotatedMember | getPrimaryMember()
Implements abstract tools. Method used to find the property member (getter, setter, field) that has the highest precedence in current context (getter method when serializing, if available, and so forth), if any. |
| public JavaType | getPrimaryType()
Implements abstract tools.
|
| public Class | getRawPrimaryType()
Implements abstract tools.
|
| public AnnotatedMethod | |
| public PropertyName | getWrapperName()
Implements abstract tools. Accessor for finding wrapper name to use for property (if any). |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | isExplicitlyIncluded()
Implements abstract tools. Accessor that can be called to check whether property was included due to an explicit marker (usually annotation), or just by naming convention. |
| public boolean | isExplicitlyNamed()
Overrides tools. Accessor that can be called to check whether property name was due to an explicit marker (usually annotation), or just by naming convention or use of "use-default-name" marker (annotation). |
| public BeanPropertyDefinition | |
| public BeanPropertyDefinition | |
| public BeanPropertyDefinition | withName(PropertyName newName)
Implements abstract tools. Method that can be used to create a definition with
same settings as this one, but with different
(external) name; that is, one for which
|
| public BeanPropertyDefinition | withSimpleName(String newName)
Implements abstract tools. Alternate "mutant factory" that will only change simple name, but leave other optional parts (like namespace) as is. |
| _config | back to summary |
|---|---|
| protected final MapperConfig<?> _config | |
| _fullName | back to summary |
|---|---|
| protected final PropertyName _fullName | |
| _inclusion | back to summary |
|---|---|
| protected final JsonInclude. | |
| _member | back to summary |
|---|---|
| protected final AnnotatedMember _member Member that defines logical property. Assumption is that it should be a 'simple' accessor; meaning a zero-argument getter, single-argument setter or constructor parameter. Note for "virtual" properties, this is null. | |
| _metadata | back to summary |
|---|---|
| protected final PropertyMetadata _metadata | |
| SimpleBeanPropertyDefinition | back to summary |
|---|---|
| protected SimpleBeanPropertyDefinition(MapperConfig<?> config, AnnotatedMember member, PropertyName fullName, PropertyMetadata metadata, JsonInclude. | |
| construct | back to summary |
|---|---|
| public static SimpleBeanPropertyDefinition construct(MapperConfig<?> config, AnnotatedMember member) | |
| construct | back to summary |
|---|---|
| public static SimpleBeanPropertyDefinition construct(MapperConfig<?> config, AnnotatedMember member, PropertyName name) | |
| construct | back to summary |
|---|---|
| public static SimpleBeanPropertyDefinition construct(MapperConfig<?> config, AnnotatedMember member, PropertyName name, PropertyMetadata metadata, JsonInclude. Method called to create instance for virtual properties. | |
| construct | back to summary |
|---|---|
public static SimpleBeanPropertyDefinition construct(MapperConfig<?> config, AnnotatedMember member, PropertyName name, PropertyMetadata metadata, JsonInclude.
| |
| findAliases | back to summary |
|---|---|
| public List Implements abstract tools. Doc from tools. Method for finding all aliases of the property, if any.
| |
| findInclusion | back to summary |
|---|---|
| public JsonInclude. Implements abstract tools. Doc from tools. Method used to check if this property has specific inclusion override associated with it or not. It should NOT check for any default settings (global, per-type, or containing POJO settings)
| |
| getConstructorParameter | back to summary |
|---|---|
| public AnnotatedParameter getConstructorParameter() Implements abstract tools.
| |
| getConstructorParameters | back to summary |
|---|---|
| public Iterator Overrides tools. Doc from tools. Additional method that may be called instead of
| |
| getField | back to summary |
|---|---|
| public AnnotatedField getField() Implements abstract tools.
| |
| getFullName | back to summary |
|---|---|
| public PropertyName getFullName() Implements tools.
| |
| getGetter | back to summary |
|---|---|
| public AnnotatedMethod getGetter() Implements abstract tools.
| |
| getInternalName | back to summary |
|---|---|
| public String getInternalName() Implements abstract tools. Doc from tools. Accessor that can be used to determine implicit name from underlying element(s) before possible renaming. This is the "internal" name derived from accessor ("x" from "getX"), and is not based on annotations or naming strategy.
| |
| getMetadata | back to summary |
|---|---|
| public PropertyMetadata getMetadata() Implements abstract tools. We will indicate that property is optional, since there is nothing to indicate whether it might be required.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements tools.
| |
| getPrimaryMember | back to summary |
|---|---|
| public AnnotatedMember getPrimaryMember() Implements abstract tools. Doc from tools. Method used to find the property member (getter, setter, field) that has the highest precedence in current context (getter method when serializing, if available, and so forth), if any. Note may throw Note abstract since 2.5
| |
| getPrimaryType | back to summary |
|---|---|
| public JavaType getPrimaryType() Implements abstract tools.
| |
| getRawPrimaryType | back to summary |
|---|---|
| public Class Implements abstract tools.
| |
| getSetter | back to summary |
|---|---|
| public AnnotatedMethod getSetter() Implements abstract tools.
| |
| getWrapperName | back to summary |
|---|---|
| public PropertyName getWrapperName() Implements abstract tools. Doc from tools. Accessor for finding wrapper name to use for property (if any).
| |
| hasConstructorParameter | back to summary |
|---|---|
| public boolean hasConstructorParameter() Implements abstract tools.
| |
| hasField | back to summary |
|---|---|
| public boolean hasField() Implements abstract tools.
| |
| hasGetter | back to summary |
|---|---|
| public boolean hasGetter() Implements abstract tools.
| |
| hasName | back to summary |
|---|---|
| public boolean hasName(PropertyName name) Overrides default tools.
| |
| hasSetter | back to summary |
|---|---|
| public boolean hasSetter() Implements abstract tools.
| |
| isExplicitlyIncluded | back to summary |
|---|---|
| public boolean isExplicitlyIncluded() Implements abstract tools. Doc from tools. Accessor that can be called to check whether property was included due to an explicit marker (usually annotation), or just by naming convention.
| |
| isExplicitlyNamed | back to summary |
|---|---|
| public boolean isExplicitlyNamed() Overrides tools. Doc from tools. Accessor that can be called to check whether property name was due to an explicit marker (usually annotation), or just by naming convention or use of "use-default-name" marker (annotation).
Note that entries that return true from this method will always
return true for
| |
| withInclusion | back to summary |
|---|---|
public BeanPropertyDefinition withInclusion(JsonInclude.
| |
| withMetadata | back to summary |
|---|---|
public BeanPropertyDefinition withMetadata(PropertyMetadata metadata)
| |
| withName | back to summary |
|---|---|
| public BeanPropertyDefinition withName(PropertyName newName) Implements abstract tools. Doc from tools. Method that can be used to create a definition with
same settings as this one, but with different
(external) name; that is, one for which
| |
| withSimpleName | back to summary |
|---|---|
| public BeanPropertyDefinition withSimpleName(String newName) Implements abstract tools. Doc from tools. Alternate "mutant factory" that will only change simple name, but leave other optional parts (like namespace) as is.
| |