org.idoox.wasp.serialization
Interface Reference

All Superinterfaces:
Holder, Holder, Holder

public interface Reference
extends Holder, Holder

This interface implements a reference to another message part or attachment.

Since:
3.2
Component:
Core

Method Summary
 Type getSchemaType()
          Returns an expected schema type of the reference.
 void setNextReference(Reference nextReference)
          Sets the next reference that is bound to the same value.
 
Methods inherited from interface org.idoox.wasp.types.Holder
getObjectValue, getValueClass, setObjectValue
 

Method Detail

getSchemaType

public Type getSchemaType()
Returns an expected schema type of the reference.

Returns:
the expected schema type of the reference

setNextReference

public void setNextReference(Reference nextReference)
Sets the next reference that is bound to the same value.

The implementation of Reference must call nextReference.setObjectValue() in its own setObjectValue(). The implementation of 'Reference' must delegate setNextReference to the next reference, if there is one.

Parameters:
nextReference - the reference to the same value.