Class JsonMappingException.Reference
java.lang.Object
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.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
Modifier and TypeFieldDescriptionprotected String
Lazily-constructed description of this instance; needed mostly to allow JDK serialization to work in case where_from
is non-serializable (and has to be dropped) but we still want to pass actual description along.protected String
Name of field (for beans) or key (for Maps) that is part of the reference.protected Object
protected int
Index within aCollection
instance that contained the reference; used if index is relevant and available. -
Constructor Summary
-
Method Summary
-
Field Details
-
_from
-
_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 _indexIndex 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" (or not relevant). -
_desc
Lazily-constructed description of this instance; needed mostly to allow JDK serialization to work in case where_from
is non-serializable (and has to be dropped) but we still want to pass actual description along.- Since:
- 2.8
-
-
Constructor Details
-
Reference
protected Reference()Default constructor for deserialization/sub-classing purposes -
Reference
-
Reference
-
Reference
-
-
Method Details
-
getFrom
Object through which reference was resolved. Can be either actual instance (usually the case for serialization), or Class (usually the case for deserialization).Note that this value must be `transient` to allow serializability (as often such Object is NOT serializable; or, in case of `Class`, may not available at the point of deserialization). As such will return `null` if instance has been passed using JDK serialization.
-
getFieldName
-
getIndex
public int getIndex() -
getDescription
-
toString
-