com.cedarsoft.serialization.stax
Class AbstractStaxMateSerializingStrategy<T,C>
java.lang.Object
com.cedarsoft.serialization.AbstractSerializer<T,C,S,javax.xml.stream.XMLStreamReader,javax.xml.stream.XMLStreamException>
com.cedarsoft.serialization.stax.AbstractStaxBasedSerializer<T,C,org.codehaus.staxmate.out.SMOutputElement>
com.cedarsoft.serialization.stax.AbstractStaxMateSerializer<T,C>
com.cedarsoft.serialization.stax.AbstractStaxMateSerializingStrategy<T,C>
- Type Parameters:
T - the typeC - 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.
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractStaxMateSerializingStrategy
protected AbstractStaxMateSerializingStrategy(@NotNull
java.lang.String id,
@NotNull
java.lang.Class<? extends T> supportedType,
@NotNull
VersionRange formatVersionRange)
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.