public interface ReferencingMarshallingContext extends MarshallingContext
MarshallingContext
that manages references.Modifier and Type | Method and Description |
---|---|
Path |
currentPath()
Deprecated.
As of 1.4.2
|
Object |
lookupReference(Object item)
Request the reference key for the given item
|
void |
registerImplicit(Object item)
Register an implicit element.
|
void |
replace(Object original,
Object replacement)
Replace the currently marshalled item.
|
convertAnother, convertAnother
get, keys, put
Path currentPath()
Object lookupReference(Object item)
item
- the item to lookupnull
void replace(Object original, 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(Object item)
item
- the object that is implicitCopyright © 2004–2016 XStream. All rights reserved.