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 Detail

      • read

        AbstractMX read​(java.lang.Class<? extends AbstractMX> targetClass,
                        java.lang.String xml,
                        java.lang.Class<?>[] classes)
        Read xml into a message object
        Parameters:
        targetClass - class of the message to be read
        xml - the string with the message
        classes - 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)
        Read xml into a message object
        Parameters:
        xml - the string with the message
        id - 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