|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.fasterxml.jackson.databind.JsonMappingException.Reference
public static class JsonMappingException.Reference
Simple bean class used to contain references. References can be added to indicate execution/reference path that lead to the problem that caused this exception to be thrown.
Field Summary | |
---|---|
protected String |
_fieldName
Name of field (for beans) or key (for Maps) that is part of the reference. |
protected Object |
_from
Object through which reference was resolved. |
protected int |
_index
Index within a Collection instance that contained
the reference; used if index is relevant and available. |
Constructor Summary | |
---|---|
protected |
JsonMappingException.Reference()
Default constructor for deserialization/sub-classing purposes |
|
JsonMappingException.Reference(Object from)
|
|
JsonMappingException.Reference(Object from,
int index)
|
|
JsonMappingException.Reference(Object from,
String fieldName)
|
Method Summary | |
---|---|
String |
getFieldName()
|
Object |
getFrom()
|
int |
getIndex()
|
void |
setFieldName(String n)
|
void |
setFrom(Object o)
|
void |
setIndex(int ix)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Object _from
protected String _fieldName
_index
defined), or when resolving
Map classes without (yet) having an instance to operate on.
protected int _index
Collection
instance that contained
the reference; used if index is relevant and available.
If either not applicable, or not available, -1 is used to
denote "not known".
Constructor Detail |
---|
protected JsonMappingException.Reference()
public JsonMappingException.Reference(Object from)
public JsonMappingException.Reference(Object from, String fieldName)
public JsonMappingException.Reference(Object from, int index)
Method Detail |
---|
public void setFrom(Object o)
public void setFieldName(String n)
public void setIndex(int ix)
public Object getFrom()
public String getFieldName()
public int getIndex()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |