|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReferencingMarshallingContext
A MarshallingContext that manages references.
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface com.thoughtworks.xstream.converters.MarshallingContext |
|---|
convertAnother, convertAnother |
| Methods inherited from interface com.thoughtworks.xstream.converters.DataHolder |
|---|
get, keys, put |
| Method Detail |
|---|
Path currentPath()
Object lookupReference(Object item)
item - the item to lookup
null
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 implicit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||