public static class JsonMappingException.Reference
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_asString
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 java.lang.String |
_fieldName
Name of field (for beans) or key (for Maps) that is part
of the reference.
|
protected java.lang.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. |
private static long |
serialVersionUID |
Modifier | Constructor and Description |
---|---|
protected |
Reference()
Default constructor for deserialization/sub-classing purposes
|
private |
Reference(JsonMappingException.Reference src,
java.lang.String asString,
java.lang.Object newFrom) |
|
Reference(java.lang.Object from) |
|
Reference(java.lang.Object from,
int index) |
|
Reference(java.lang.Object from,
java.lang.String fieldName) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFieldName() |
java.lang.Object |
getFrom() |
int |
getIndex() |
void |
setFieldName(java.lang.String n) |
void |
setFrom(java.lang.Object o) |
void |
setIndex(int ix) |
java.lang.String |
toString() |
(package private) java.lang.Object |
writeReplace()
May need some cleaning here, given that `from` may or may not be serializable.
|
private static final long serialVersionUID
protected java.lang.Object _from
protected java.lang.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".protected java.lang.String _asString
_from
is
non-serializable (and has to be dropped) but we still want to pass
actual description along.protected Reference()
public Reference(java.lang.Object from)
public Reference(java.lang.Object from, java.lang.String fieldName)
public Reference(java.lang.Object from, int index)
private Reference(JsonMappingException.Reference src, java.lang.String asString, java.lang.Object newFrom)
public void setFrom(java.lang.Object o)
public void setFieldName(java.lang.String n)
public void setIndex(int ix)
public java.lang.Object getFrom()
public java.lang.String getFieldName()
public int getIndex()
public java.lang.String toString()
toString
in class java.lang.Object
java.lang.Object writeReplace()