com.cedarsoft.serialization
Class VersionSerializer

java.lang.Object
  extended by com.cedarsoft.serialization.AbstractSerializer<T,org.codehaus.staxmate.out.SMOutputElement,org.codehaus.stax2.XMLStreamReader2,javax.xml.stream.XMLStreamException>
      extended by com.cedarsoft.serialization.stax.AbstractStaxMateSerializer<Version>
          extended by com.cedarsoft.serialization.VersionSerializer
All Implemented Interfaces:
ExtendedSerializer<Version>, PluggableSerializer<Version,org.codehaus.staxmate.out.SMOutputElement,org.codehaus.stax2.XMLStreamReader2,javax.xml.stream.XMLStreamException>, Serializer<Version,Lookup>

public class VersionSerializer
extends AbstractStaxMateSerializer<Version>


Nested Class Summary
 
Nested classes/interfaces inherited from class com.cedarsoft.serialization.stax.AbstractStaxMateSerializer
AbstractStaxMateSerializer.CB
 
Field Summary
 
Fields inherited from interface com.cedarsoft.serialization.Serializer
PI_TARGET_FORMAT
 
Constructor Summary
VersionSerializer()
           
 
Method Summary
 Version deserialize(org.codehaus.stax2.XMLStreamReader2 deserializeFrom, Lookup context)
          Deserializes the object from the given document
 org.codehaus.staxmate.out.SMOutputElement serialize(org.codehaus.staxmate.out.SMOutputElement serializeTo, Version object, Lookup context)
          Serializes the object to the given element
 
Methods inherited from class com.cedarsoft.serialization.stax.AbstractStaxMateSerializer
closeTag, deserialize, ensureTag, getChildText, getProcessingInstructionData, getText, nextTag, serialize, serializeFormatVersion, visitChildren
 
Methods inherited from class com.cedarsoft.serialization.AbstractSerializer
deserialize, getDefaultElementName, getFormatVersion, getFormatVersionRange, serialize, serialize, verifyDelegatingSerializerVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionSerializer

public VersionSerializer()
Method Detail

serialize

@NotNull
public org.codehaus.staxmate.out.SMOutputElement serialize(@NotNull
                                                                   org.codehaus.staxmate.out.SMOutputElement serializeTo,
                                                                   @NotNull
                                                                   Version object,
                                                                   @NotNull
                                                                   Lookup context)
                                                    throws java.io.IOException,
                                                           javax.xml.stream.XMLStreamException
Description copied from interface: PluggableSerializer
Serializes the object to the given element

Parameters:
serializeTo - the serializeTo
object - the object
context - the context
Returns:
the serializeTo (for fluent writing)
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException

deserialize

@NotNull
public Version deserialize(@NotNull
                                   org.codehaus.stax2.XMLStreamReader2 deserializeFrom,
                                   @NotNull
                                   Lookup context)
                    throws java.io.IOException,
                           javax.xml.stream.XMLStreamException
Description copied from interface: PluggableSerializer
Deserializes the object from the given document

Parameters:
deserializeFrom - the deserializeFrom
context - the context
Returns:
the deserialized object
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException


Copyright © 2009 cedarsoft GmbH. All Rights Reserved.