com.cedarsoft.serialization
Interface SerializingStrategy<T>

Type Parameters:
T - the type
All Known Implementing Classes:
AbstractSerializingStrategy

public interface SerializingStrategy<T>


Method Summary
 T deserialize(org.jdom.Element element)
          Deserializes the file reference
 java.lang.String getId()
          Returns the id
 void serialize(org.jdom.Element element, T object)
          Serializes the reference
 boolean supports(java.lang.Object object)
          Whether the given reference type is supported
 

Method Detail

getId

@NotNull
@NonNls
java.lang.String getId()
Returns the id

Returns:
the id

supports

boolean supports(@NotNull
                 java.lang.Object object)
Whether the given reference type is supported

Parameters:
object - the reference
Returns:
true if this strategy supports the reference, false otherwise

serialize

void serialize(@NotNull
               org.jdom.Element element,
               @NotNull
               T object)
               throws java.io.IOException
Serializes the reference

Parameters:
element - the element
object - the object
Throws:
java.io.IOException

deserialize

@NotNull
T deserialize(@NotNull@NonNls
                      org.jdom.Element element)
              throws java.io.IOException
Deserializes the file reference

Parameters:
element - the element
Returns:
the file reference
Throws:
java.io.IOException


Copyright © 2009 cedarsoft GmbH. All Rights Reserved.