Interface MxRead
-
- All Known Implementing Classes:
MxReadImpl
public interface MxRead
Interface to plug in code that parse XML strings into MX message objects.- Since:
- 7.6
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AbstractMX
read(java.lang.Class<? extends AbstractMX> targetClass, java.lang.String xml, java.lang.Class<?>[] classes)
Readxml
into a message objectAbstractMX
read(java.lang.String xml, MxId id)
Readxml
into a message object
-
-
-
Method Detail
-
read
AbstractMX read(java.lang.Class<? extends AbstractMX> targetClass, java.lang.String xml, java.lang.Class<?>[] classes)
Readxml
into a message object- Parameters:
targetClass
- class of the message to be readxml
- the string with the messageclasses
- classes for the context- Returns:
- parsed message or null if string content could not be parsed into an Mx
- Since:
- 7.6
-
read
AbstractMX read(java.lang.String xml, MxId id)
Readxml
into a message object- Parameters:
xml
- the string with the messageid
- optional parameter to indicate the specific MX type to create; auto detected from namespace if null.- Returns:
- parsed message or null if string content could not be parsed into an Mx
- Since:
- 7.8.4
-
-