public interface ReferencingMarshallingContext extends MarshallingContext
MarshallingContext
that manages references.Modifier and Type | Method and Description |
---|---|
Path |
currentPath()
Deprecated.
As of 1.4.2
|
java.lang.Object |
lookupReference(java.lang.Object item)
Request the reference key for the given item
|
void |
registerImplicit(java.lang.Object item)
Register an implicit element.
|
void |
replace(java.lang.Object original,
java.lang.Object replacement)
Replace the currently marshalled item.
|
convertAnother, convertAnother
get, keys, put
Path currentPath()
java.lang.Object lookupReference(java.lang.Object item)
item
- the item to lookupnull
void replace(java.lang.Object original, java.lang.Object replacement)
Use this method only, if you know exactly what you do! It is a special solution for Serializable types that make usage of the writeReplace method where the replacing object itself is referenced.
original
- the original item to convertreplacement
- the replacement item that is converted insteadvoid registerImplicit(java.lang.Object item)
item
- the object that is implicitCopyright © 2004–2024 XStream. All rights reserved.