Package com.fasterxml.jackson.jr.ob
Class JSONObjectException.Reference
- java.lang.Object
-
- com.fasterxml.jackson.jr.ob.JSONObjectException.Reference
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- JSONObjectException
public static class JSONObjectException.Reference extends Object implements Serializable
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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description 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 aCollection
instance that contained the reference; used if index is relevant and available.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFieldName()
Object
getFrom()
int
getIndex()
void
setFieldName(String n)
void
setFrom(Object o)
void
setIndex(int ix)
String
toString()
-
-
-
Field Detail
-
_from
protected Object _from
Object through which reference was resolved. Can be either actual instance (usually the case for serialization), or Class (usually the case for deserialization).
-
_fieldName
protected String _fieldName
Name of field (for beans) or key (for Maps) that is part of the reference. May be null for Collection types (which generally have_index
defined), or when resolving Map classes without (yet) having an instance to operate on.
-
_index
protected int _index
Index within aCollection
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".
-
-