com.cedarsoft.serialization
Class DimensionSerializer

java.lang.Object
  extended by com.cedarsoft.serialization.AbstractSerializer<java.awt.Dimension>
      extended by com.cedarsoft.serialization.DimensionSerializer
All Implemented Interfaces:
ExtendedSerializer<java.awt.Dimension>, Serializer<java.awt.Dimension,Lookup>

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


Field Summary
static java.lang.String SEPARATOR
           
 
Fields inherited from class com.cedarsoft.serialization.AbstractSerializer
LINE_SEPARATOR
 
Constructor Summary
DimensionSerializer()
           
 
Method Summary
 java.awt.Dimension deserialize(org.jdom.Element element, Lookup context)
          Deserializes the object from the diven document
 org.jdom.Element serialize(org.jdom.Element element, java.awt.Dimension object, Lookup context)
          Serializes the object to the given element
 
Methods inherited from class com.cedarsoft.serialization.AbstractSerializer
deserialize, deserialize, getDefaultElementName, serialize, serialize, serialize, serializeToElement
 
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.jdom.Element serialize(@NonNls@NotNull
                                          org.jdom.Element element,
                                          @NotNull
                                          java.awt.Dimension object,
                                          @NotNull
                                          Lookup context)
                           throws java.io.IOException
Description copied from class: AbstractSerializer
Serializes the object to the given element

Specified by:
serialize in class AbstractSerializer<java.awt.Dimension>
Parameters:
element - the element
object - the object
context - the context
Returns:
the element (for fluent writing)
Throws:
java.io.IOException

deserialize

@NotNull
public java.awt.Dimension deserialize(@NotNull
                                              org.jdom.Element element,
                                              @NotNull
                                              Lookup context)
                               throws java.io.IOException
Description copied from class: AbstractSerializer
Deserializes the object from the diven document

Specified by:
deserialize in class AbstractSerializer<java.awt.Dimension>
Parameters:
element - the element
context - the context
Returns:
the deserialized object
Throws:
java.io.IOException


Copyright © 2009 cedarsoft GmbH. All Rights Reserved.