public final class LogMessage extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MSG_FATAL_ERROR |
static int |
MSG_IGNORE |
static int |
MSG_INFORMATION |
static int |
MSG_TRACE |
static int |
MSG_VALIDATION_ERROR |
static int |
MSG_VALIDATION_WARNING |
static int |
MSG_WARNING |
| Constructor and Description |
|---|
LogMessage()
Default Constructor
|
LogMessage(ExFull oSource,
int eSeverity)
Construct a log message from a jfException object.
|
LogMessage(int nId,
String sText,
int eSeverity)
Construct a log message given a message Id and a string representing the
message text.
|
LogMessage(MsgFormatPos oSource,
int eSeverity)
Construct a log message from a jfFormatPos object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
count()
Return a count of the number of LogMessageData objects in this object's
collection.
|
LogMessageData |
get(int index)
Reference the nIndex'th LogMessageData object in this object's
collection.
|
int |
getSeverity()
Get the severity for this message.
|
void |
insertMessage(ExFull oSource,
int eSeverity,
String sLocale)
Insert a new message from a jfException object.
|
void |
insertMessage(int nId,
String sText,
int eSeverity,
String sLocale)
Insert a new message given a message Id and a string representing the
text of the message.
|
void |
insertMessage(MsgFormatPos oSource,
int eSeverity,
String sLocale)
Insert a new message from a jfFormatPos object.
|
void |
insertValidationError(String sValidationMsg,
String sSOMExpression,
String sLocale)
Insert a new message from a jfFormatPos object.
|
void |
insertValidationWarning(String sValidationMsg,
String sSOMExpression,
String sLocale)
Insert a new message from a jfFormatPos object.
|
void |
setSeverity(int eSeverity)
Set the severity for this message.
|
public static final int MSG_FATAL_ERROR
public static final int MSG_IGNORE
public static final int MSG_INFORMATION
public static final int MSG_TRACE
public static final int MSG_VALIDATION_ERROR
public static final int MSG_VALIDATION_WARNING
public static final int MSG_WARNING
public LogMessage()
public LogMessage(ExFull oSource, int eSeverity)
oSource - -
contains message Id and texteSeverity - -
the message severitypublic LogMessage(int nId,
String sText,
int eSeverity)
nId - -
the message IdsText - -
the message texteSeverity - -
the message severitypublic LogMessage(MsgFormatPos oSource, int eSeverity)
oSource - -
contains message Id and texteSeverity - -
the message severitypublic int count()
public LogMessageData get(int index)
index - -
the index of LogMessageData object to return. Must be in the
range 0 to Count() - 1.public int getSeverity()
public void insertMessage(ExFull oSource, int eSeverity, String sLocale)
oSource - -
contains message Id and texteSeverity - -
the message severitysLocale - -
the desired locale to create the date and time from public void insertMessage(int nId,
String sText,
int eSeverity,
String sLocale)
nId - -
the message IdsText - -
the message texteSeverity - -
the message severitysLocale - -
the desired locale to create the date and time frompublic void insertMessage(MsgFormatPos oSource, int eSeverity, String sLocale)
oSource - -
contains message Id and texteSeverity - -
the message severitysLocale - -
the desired locale to create the date and time frompublic void insertValidationError(String sValidationMsg, String sSOMExpression, String sLocale)
sValidationMsg - the validation error textsLocale - the desired locale to create the date and time fromsSOMExpression - the SOM expression for the node that caused the validation
errorpublic void insertValidationWarning(String sValidationMsg, String sSOMExpression, String sLocale)
sValidationMsg - the validation warning textsLocale - the desired locale to create the date and time fromsSOMExpression - the SOM expression for the node that caused the validation
warningpublic void setSeverity(int eSeverity)
eSeverity - the severity of this messageCopyright © 2010 - 2020 Adobe. All Rights Reserved