com.cedarsoft.serialization.jdom
Class AbstractDelegatingJDomSerializer<T>
java.lang.Object
com.cedarsoft.serialization.AbstractSerializer<T,C,org.jdom.Element,org.jdom.Element,java.io.IOException>
com.cedarsoft.serialization.jdom.AbstractJDomSerializer<T,java.lang.Object>
com.cedarsoft.serialization.jdom.AbstractDelegatingJDomSerializer<T>
- Type Parameters:
T - the type
- All Implemented Interfaces:
- PluggableSerializer<T,java.lang.Object,org.jdom.Element,org.jdom.Element,java.io.IOException>, Serializer<T,java.lang.Object>
public class AbstractDelegatingJDomSerializer<T>
- extends AbstractJDomSerializer<T,java.lang.Object>
|
Method Summary |
T |
deserialize(org.jdom.Element deserializeFrom,
java.lang.Object context)
Deserializes the object from the given document |
java.util.Collection<? extends JDomSerializingStrategy<T,java.lang.Object>> |
getStrategies()
|
org.jdom.Element |
serialize(org.jdom.Element serializeTo,
T object,
java.lang.Object 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 |
AbstractDelegatingJDomSerializer
public AbstractDelegatingJDomSerializer(@NotNull
java.lang.String defaultElementName,
@NotNull
VersionRange formatVersionRange,
@NotNull
JDomSerializingStrategy<? extends T,java.lang.Object>... strategies)
AbstractDelegatingJDomSerializer
public AbstractDelegatingJDomSerializer(@NotNull
java.lang.String defaultElementName,
@NotNull
VersionRange formatVersionRange,
@NotNull
java.util.Collection<? extends JDomSerializingStrategy<? extends T,java.lang.Object>> strategies)
serialize
@NotNull
public org.jdom.Element serialize(@NotNull
org.jdom.Element serializeTo,
@NotNull
T object,
@Nullable
java.lang.Object context)
throws java.io.IOException
- Description copied from interface:
PluggableSerializer
- Serializes the object to the given element
- Parameters:
serializeTo - the serializeToobject - the objectcontext - the context
- Returns:
- the serializeTo (for fluent writing)
- Throws:
java.io.IOException
deserialize
@NotNull
public T deserialize(@NotNull
org.jdom.Element deserializeFrom,
@Nullable
java.lang.Object context)
throws java.io.IOException
- Description copied from interface:
PluggableSerializer
- Deserializes the object from the given document
- Parameters:
deserializeFrom - the deserializeFromcontext - the context
- Returns:
- the deserialized object
- Throws:
java.io.IOException
getStrategies
@NotNull
public java.util.Collection<? extends JDomSerializingStrategy<T,java.lang.Object>> getStrategies()
Copyright © 2009 cedarsoft GmbH. All Rights Reserved.