com.cedarsoft.serialization
Class DimensionSerializer

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<java.awt.Dimension>
          extended by com.cedarsoft.serialization.DimensionSerializer
All Implemented Interfaces:
ExtendedSerializer<java.awt.Dimension>, PluggableSerializer<java.awt.Dimension,org.codehaus.staxmate.out.SMOutputElement,org.codehaus.stax2.XMLStreamReader2,javax.xml.stream.XMLStreamException>, Serializer<java.awt.Dimension,Lookup>

public class DimensionSerializer
extends AbstractStaxMateSerializer<java.awt.Dimension>


Nested Class Summary
 
Nested classes/interfaces inherited from class com.cedarsoft.serialization.stax.AbstractStaxMateSerializer
AbstractStaxMateSerializer.CB
 
Field Summary
static java.lang.String SEPARATOR
           
 
Fields inherited from interface com.cedarsoft.serialization.Serializer
PI_TARGET_FORMAT
 
Constructor Summary
DimensionSerializer()
           
 
Method Summary
 java.awt.Dimension 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, java.awt.Dimension 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
 

Field Detail

SEPARATOR

@NotNull
@NonNls
public static final java.lang.String SEPARATOR
See Also:
Constant Field Values
Constructor Detail

DimensionSerializer

public DimensionSerializer()
Method Detail

serialize

@NotNull
public org.codehaus.staxmate.out.SMOutputElement serialize(@NotNull
                                                                   org.codehaus.staxmate.out.SMOutputElement serializeTo,
                                                                   @NotNull
                                                                   java.awt.Dimension 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 java.awt.Dimension 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.