public class POJOPropertyBuilder extends BeanPropertyDefinition implements Comparable<POJOPropertyBuilder>
| Modifier and Type | Field and Description |
|---|---|
protected org.codehaus.jackson.map.introspect.POJOPropertyBuilder.Node<AnnotatedParameter> |
_ctorParameters |
protected org.codehaus.jackson.map.introspect.POJOPropertyBuilder.Node<AnnotatedField> |
_fields |
protected org.codehaus.jackson.map.introspect.POJOPropertyBuilder.Node<AnnotatedMethod> |
_getters |
protected String |
_internalName
Original internal name, derived from accessor, of this
property.
|
protected String |
_name
External name of logical property; may change with
renaming (by new instance being constructed using
a new name)
|
protected org.codehaus.jackson.map.introspect.POJOPropertyBuilder.Node<AnnotatedMethod> |
_setters |
| Constructor and Description |
|---|
POJOPropertyBuilder(POJOPropertyBuilder src,
String newName) |
POJOPropertyBuilder(String internalName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(POJOPropertyBuilder src)
Method for adding all property members from specified collector into
this collector.
|
void |
addCtor(AnnotatedParameter a,
String ename,
boolean visible,
boolean ignored) |
void |
addField(AnnotatedField a,
String ename,
boolean visible,
boolean ignored) |
void |
addGetter(AnnotatedMethod a,
String ename,
boolean visible,
boolean ignored) |
void |
addSetter(AnnotatedMethod a,
String ename,
boolean visible,
boolean ignored) |
boolean |
anyDeserializeIgnorals() |
boolean |
anyExplicitNames() |
boolean |
anyIgnorals() |
boolean |
anySerializeIgnorals() |
boolean |
anyVisible() |
int |
compareTo(POJOPropertyBuilder other) |
boolean |
couldSerialize() |
String |
findNewName()
Method called to check whether property represented by this collector
should be renamed from the implicit name; and also verify that there
are no conflicting rename definitions.
|
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.
|
void |
mergeAnnotations(boolean forSerialization) |
void |
removeIgnored()
Method called to remove all entries that are marked as
ignored.
|
void |
removeNonVisible() |
String |
toString() |
void |
trimByVisibility()
Method called to trim unnecessary entries, such as implicit
getter if there is an explict one available.
|
POJOPropertyBuilder |
withName(String newName)
Method for constructing a renamed instance
|
couldDeserializeprotected final String _name
protected final String _internalName
protected org.codehaus.jackson.map.introspect.POJOPropertyBuilder.Node<AnnotatedField> _fields
protected org.codehaus.jackson.map.introspect.POJOPropertyBuilder.Node<AnnotatedParameter> _ctorParameters
protected org.codehaus.jackson.map.introspect.POJOPropertyBuilder.Node<AnnotatedMethod> _getters
protected org.codehaus.jackson.map.introspect.POJOPropertyBuilder.Node<AnnotatedMethod> _setters
public POJOPropertyBuilder(String internalName)
public POJOPropertyBuilder(POJOPropertyBuilder src, String newName)
public POJOPropertyBuilder withName(String newName)
public int compareTo(POJOPropertyBuilder other)
compareTo in interface Comparable<POJOPropertyBuilder>public String getName()
BeanPropertyDefinitiongetName in interface NamedgetName in class BeanPropertyDefinitionpublic String getInternalName()
BeanPropertyDefinitiongetInternalName in class BeanPropertyDefinitionpublic boolean isExplicitlyIncluded()
BeanPropertyDefinitionisExplicitlyIncluded in class BeanPropertyDefinitionpublic boolean hasGetter()
hasGetter in class BeanPropertyDefinitionpublic boolean hasSetter()
hasSetter in class BeanPropertyDefinitionpublic boolean hasField()
hasField in class BeanPropertyDefinitionpublic boolean hasConstructorParameter()
hasConstructorParameter in class BeanPropertyDefinitionpublic AnnotatedMember getAccessor()
BeanPropertyDefinitiongetAccessor in class BeanPropertyDefinitionpublic AnnotatedMember getMutator()
BeanPropertyDefinitiongetMutator in class BeanPropertyDefinitionpublic boolean couldSerialize()
couldSerialize in class BeanPropertyDefinitionpublic AnnotatedMethod getGetter()
getGetter in class BeanPropertyDefinitionpublic AnnotatedMethod getSetter()
getSetter in class BeanPropertyDefinitionpublic AnnotatedField getField()
getField in class BeanPropertyDefinitionpublic AnnotatedParameter getConstructorParameter()
getConstructorParameter in class BeanPropertyDefinitionpublic void addField(AnnotatedField a, String ename, boolean visible, boolean ignored)
public void addCtor(AnnotatedParameter a, String ename, boolean visible, boolean ignored)
public void addGetter(AnnotatedMethod a, String ename, boolean visible, boolean ignored)
public void addSetter(AnnotatedMethod a, String ename, boolean visible, boolean ignored)
public void addAll(POJOPropertyBuilder src)
public void removeIgnored()
public void removeNonVisible()
public void trimByVisibility()
public void mergeAnnotations(boolean forSerialization)
public boolean anyExplicitNames()
public boolean anyVisible()
public boolean anyIgnorals()
public boolean anyDeserializeIgnorals()
public boolean anySerializeIgnorals()
public String findNewName()