public class POJOPropertyBuilder extends BeanPropertyDefinition implements Comparable<POJOPropertyBuilder>
| 限定符和类型 | 字段和说明 |
|---|---|
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 |
| 构造器和说明 |
|---|
POJOPropertyBuilder(POJOPropertyBuilder src,
String newName) |
POJOPropertyBuilder(String internalName) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 Comparable<POJOPropertyBuilder>public String getName()
BeanPropertyDefinitiongetName 在接口中 NamedgetName 在类中 BeanPropertyDefinitionpublic String getInternalName()
BeanPropertyDefinitiongetInternalName 在类中 BeanPropertyDefinitionpublic boolean isExplicitlyIncluded()
BeanPropertyDefinitionisExplicitlyIncluded 在类中 BeanPropertyDefinitionpublic boolean hasGetter()
hasGetter 在类中 BeanPropertyDefinitionpublic boolean hasSetter()
hasSetter 在类中 BeanPropertyDefinitionpublic boolean hasField()
hasField 在类中 BeanPropertyDefinitionpublic boolean hasConstructorParameter()
public AnnotatedMember getAccessor()
BeanPropertyDefinitiongetAccessor 在类中 BeanPropertyDefinitionpublic AnnotatedMember getMutator()
BeanPropertyDefinitiongetMutator 在类中 BeanPropertyDefinitionpublic boolean couldSerialize()
couldSerialize 在类中 BeanPropertyDefinitionpublic AnnotatedMethod getGetter()
getGetter 在类中 BeanPropertyDefinitionpublic AnnotatedMethod getSetter()
getSetter 在类中 BeanPropertyDefinitionpublic AnnotatedField getField()
getField 在类中 BeanPropertyDefinitionpublic AnnotatedParameter getConstructorParameter()
public 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()