public abstract class SIMessageFactory
extends java.lang.Object
Constructor and Description |
---|
SIMessageFactory() |
Modifier and Type | Method and Description |
---|---|
abstract SIMessage |
createSIMessage(commonj.sdo.DataGraph dataGraph,
java.lang.String format)
Create a new SIMessage whose content is represented by the given
SDO DataGraph.
|
static SIMessageFactory |
getInstance()
Get the singleton SIMessageFactory which is to be used for
creating SIMessage instances.
|
public static SIMessageFactory getInstance()
public abstract SIMessage createSIMessage(commonj.sdo.DataGraph dataGraph, java.lang.String format) throws SIMessageDomainNotSupportedException, SIDataGraphSchemaNotFoundException, SIDataGraphFormatMismatchException, SIMessageException
dataGraph
- The SDO DataGraph which represents the message content.
Must be specified as null if the format parameter is
SIApiConstants.JMS_FORMATformat
- The message format describing the DataGraph model.java.lang.NullPointerException
- is thrown if either the dataGraph or format
parameter is null. Note that the dataGraph is
permitted to be null if the format parameter is
SIApiConstants.JMS_FORMAT.SIMessageDomainNotSupportedException
- is thrown if the message domain
indicated by the format is not supported.SIDataGraphSchemaNotFoundException
- may be thrown if a schema indicated
by the given format is not available.SIDataGraphFormatMismatchException
- may be thrown if the given format
is not compatible with the given DataGraph.SIMessageException
- is thrown if the SIMessage could not be created
for any other reason. The linked Exception(s)
indicate the underlying problem.