public class ObjectIdConverter extends Object implements com.thoughtworks.xstream.converters.Converter, LegacyConverter<org.eclipse.jgit.lib.ObjectId>
| Constructor and Description |
|---|
ObjectIdConverter()
Create ObjectId converter
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Class type) |
boolean |
isLegacyNode(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
Is the current reader node a legacy node?
|
org.eclipse.jgit.lib.ObjectId |
legacyUnmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
Unmarshall legacy object.
|
void |
marshal(Object source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context) |
Object |
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context) |
public boolean canConvert(Class type)
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcherpublic void marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
marshal in interface com.thoughtworks.xstream.converters.Converterpublic Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
unmarshal in interface com.thoughtworks.xstream.converters.Converterpublic boolean isLegacyNode(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
isLegacyNode in interface LegacyConverter<org.eclipse.jgit.lib.ObjectId>reader - HierarchicalStreamReader.context - UnmarshallingContext.public org.eclipse.jgit.lib.ObjectId legacyUnmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
legacyUnmarshal in interface LegacyConverter<org.eclipse.jgit.lib.ObjectId>reader - HierarchicalStreamReader.context - UnmarshallingContext.Copyright © 2004-2015 Hudson. All Rights Reserved.