com.cedarsoft.serialization.jdom
Class AbstractJDomSerializingStrategy<T,C>

java.lang.Object
  extended by com.cedarsoft.serialization.AbstractSerializer<T,C,org.jdom.Element,org.jdom.Element,java.io.IOException>
      extended by com.cedarsoft.serialization.jdom.AbstractJDomSerializer<T,C>
          extended by com.cedarsoft.serialization.jdom.AbstractJDomSerializingStrategy<T,C>
Type Parameters:
T - the type
C - the type of the context
All Implemented Interfaces:
JDomSerializingStrategy<T,C>, PluggableSerializer<T,C,org.jdom.Element,org.jdom.Element,java.io.IOException>, Serializer<T,C>, SerializingStrategy<T,C,org.jdom.Element,org.jdom.Element,java.io.IOException>

public abstract class AbstractJDomSerializingStrategy<T,C>
extends AbstractJDomSerializer<T,C>
implements JDomSerializingStrategy<T,C>


Field Summary
 
Fields inherited from class com.cedarsoft.serialization.jdom.AbstractJDomSerializer
LINE_SEPARATOR
 
Fields inherited from interface com.cedarsoft.serialization.Serializer
PI_TARGET_FORMAT
 
Constructor Summary
protected AbstractJDomSerializingStrategy(java.lang.String id, java.lang.Class<? extends T> supportedType, VersionRange formatVersionRange)
           
 
Method Summary
 java.lang.String getId()
          Returns the id
 boolean supports(java.lang.Object object)
          Whether the given reference type is supported
 
Methods inherited from class com.cedarsoft.serialization.jdom.AbstractJDomSerializer
deserialize, serialize, serializeToElement
 
Methods inherited from class com.cedarsoft.serialization.AbstractSerializer
deserialize, getDefaultElementName, getFormatVersion, getFormatVersionRange, serialize, serializeToByteArray, verifyDelegatingSerializerVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.cedarsoft.serialization.PluggableSerializer
deserialize, serialize
 
Methods inherited from interface com.cedarsoft.serialization.Serializer
deserialize, getFormatVersion, serialize
 

Constructor Detail

AbstractJDomSerializingStrategy

protected AbstractJDomSerializingStrategy(@NotNull
                                          java.lang.String id,
                                          @NotNull
                                          java.lang.Class<? extends T> supportedType,
                                          @NotNull
                                          VersionRange formatVersionRange)
Method Detail

getId

@NotNull
public java.lang.String getId()
Description copied from interface: SerializingStrategy
Returns the id

Specified by:
getId in interface SerializingStrategy<T,C,org.jdom.Element,org.jdom.Element,java.io.IOException>
Returns:
the id

supports

public boolean supports(@NotNull
                        java.lang.Object object)
Description copied from interface: SerializingStrategy
Whether the given reference type is supported

Specified by:
supports in interface SerializingStrategy<T,C,org.jdom.Element,org.jdom.Element,java.io.IOException>
Parameters:
object - the reference
Returns:
true if this strategy supports the reference, false otherwise


Copyright © 2009 cedarsoft GmbH. All Rights Reserved.