public abstract class PropertyMapper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logR |
Constructor and Description |
---|
PropertyMapper() |
Modifier and Type | Method and Description |
---|---|
protected static MSMQProperties.Property |
createProperty(java.lang.String name) |
ByteTranslator |
getByteTranslator() |
boolean |
getConvertNull() |
java.lang.String |
getPropertyName() |
abstract void |
map(AdaptrisMessage msg,
Message msmqMsg)
Copy information from the AdaptrisMessage object into the MQMessage object.
|
abstract void |
map(Message mqMsg,
AdaptrisMessage msg)
Copy information from the MQMessage object into the AdaptrisMessage object.
|
void |
setByteTranslator(ByteTranslator vt)
Set the ByteTranslator implementation to use when attempting to convert to
and from MSMQMessage fields that are byte[].
|
void |
setConvertNull(boolean b)
Whether or not to convert nulls into an empty string.
|
void |
setPropertyName(java.lang.String s)
The field name that will be mapped.
|
public java.lang.String getPropertyName()
public void setPropertyName(java.lang.String s)
s
- the mqFieldName to setpublic abstract void map(AdaptrisMessage msg, Message msmqMsg) throws MSMQException, CoreException
msg
- the AdaptrisMessage Object.msmqMsg
- the MQMessage object.MSMQException
- for any MSMQ related ExceptionsCoreException
- for any framework related exceptionspublic abstract void map(Message mqMsg, AdaptrisMessage msg) throws MSMQException, CoreException
msg
- the AdaptrisMessage Object.mqMsg
- the MQMessage object.MSMQException
- for any MSMQ related ExceptionsCoreException
- for any framework related exceptionspublic ByteTranslator getByteTranslator()
public void setByteTranslator(ByteTranslator vt)
vt
- the ByteTranslator to setByteTranslator
public boolean getConvertNull()
public void setConvertNull(boolean b)
b
- the convertNull to setprotected static MSMQProperties.Property createProperty(java.lang.String name)
Copyright Adaptris