com.cedarsoft.utils.serialization
Class DimensionSerializer
java.lang.Object
com.cedarsoft.utils.serialization.AbstractSerializer<java.awt.Dimension>
com.cedarsoft.utils.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
|
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SEPARATOR
@NotNull
@NonNls
public static final java.lang.String SEPARATOR
- See Also:
- Constant Field Values
DimensionSerializer
public DimensionSerializer()
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 elementobject - the objectcontext - 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 elementcontext - the context
- Returns:
- the deserialized object
- Throws:
java.io.IOException
Copyright © 2009 cedarsoft GmbH. All Rights Reserved.