com.extrememessaging.ResponseMaster
Class COutputField

java.lang.Object
  extended by com.extrememessaging.ResponseMaster.COutputField

public class COutputField
extends java.lang.Object

This class is used by several of the disposition objects that take a list of fields


Constructor Summary
COutputField()
           
 
Method Summary
 java.lang.String FieldName()
          Retrieves the name of the field
 java.lang.String PreparedFieldValue(CMessage oMsg, char cDelimiter)
          Replace the delimiter with another character and truncate if necessary Also handle Nulls and strip CRLFs
 java.lang.String PreparedFieldValueMySql(CMessage oMsg)
          Replace special characters using MySQL escaping and truncate if necessary
 void ReadFromElement(org.w3c.dom.Element oElem, java.util.TimeZone timezoneForDates)
          Read the field name, max length, and date format (if applicable) from an xml node that was read from the config file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

COutputField

public COutputField()
Method Detail

FieldName

public java.lang.String FieldName()
Retrieves the name of the field


ReadFromElement

public void ReadFromElement(org.w3c.dom.Element oElem,
                            java.util.TimeZone timezoneForDates)
                     throws ResponseMasterException
Read the field name, max length, and date format (if applicable) from an xml node that was read from the config file

Parameters:
oElem - The xmlnode to read from
Throws:
Throws - a ResponseMasterException if there is a problem
ResponseMasterException

PreparedFieldValue

public java.lang.String PreparedFieldValue(CMessage oMsg,
                                           char cDelimiter)
Replace the delimiter with another character and truncate if necessary Also handle Nulls and strip CRLFs

Parameters:
oMsg - The message to get the field from
cDelimiter - The delimiter to remove from the string
Returns:
Returns the string value of the field, formatted, and trimmed

PreparedFieldValueMySql

public java.lang.String PreparedFieldValueMySql(CMessage oMsg)
Replace special characters using MySQL escaping and truncate if necessary

Parameters:
oMsg - The message to get the field from
Returns:
Returns the string value of the field, formatted, and trimmed