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 AnnotationIntrospector | |
| protected final PropertyName | |
| protected final JsonInclude. | |
| protected final AnnotatedMember | _member
Member that defines logical property. |
| protected final PropertyMetadata |
| Access | Constructor and Description |
|---|---|
| protected | SimpleBeanPropertyDefinition(AnnotationIntrospector intr, 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()
Overrides com. Method for finding all aliases of the property, if any. |
| public JsonInclude. | findInclusion()
Implements abstract com. Method used to check if this property has specific inclusion override associated with it or not. |
| public AnnotatedParameter | |
| public Iterator | getConstructorParameters()
Overrides com. Additional method that may be called instead of |
| public AnnotatedField | getField()
Implements abstract com.
|
| public PropertyName | getFullName()
Implements abstract com.
|
| public AnnotatedMethod | getGetter()
Implements abstract com.
|
| public String | getInternalName()
Implements abstract com. Accessor that can be used to determine implicit name from underlying element(s) before possible renaming. |
| public PropertyMetadata | getMetadata()
Implements abstract com. We will indicate that property is optional, since there is nothing to indicate whether it might be required. |
| public String | getName()
Implements abstract com. Implements com. Accessor for name used for external representation (in JSON). |
| public AnnotatedMember | getPrimaryMember()
Implements abstract com. 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 | |
| public Class | |
| public AnnotatedMethod | getSetter()
Implements abstract com.
|
| public PropertyName | getWrapperName()
Implements abstract com. Accessor for finding wrapper name to use for property (if any). |
| public boolean | |
| public boolean | hasField()
Implements abstract com.
|
| public boolean | hasGetter()
Implements abstract com.
|
| public boolean | |
| public boolean | hasSetter()
Implements abstract com.
|
| public boolean | isExplicitlyIncluded()
Implements abstract com. 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 com. 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 com. 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 com. Alternate "mutant factory" that will only change simple name, but leave other optional parts (like namespace) as is. |
| _annotationIntrospector | back to summary |
|---|---|
| protected final AnnotationIntrospector _annotationIntrospector | |
| _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(AnnotationIntrospector intr, 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 Overrides com. Doc from com. Method for finding all aliases of the property, if any.
| |
| findInclusion | back to summary |
|---|---|
| public JsonInclude. Implements abstract com. Doc from com. 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 com.
| |
| getConstructorParameters | back to summary |
|---|---|
| public Iterator Overrides com. Doc from com. Additional method that may be called instead of
| |
| getField | back to summary |
|---|---|
| public AnnotatedField getField() Implements abstract com.
| |
| getFullName | back to summary |
|---|---|
| public PropertyName getFullName() Implements abstract com.
| |
| getGetter | back to summary |
|---|---|
| public AnnotatedMethod getGetter() Implements abstract com.
| |
| getInternalName | back to summary |
|---|---|
| public String getInternalName() Implements abstract com. Doc from com. 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 com. 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 abstract com. Implements com. Doc from com. Accessor for name used for external representation (in JSON).
| |
| getPrimaryMember | back to summary |
|---|---|
| public AnnotatedMember getPrimaryMember() Implements abstract com. Doc from com. 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 com.
| |
| getRawPrimaryType | back to summary |
|---|---|
| public Class Implements abstract com.
| |
| getSetter | back to summary |
|---|---|
| public AnnotatedMethod getSetter() Implements abstract com.
| |
| getWrapperName | back to summary |
|---|---|
| public PropertyName getWrapperName() Implements abstract com. Doc from com. Accessor for finding wrapper name to use for property (if any).
| |
| hasConstructorParameter | back to summary |
|---|---|
| public boolean hasConstructorParameter() Implements abstract com.
| |
| hasField | back to summary |
|---|---|
| public boolean hasField() Implements abstract com.
| |
| hasGetter | back to summary |
|---|---|
| public boolean hasGetter() Implements abstract com.
| |
| hasName | back to summary |
|---|---|
| public boolean hasName(PropertyName name) Overrides com.
| |
| hasSetter | back to summary |
|---|---|
| public boolean hasSetter() Implements abstract com.
| |
| isExplicitlyIncluded | back to summary |
|---|---|
| public boolean isExplicitlyIncluded() Implements abstract com. Doc from com. 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 com. Doc from com. 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 com. Doc from com. 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 com. Doc from com. Alternate "mutant factory" that will only change simple name, but leave other optional parts (like namespace) as is.
| |