|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition com.fasterxml.jackson.databind.util.SimpleBeanPropertyDefinition
public class SimpleBeanPropertyDefinition
Simple immutable BeanPropertyDefinition
implementation that can
be wrapped around a AnnotatedMember
that is a simple
accessor (getter) or mutator (setter, constructor parameter)
(or both, for fields).
Field Summary | |
---|---|
protected AnnotatedMember |
_member
Member that defines logical property. |
protected String |
_name
|
Constructor Summary | |
---|---|
SimpleBeanPropertyDefinition(AnnotatedMember member)
|
|
SimpleBeanPropertyDefinition(AnnotatedMember member,
String name)
|
Method Summary | |
---|---|
AnnotatedMember |
getAccessor()
Method used to find accessor (getter, field to access) to use for accessing value of the property. |
AnnotatedParameter |
getConstructorParameter()
|
AnnotatedField |
getField()
|
AnnotatedMethod |
getGetter()
|
String |
getInternalName()
Accessor that can be used to determine implicit name from underlying element(s) before possible renaming. |
AnnotatedMember |
getMutator()
Method used to find mutator (constructor parameter, setter, field) to use for changing value of the property. |
String |
getName()
Accessor for name used for external representation (in JSON). |
AnnotatedMethod |
getSetter()
|
boolean |
hasConstructorParameter()
|
boolean |
hasField()
|
boolean |
hasGetter()
|
boolean |
hasSetter()
|
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. |
SimpleBeanPropertyDefinition |
withName(String newName)
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 BeanPropertyDefinition.getName() would return newName . |
Methods inherited from class com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition |
---|
couldDeserialize, couldSerialize, findObjectIdInfo, findReferenceType, findViews, isRequired, isTypeId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final AnnotatedMember _member
protected final String _name
Constructor Detail |
---|
public SimpleBeanPropertyDefinition(AnnotatedMember member)
public SimpleBeanPropertyDefinition(AnnotatedMember member, String name)
Method Detail |
---|
public SimpleBeanPropertyDefinition withName(String newName)
BeanPropertyDefinition
BeanPropertyDefinition.getName()
would return newName
.
withName
in class BeanPropertyDefinition
public String getName()
BeanPropertyDefinition
getName
in interface Named
getName
in class BeanPropertyDefinition
public String getInternalName()
BeanPropertyDefinition
getInternalName
in class BeanPropertyDefinition
public boolean isExplicitlyIncluded()
BeanPropertyDefinition
isExplicitlyIncluded
in class BeanPropertyDefinition
public boolean hasGetter()
hasGetter
in class BeanPropertyDefinition
public boolean hasSetter()
hasSetter
in class BeanPropertyDefinition
public boolean hasField()
hasField
in class BeanPropertyDefinition
public boolean hasConstructorParameter()
hasConstructorParameter
in class BeanPropertyDefinition
public AnnotatedMethod getGetter()
getGetter
in class BeanPropertyDefinition
public AnnotatedMethod getSetter()
getSetter
in class BeanPropertyDefinition
public AnnotatedField getField()
getField
in class BeanPropertyDefinition
public AnnotatedParameter getConstructorParameter()
getConstructorParameter
in class BeanPropertyDefinition
public AnnotatedMember getAccessor()
getAccessor
in class BeanPropertyDefinition
public AnnotatedMember getMutator()
getMutator
in class BeanPropertyDefinition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |