Interface ReferencingMarshallingContext
- All Superinterfaces:
DataHolder, MarshallingContext
A
MarshallingContext that manages references.- Since:
- 1.4
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.As of 1.4.2lookupReference(Object item) Request the reference key for the given itemvoidregisterImplicit(Object item) Register an implicit element.voidReplace the currently marshalled item.Methods inherited from interface DataHolder
get, keys, putMethods inherited from interface MarshallingContext
convertAnother, convertAnother
-
Method Details
-
currentPath
Path currentPath()Deprecated.As of 1.4.2Retrieve the current path.- Returns:
- the current path
- Since:
- 1.4
-
lookupReference
-
replace
Replace the currently marshalled item.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.
- Parameters:
original- the original item to convertreplacement- the replacement item that is converted instead- Since:
- 1.4
-
registerImplicit
Register an implicit element. This is typically some kind of collection. Note, that this object may not be referenced anywhere else in the object stream.- Parameters:
item- the object that is implicit- Since:
- 1.4
-