Class VersionedConverter<T>
- java.lang.Object
-
- org.datadog.jenkins.plugins.datadog.util.conversion.VersionedConverter<T>
-
- Direct Known Subclasses:
BuildSpanAction.ConverterV1
,BuildSpanAction.ConverterV2
,DequeueAction.ConverterV1
,DequeueAction.ConverterV2
,EnqueueAction.ConverterV1
,EnqueueAction.ConverterV2
,GitCommitAction.ConverterV1
,GitRepositoryAction.ConverterV1
,NodeInfoAction.ConverterV1
,PipelineNodeInfoAction.ConverterV1
,PipelineQueueInfoAction.ConverterV1
,StatusAction.ConverterV1
,TraceInfoAction.ConverterV1
,TraceSpan.TraceSpanContext.ConverterV1
public abstract class VersionedConverter<T> extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
VersionedConverter(int version)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
getVersion()
abstract void
marshal(T source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
protected <F> F
readField(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context, Class<F> type)
abstract T
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
protected void
writeField(String name, Object value, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
-
-
-
Method Detail
-
getVersion
public int getVersion()
-
marshal
public abstract void marshal(T source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
-
unmarshal
public abstract T unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
-
writeField
protected void writeField(String name, Object value, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
-
readField
protected <F> F readField(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context, Class<F> type)
-
-