java.lang.Object | +--com.ibm.commerce.programadapter.messagemapper.MessageMapperGenericImpl
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 Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM Copyright notice field. |
Fields inherited from interface com.ibm.commerce.programadapter.messagemapper. MessageMapper |
defaultCommandClassName,
NAME |
Constructor Summary | |
---|---|
MessageMapperGenericImpl() Creates the generic implementation of a Message Mapper object. |
Method Summary | |
---|---|
CommandProperty |
createFromMessage(java.lang.Object message) Dummy method. |
void |
destroy() Dummy method. |
java.lang.Integer |
getMessageMapperId() Returns the MessageMapper Identifier. |
java.lang.String |
getMessageMapperName() Returns the MessageMapper name. |
void |
init(
TypedProperty configuration) Dummy Method. |
void |
setMessageMapperId(java.lang.Integer messageMapperId) Sets the Message Mapper Identifier. |
void |
setMessageMapperName(java.lang.String name) Sets the Message Mapper name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public MessageMapperGenericImpl()
Method Detail |
---|
public CommandProperty createFromMessage(java.lang.Object message)
createFromMessage
in interface
MessageMapper
message
- the object to convertpublic void destroy()
destroy
in interface
MessageMapper
public java.lang.Integer getMessageMapperId()
getMessageMapperId
in interface
MessageMapper
public java.lang.String getMessageMapperName()
getMessageMapperName
in interface
MessageMapper
public void init(TypedProperty configuration)
init
in interface
MessageMapper
configuration
- the configuration for the message
mapper.public void setMessageMapperId(java.lang.Integer messageMapperId)
setMessageMapperId
in interface
MessageMapper
messageMapperId
- the message mapper
identifier.public void setMessageMapperName(java.lang.String name)
setMessageMapperName
in interface
MessageMapper
name
- the name of the message mapper.