com.cedarsoft.serialization.stax
Class AbstractStaxMateSerializingStrategy<T,C>

java.lang.Object
  extended by com.cedarsoft.serialization.AbstractSerializer<T,C,S,javax.xml.stream.XMLStreamReader,javax.xml.stream.XMLStreamException>
      extended by com.cedarsoft.serialization.stax.AbstractStaxBasedSerializer<T,C,org.codehaus.staxmate.out.SMOutputElement>
          extended by com.cedarsoft.serialization.stax.AbstractStaxMateSerializer<T,C>
              extended by com.cedarsoft.serialization.stax.AbstractStaxMateSerializingStrategy<T,C>
Type Parameters:
T - the type
C - the type of the context
All Implemented Interfaces:
PluggableSerializer<T,C,org.codehaus.staxmate.out.SMOutputElement,javax.xml.stream.XMLStreamReader,javax.xml.stream.XMLStreamException>, Serializer<T,C>, SerializingStrategy<T,C,org.codehaus.staxmate.out.SMOutputElement,javax.xml.stream.XMLStreamReader,javax.xml.stream.XMLStreamException>, StaxMateSerializingStrategy<T,C>

public abstract class AbstractStaxMateSerializingStrategy<T,C>
extends AbstractStaxMateSerializer<T,C>
implements StaxMateSerializingStrategy<T,C>

Attention: On deserialization every subclass has to *consume* everything including the end event for their tag.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.cedarsoft.serialization.stax.AbstractStaxBasedSerializer
AbstractStaxBasedSerializer.CB
 
Field Summary
 
Fields inherited from interface com.cedarsoft.serialization.Serializer
PI_TARGET_FORMAT
 
Constructor Summary
protected AbstractStaxMateSerializingStrategy(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.stax.AbstractStaxMateSerializer
serialize, serializeFormatVersion
 
Methods inherited from class com.cedarsoft.serialization.stax.AbstractStaxBasedSerializer
closeTag, deserialize, ensureTag, getChildText, getProcessingInstructionData, getText, nextTag, visitChildren
 
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

AbstractStaxMateSerializingStrategy

protected AbstractStaxMateSerializingStrategy(@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.codehaus.staxmate.out.SMOutputElement,javax.xml.stream.XMLStreamReader,javax.xml.stream.XMLStreamException>
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.codehaus.staxmate.out.SMOutputElement,javax.xml.stream.XMLStreamReader,javax.xml.stream.XMLStreamException>
Parameters:
object - the reference
Returns:
true if this strategy supports the reference, false otherwise


Copyright © 2009 cedarsoft GmbH. All Rights Reserved.