com.cedarsoft.serialization.jdom
Class AbstractDelegatingJDomSerializer<T>
java.lang.Object
com.cedarsoft.serialization.AbstractSerializer<T,org.jdom.Element,org.jdom.Element,java.io.IOException>
com.cedarsoft.serialization.jdom.AbstractJDomSerializer<T>
com.cedarsoft.serialization.jdom.AbstractDelegatingJDomSerializer<T>
- Type Parameters:
T - the type
- All Implemented Interfaces:
- ExtendedSerializer<T>, PluggableSerializer<T,org.jdom.Element,org.jdom.Element,java.io.IOException>, Serializer<T,Lookup>
public class AbstractDelegatingJDomSerializer<T>
- extends AbstractJDomSerializer<T>
| 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
JDomSerializingStrategy<? extends T>... strategies)
AbstractDelegatingJDomSerializer
public AbstractDelegatingJDomSerializer(@NotNull
java.lang.String defaultElementName,
@NotNull
java.util.Collection<? extends JDomSerializingStrategy<? extends T>> strategies)
serialize
@NotNull
public org.jdom.Element serialize(@NotNull
org.jdom.Element serializeTo,
@NotNull
T object,
@NotNull
Lookup 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,
@NotNull
Lookup 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>> getStrategies()
Copyright © 2009 cedarsoft GmbH. All Rights Reserved.