Package org.codehaus.jackson.map
Class BeanPropertyDefinition
java.lang.Object
org.codehaus.jackson.map.BeanPropertyDefinition
- All Implemented Interfaces:
Named
- Direct Known Subclasses:
POJOPropertyBuilder
Simple value classes that contain definitions of properties,
used during introspection of properties to use for
serialization and deserialization purposes.
These instances are created before actual
BeanProperty
instances are created, i.e. they are used earlier in the process
flow.- Since:
- 1.9
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
abstract AnnotatedMember
Method used to find accessor (getter, field to access) to use for accessing value of the property.abstract AnnotatedParameter
abstract AnnotatedField
getField()
abstract AnnotatedMethod
abstract String
Accessor that can be used to determine implicit name from underlying element(s) before possible renaming.abstract AnnotatedMember
Method used to find mutator (constructor parameter, setter, field) to use for changing value of the property.abstract String
getName()
Accessor for name used for external representation (in JSON).abstract AnnotatedMethod
abstract boolean
abstract boolean
hasField()
abstract boolean
abstract boolean
abstract boolean
Accessor that can be called to check whether property was included due to an explicit marker (usually annotation), or just by naming convention.
-
Constructor Details
-
BeanPropertyDefinition
public BeanPropertyDefinition()
-
-
Method Details
-
getName
Accessor for name used for external representation (in JSON). -
getInternalName
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. -
isExplicitlyIncluded
public abstract boolean isExplicitlyIncluded()Accessor that can be called to check whether property was included due to an explicit marker (usually annotation), or just by naming convention.- Returns:
- True if property was explicitly included (usually by having one of components being annotated); false if inclusion was purely due to naming or visibility definitions (that is, implicit)
- Since:
- 1.9.6
-
hasGetter
public abstract boolean hasGetter() -
hasSetter
public abstract boolean hasSetter() -
hasField
public abstract boolean hasField() -
hasConstructorParameter
public abstract boolean hasConstructorParameter() -
couldDeserialize
public boolean couldDeserialize() -
couldSerialize
public boolean couldSerialize() -
getGetter
-
getSetter
-
getField
-
getConstructorParameter
-
getAccessor
Method used to find accessor (getter, field to access) to use for accessing value of the property. Null if no such member exists. -
getMutator
Method used to find mutator (constructor parameter, setter, field) to use for changing value of the property. Null if no such member exists.
-