org.idoox.wasp.serialization
Interface SerializationContext

All Superinterfaces:
ReferenceSerializationContext, SchemaContext, TypeMappingContext

public interface SerializationContext
extends SchemaContext, ReferenceSerializationContext, TypeMappingContext

This class walks through the serialization map (obtained through parsing WSDL or other format descriptions) and returns custom serializers.

Since:
3.2
Component:
Core

Nested Class Summary
 
Nested classes inherited from class org.idoox.wasp.serialization.SchemaContext
SchemaContext.State
 
Nested classes inherited from class org.idoox.wasp.serialization.ReferenceSerializationContext
ReferenceSerializationContext.AttachmentWithType
 
Method Summary
 java.util.Iterator getPostSerializationHandlers()
          Returns iterator of registered post-serialization handlers.
 SerializationChain getSerializationChain(java.lang.Class serializedClass)
          Returns a serialization chain for serializing serializedClass into the current XMLSchema construct.
 java.lang.String getSerializationID()
          Returns an id of the group of serializers.
 void registerPostSerializationHandler(PostSerializationHandler handler)
          Deprecated. The feature is no longer supported
 void releaseSerializationChain(SerializationChain chain)
          Releases serialization chain obtained from getSerializationChain call.
 void replaceTopSchemaConstruct(SchemaConstruct referencedConstruct)
          replaces a top schema construct.
 void unregisterPostSerializationHandler(PostSerializationHandler handler)
          Deprecated. The feature is no longer supported
 
Methods inherited from interface org.idoox.wasp.serialization.SchemaContext
enterCurrentMember, getCurrentConstructName, getCurrentConstructSchemaType, getCurrentConstructType, getCurrentMember, getCurrentSchemaConstruct, getOriginalType, getSchema, isCurrentConstructArray, leave, nextMember, nextSchemaConstruct, nextSchemaConstruct, putMember, putSchemaConstruct, replaceTopMember, replaceTopMemberType, typeOfCurrentConstructReplaced
 
Methods inherited from interface org.idoox.wasp.serialization.ReferenceSerializationContext
clearMultirefs, getAttachments, getAttachmentsWithType, getMultirefId, getMultirefRef, getMultirefType, getReferences, isMultirefsInline, isReferenceSerialized, isSerializingMultirefs, registerAttachment, registerAttachment, registerReference, registerReference, setMultirefsInline, setReferenceSerialized, setSerializingMultirefs
 
Methods inherited from interface org.idoox.wasp.serialization.TypeMappingContext
enter, getAttachmentClassName, getAttachmentMimeType, getSchema, getSchemaType, getSchemaType, getSchemaType, getType, getType, leave, setSchema
 

Method Detail

getSerializationChain

public SerializationChain getSerializationChain(java.lang.Class serializedClass)
Returns a serialization chain for serializing serializedClass into the current XMLSchema construct.

Parameters:
serializedClass - the class being serialized
Returns:
the serialization chain for the serialized class

releaseSerializationChain

public void releaseSerializationChain(SerializationChain chain)
Releases serialization chain obtained from getSerializationChain call.

Parameters:
chain - the chain to be released

getSerializationID

public java.lang.String getSerializationID()
Description copied from interface: TypeMappingContext
Returns an id of the group of serializers.

Specified by:
getSerializationID in interface TypeMappingContext
Returns:
the id of the group of serializers

registerPostSerializationHandler

public void registerPostSerializationHandler(PostSerializationHandler handler)
Deprecated. The feature is no longer supported

Registers a handler that will be called after the end of serialization This method can be used for example for registering some cleanup handlers, if the serialization process requires allocating some resources.

Parameters:
handler - the handler to be registered

unregisterPostSerializationHandler

public void unregisterPostSerializationHandler(PostSerializationHandler handler)
Deprecated. The feature is no longer supported

Rnregisters registered handler.

Parameters:
handler - the handler to be unregistered

getPostSerializationHandlers

public java.util.Iterator getPostSerializationHandlers()
Returns iterator of registered post-serialization handlers.

Returns:
the iterator of registered post-serialization handlers

replaceTopSchemaConstruct

public void replaceTopSchemaConstruct(SchemaConstruct referencedConstruct)
replaces a top schema construct.

Parameters:
referencedConstruct -