Interface MxRead
-
- All Known Implementing Classes:
MxReadImpl
public interface MxReadInterface 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 AbstractMXread(java.lang.Class<? extends AbstractMX> targetClass, java.lang.String xml, java.lang.Class<?>[] classes)Readxmlinto a message objectAbstractMXread(java.lang.String xml, MxId id)Readxmlinto a message object
-
-
-
Method Detail
-
read
AbstractMX read(java.lang.Class<? extends AbstractMX> targetClass, java.lang.String xml, java.lang.Class<?>[] classes)
Readxmlinto 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)
Readxmlinto 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
-
-