com.fasterxml.jackson.module.mrbean
Class POJOProperty

java.lang.Object
  extended by com.fasterxml.jackson.module.mrbean.POJOProperty

public class POJOProperty
extends Object

Bean that contains information about a single logical POJO property. Properties consist of a getter and/or setter, and are used to generate getter and setter methods and matching backing field.


Field Summary
protected  Class<?> _context
          Class in which setter/getter was declared, needed for resolving generic types.
protected  String _fieldName
           
protected  Method _getter
           
protected  String _name
           
protected  Method _setter
           
 
Constructor Summary
POJOProperty(String name, Class<?> ctxt)
           
 
Method Summary
 String getFieldName()
           
 Method getGetter()
           
 String getName()
           
 Method getSetter()
           
 boolean hasConcreteGetter()
           
 boolean hasConcreteSetter()
           
 com.fasterxml.jackson.module.mrbean.BeanBuilder.TypeDescription selectType(com.fasterxml.jackson.databind.type.TypeFactory tf)
           
 void setGetter(Method m)
           
 void setSetter(Method m)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_name

protected final String _name

_fieldName

protected final String _fieldName

_context

protected final Class<?> _context
Class in which setter/getter was declared, needed for resolving generic types.


_getter

protected Method _getter

_setter

protected Method _setter
Constructor Detail

POJOProperty

public POJOProperty(String name,
                    Class<?> ctxt)
Method Detail

getName

public String getName()

setGetter

public void setGetter(Method m)

setSetter

public void setSetter(Method m)

getGetter

public Method getGetter()

getSetter

public Method getSetter()

getFieldName

public String getFieldName()

hasConcreteGetter

public boolean hasConcreteGetter()

hasConcreteSetter

public boolean hasConcreteSetter()

selectType

public com.fasterxml.jackson.module.mrbean.BeanBuilder.TypeDescription selectType(com.fasterxml.jackson.databind.type.TypeFactory tf)


Copyright © 2012 FasterXML. All Rights Reserved.