com.ibm.commerce.programadapter.messagemapper

Class MessageMapperGenericImpl

  • java.lang.Object
    • com.ibm.commerce.programadapter.messagemapper.MessageMapperGenericImpl
  • All Implemented Interfaces:
    MessageMapper
    Direct Known Subclasses:
    GiftRegistryMessageMapper


    public class MessageMapperGenericImpl
    extends java.lang.Object
    implements MessageMapper
    Generic MessageMapper that contains the set and getters. To be used as a base of MessageMappers so other MessageMappers do not have to implement these redundant methods.
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MessageMapperGenericImpl

        public MessageMapperGenericImpl()
        Creates the generic implementation of a Message Mapper object.
    • Method Detail

      • createFromMessage

        public CommandProperty createFromMessage(java.lang.Object message)
        Dummy method. Always returns null.
        Specified by:
        createFromMessage in interface MessageMapper
        Parameters:
        message - the object to convert
        Returns:
        Alway returns null.
      • getMessageMapperId

        public java.lang.Integer getMessageMapperId()
        Returns the MessageMapper Identifier.
        Specified by:
        getMessageMapperId in interface MessageMapper
        Returns:
        The message mapper identifier.
      • getMessageMapperName

        public java.lang.String getMessageMapperName()
        Returns the MessageMapper name.
        Specified by:
        getMessageMapperName in interface MessageMapper
        Returns:
        The message mapper name.
      • init

        public void init(TypedProperty configuration)
        Dummy Method.
        Specified by:
        init in interface MessageMapper
        Parameters:
        configuration - the configuration for the message mapper.
      • setMessageMapperId

        public void setMessageMapperId(java.lang.Integer messageMapperId)
        Sets the Message Mapper Identifier.
        Specified by:
        setMessageMapperId in interface MessageMapper
        Parameters:
        messageMapperId - the message mapper identifier.
      • setMessageMapperName

        public void setMessageMapperName(java.lang.String name)
        Sets the Message Mapper name.
        Specified by:
        setMessageMapperName in interface MessageMapper
        Parameters:
        name - the name of the message mapper.