Class JsonMappingException.Reference
java.lang.Object
org.codehaus.jackson.map.JsonMappingException.Reference
- All Implemented Interfaces:
Serializable
- Enclosing class:
JsonMappingException
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringName of field (for beans) or key (for Maps) that is part of the reference.protected ObjectObject through which reference was resolved.protected intIndex within aCollectioninstance that contained the reference; used if index is relevant and available. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
_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
-
_index
protected int _indexIndex within aCollectioninstance 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 Details
-
Reference
protected Reference()Default constructor for deserialization/sub-classing purposes -
Reference
-
Reference
-
Reference
-
-
Method Details
-
setFrom
-
setFieldName
-
setIndex
public void setIndex(int ix) -
getFrom
-
getFieldName
-
getIndex
public int getIndex() -
toString
-