org.idoox.wasp.serialization
Interface ReferenceDeserializationContext

All Known Subinterfaces:
DeserializationContext

public interface ReferenceDeserializationContext

Since:
4.0
Component:
Core

Method Summary
 void addReference(java.lang.String href, Reference reference)
          Adds a reference.
 java.lang.Class getReferencedClass(java.lang.String id)
          Returns class for some referenced object.
 Type getReferencedSchemaType(java.lang.String id)
          Returns the schema type of the object being referenced.
 java.util.Iterator getRemoteReferences()
          Returns iterator of Map.Entry(id, holder) to other parts of the message and to external documents.
 void resolveLocalReferences()
          Resolves pending references.
 void setReferencedValue(java.lang.String id, java.lang.Object value)
          Sets referenced value.
 

Method Detail

addReference

public void addReference(java.lang.String href,
                         Reference reference)
                  throws MessageProcessingException
Adds a reference.

Parameters:
href - the reference ID
reference - the holder for referenced object
Throws:
MessageProcessingException

setReferencedValue

public void setReferencedValue(java.lang.String id,
                               java.lang.Object value)
                        throws MessageProcessingException
Sets referenced value.

Parameters:
id - the id of the object
value - the value of the object
Throws:
MessageProcessingException - if there was some deserialization error

getReferencedClass

public java.lang.Class getReferencedClass(java.lang.String id)
Returns class for some referenced object.

Parameters:
id - the id of the referenced object
Returns:
the referenced class

getReferencedSchemaType

public Type getReferencedSchemaType(java.lang.String id)
Returns the schema type of the object being referenced.

Parameters:
id - the id of the referenced object
Returns:
the schema type of the object being referenced

resolveLocalReferences

public void resolveLocalReferences()
                            throws MessageProcessingException
Resolves pending references.

Throws:
MessageProcessingException - if there are some local references to the first SOAP part left.

getRemoteReferences

public java.util.Iterator getRemoteReferences()
Returns iterator of Map.Entry(id, holder) to other parts of the message and to external documents.

Returns:
the iterator of remote references