public static class RunUpcaster.ToDoItemUpcaster extends AbstractSingleEntryUpcaster<org.dom4j.Document>
Constructor and Description |
---|
RunUpcaster.ToDoItemUpcaster() |
Modifier and Type | Method and Description |
---|---|
boolean |
canUpcast(SerializedType serializedType)
Indicates whether this upcaster is capable of upcasting the given
type . |
org.dom4j.Document |
doUpcast(SerializedObject<org.dom4j.Document> intermediateRepresentation,
UpcastingContext context)
Upcasts the given
intermediateRepresentation into zero or more other representations. |
SerializedType |
doUpcast(SerializedType serializedType)
Upcast the given
serializedType into its new format. |
Class<org.dom4j.Document> |
expectedRepresentationType()
Returns the type of intermediate representation this upcaster expects.
|
upcast, upcast
public boolean canUpcast(SerializedType serializedType)
Upcaster
type
. Unless this method returns
true
, the Upcaster.upcast(org.axonframework.serializer.SerializedType)
and Upcaster.upcast(org.axonframework.serializer.SerializedType)
methods should not be
invoked on this Upcaster instance.serializedType
- The type under investigationtrue
if this upcaster can upcast the given serialized type, false
otherwise.public Class<org.dom4j.Document> expectedRepresentationType()
Upcaster
public org.dom4j.Document doUpcast(SerializedObject<org.dom4j.Document> intermediateRepresentation, UpcastingContext context)
AbstractSingleEntryUpcaster
intermediateRepresentation
into zero or more other representations. The returned
list of Serialized Objects must match the given list of serialized types.
This method may return null
to indicate a deprecated object.doUpcast
in class AbstractSingleEntryUpcaster<org.dom4j.Document>
intermediateRepresentation
- The representation of the object to upcastcontext
- An instance describing the context of the object to upcastpublic SerializedType doUpcast(SerializedType serializedType)
AbstractSingleEntryUpcaster
serializedType
into its new format. Generally, this involves increasing the
revision. Sometimes, it is also necessary to alter the type's name (in case of a renamed class, for example).
If null
is returned, the Serialized object of this type is considered deprecated and will not be
subject to upcasting.doUpcast
in class AbstractSingleEntryUpcaster<org.dom4j.Document>
serializedType
- The serialized type to upcastCopyright © 2010-2014. All Rights Reserved.