|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
org.hudsonci.utils.marshal.xref.XReferenceConverter
public abstract class XReferenceConverter
Converter for XReference types.
| Nested Class Summary | |
|---|---|
protected class |
XReferenceConverter.HolderSupport
Support for XReference.Holder implementations. |
static class |
XReferenceConverter.HolderType
Default holder types. |
protected class |
XReferenceConverter.SoftUnmarshalHolder
Unmarshalling holder with a soft reference. |
protected class |
XReferenceConverter.UnmarshalHolder
Unmarshalling holder with a hard reference. |
| Nested classes/interfaces inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter |
|---|
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.DuplicateFieldException, com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.UnknownFieldException |
| Field Summary | |
|---|---|
protected XReferenceConverter.HolderType |
holderType
|
| Fields inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter |
|---|
mapper, reflectionProvider, serializationMethodInvoker |
| Constructor Summary | |
|---|---|
XReferenceConverter(com.thoughtworks.xstream.mapper.Mapper mapper,
com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflection)
|
|
| Method Summary | |
|---|---|
boolean |
canConvert(Class type)
|
protected XReference.Holder |
createStoredHolder(XReference ref,
Object target)
Create the holder to be used after the reference has been stored. |
protected XReference.Holder |
createUnmarshalHolder(XReference ref)
Create the holder to be used after the reference has been unmarshalled. |
protected void |
doMarshal(Object source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context)
|
Object |
doUnmarshal(Object result,
com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
|
XReferenceConverter.HolderType |
getHolderType()
|
protected abstract Object |
load(XReference ref)
Provides reference loading behavior. |
void |
setHolderType(XReferenceConverter.HolderType type)
|
protected abstract void |
store(XReference ref)
Provides reference storing behavior. |
| Methods inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter |
|---|
flushCache, instantiateNewInstance, marshal, marshallField, shouldUnmarshalTransientFields, unmarshal, unmarshallField |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected XReferenceConverter.HolderType holderType
| Constructor Detail |
|---|
public XReferenceConverter(com.thoughtworks.xstream.mapper.Mapper mapper,
com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflection)
| Method Detail |
|---|
public XReferenceConverter.HolderType getHolderType()
public void setHolderType(XReferenceConverter.HolderType type)
public boolean canConvert(Class type)
protected void doMarshal(Object source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context)
doMarshal in class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
public Object doUnmarshal(Object result,
com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
doUnmarshal in class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
protected abstract void store(XReference ref)
throws IOException
IOException
protected abstract Object load(XReference ref)
throws IOException
IOException
protected XReference.Holder createStoredHolder(XReference ref,
Object target)
protected XReference.Holder createUnmarshalHolder(XReference ref)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||