public class ErrorFeedbackEntry extends java.lang.Object implements IErrorFeedbackEntry
| Constructor and Description |
|---|
ErrorFeedbackEntry()
Basic constructor.
|
ErrorFeedbackEntry(java.lang.String pFileName,
java.lang.String pMsgText,
java.lang.String pMsgNUMBER,
java.lang.String pMsgLine,
IElement pElement,
java.util.Map<java.lang.String,java.lang.String> pCustomFileAttributes,
java.util.Map<java.lang.String,java.lang.String> pCustomMessageAttributes)
the constructor that receive the error file parameters and the resource
(IElement) with which the compiler has been call
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.String> |
getCustomFileAttributes()
Gets a map of custom attributes which are defined on message level.
|
java.util.Map<java.lang.String,java.lang.String> |
getCustomMessageAttributes()
Gets a map of custom attributes which are defined on message level.
|
java.util.List<java.lang.Object> |
getEntry()
Gets the list of values of this feedback entry.
|
java.lang.String |
getEntryDate()
get the date where the entry are been created
|
java.lang.String |
getEntryID()
Gets the ID of the error feedback entry.
|
java.lang.String |
getFormatedDate()
get the formated date (JJ:MM:TT:HH:MM:SS) where the entry has been
created
|
java.lang.String |
getHostResource()
get the name of the file(DSN) which generate the message
|
org.eclipse.core.resources.IResource |
getLocalResource()
get the corresponding local file which generate the message
|
org.eclipse.core.resources.IMarker |
getMarker()
get the message marker of the corresponding local file
|
java.lang.String |
getMsgFilename()
get the name of the file which generate the message
|
java.lang.String |
getMsgFileParentLocation()
get the location(PO, Folder) of the file which generate the message
|
java.lang.String |
getMsgID()
get the message id which is a part of the error file message number for
COBOL, this id begin with "IGYPG" and for PL/I with "IBM"
|
java.lang.String |
getMsgLine()
get the message line
|
java.lang.String |
getMsgLocation()
get the name of the file(DSN) which generate the message
|
java.lang.String |
getMsgRC()
get the message return code (0, 4, 8, 12, 20)
|
java.lang.String |
getMsgText()
get the message text
|
EErrorFeedbackEntryType |
getType()
get the type of a error feedback entry.
|
int |
hashCode() |
boolean |
isSolved()
return true if the message corresponding error is been solved and false
otherwise
|
void |
setEntry()
set the list of entries that will be show on the error table list view
|
void |
setEntryDate(java.lang.String pEntryDate)
Sets the date of the error feedback entry.
|
void |
setEntryID(java.lang.String pEntryID)
Sets the ID of the error feedback entry.
|
void |
setFormatedDate(java.lang.String pFormatedDate)
Sets the formatted date of the error feedback entry.
|
void |
setHostResource(java.lang.String pHostResource)
Sets the name of the resource containing the error
|
void |
setLocalResource(org.eclipse.core.resources.IResource pResource)
set the corresponding local file which generate the message
|
void |
setMarker(org.eclipse.core.resources.IMarker pMarkerId)
set the message marker of the corresponding local file
|
void |
setMsgFilename(java.lang.String pMsgFilename)
Sets the name of the compiled file which generates the error.
|
void |
setMsgFileParentLocation(java.lang.String pMsgLocation)
Sets the full location of the parent of the file containing the error.
|
void |
setMsgID(java.lang.String pMsgID)
Sets the message ID.
|
void |
setMsgLine(java.lang.String pMsgLine)
Sets the line number in which the error occurred.
|
void |
setMsgLocation(java.lang.String pMsgDSN)
Sets the full location of the compiled file which generates the error.
|
void |
setMsgRC(java.lang.String pMsgRC)
Sets the return code of the entry.
|
void |
setMsgText(java.lang.String pMsgText)
Sets the message text of the entry.
|
void |
setSolved(boolean pSolved)
Returns whether the error feedback entry should be marked as solved.
|
void |
setType(EErrorFeedbackEntryType pType)
set the type of a error feedback entry.
|
java.lang.String |
toString() |
public ErrorFeedbackEntry(java.lang.String pFileName,
java.lang.String pMsgText,
java.lang.String pMsgNUMBER,
java.lang.String pMsgLine,
IElement pElement,
java.util.Map<java.lang.String,java.lang.String> pCustomFileAttributes,
java.util.Map<java.lang.String,java.lang.String> pCustomMessageAttributes)
pFileName - the name of the source filepMsgText - the message textpMsgNUMBER - the message numberpMsgLine - the line number of the occurred errorpElement - the context element of the action containing the error
feedback toolpCustomFileAttributes - the custom attributes which are defined on file levelpCustomMessageAttributes - the custom attributes which are defined on message levelpublic ErrorFeedbackEntry()
public void setEntry()
IErrorFeedbackEntrysetEntry in interface IErrorFeedbackEntrypublic java.util.List<java.lang.Object> getEntry()
IErrorFeedbackEntrygetEntry in interface IErrorFeedbackEntrypublic void setEntryID(java.lang.String pEntryID)
IErrorFeedbackEntrysetEntryID in interface IErrorFeedbackEntrypEntryID - the new IDpublic java.lang.String getEntryID()
IErrorFeedbackEntrygetEntryID in interface IErrorFeedbackEntrypublic void setMsgID(java.lang.String pMsgID)
IErrorFeedbackEntrysetMsgID in interface IErrorFeedbackEntrypMsgID - the new message IDpublic java.lang.String getMsgID()
getMsgID in interface IErrorFeedbackEntrypublic void setMsgText(java.lang.String pMsgText)
IErrorFeedbackEntrysetMsgText in interface IErrorFeedbackEntrypMsgText - the new message textpublic java.lang.String getMsgText()
getMsgText in interface IErrorFeedbackEntrypublic void setMsgRC(java.lang.String pMsgRC)
IErrorFeedbackEntrysetMsgRC in interface IErrorFeedbackEntrypMsgRC - the new return codepublic java.lang.String getMsgRC()
getMsgRC in interface IErrorFeedbackEntrypublic void setMsgLine(java.lang.String pMsgLine)
IErrorFeedbackEntrysetMsgLine in interface IErrorFeedbackEntrypMsgLine - the new line numberpublic java.lang.String getMsgLine()
getMsgLine in interface IErrorFeedbackEntrypublic void setMsgFilename(java.lang.String pMsgFilename)
IErrorFeedbackEntrysetMsgFilename in interface IErrorFeedbackEntrypMsgFilename - name of the file which generates the error.public java.lang.String getMsgFilename()
getMsgFilename in interface IErrorFeedbackEntrypublic void setMsgFileParentLocation(java.lang.String pMsgLocation)
IErrorFeedbackEntrysetMsgFileParentLocation in interface IErrorFeedbackEntrypMsgLocation - the location (MVS_PO or Folder) of the parent of the file
containing the errorpublic java.lang.String getMsgFileParentLocation()
getMsgFileParentLocation in interface IErrorFeedbackEntrypublic void setEntryDate(java.lang.String pEntryDate)
IErrorFeedbackEntrysetEntryDate in interface IErrorFeedbackEntrypEntryDate - the new datepublic java.lang.String getEntryDate()
getEntryDate in interface IErrorFeedbackEntrypublic void setHostResource(java.lang.String pHostResource)
IErrorFeedbackEntrysetHostResource in interface IErrorFeedbackEntrypHostResource - the host resource namepublic java.lang.String getHostResource()
getHostResource in interface IErrorFeedbackEntrypublic void setMsgLocation(java.lang.String pMsgDSN)
IErrorFeedbackEntrysetMsgLocation in interface IErrorFeedbackEntrypMsgDSN - the message Locationpublic java.lang.String getMsgLocation()
getMsgLocation in interface IErrorFeedbackEntrypublic void setFormatedDate(java.lang.String pFormatedDate)
IErrorFeedbackEntrysetFormatedDate in interface IErrorFeedbackEntrypFormatedDate - the new formatted datepublic java.lang.String getFormatedDate()
getFormatedDate in interface IErrorFeedbackEntrypublic void setMarker(org.eclipse.core.resources.IMarker pMarkerId)
setMarker in interface IErrorFeedbackEntrypMarkerId - the new markerpublic org.eclipse.core.resources.IMarker getMarker()
getMarker in interface IErrorFeedbackEntrynullpublic void setLocalResource(org.eclipse.core.resources.IResource pResource)
setLocalResource in interface IErrorFeedbackEntrypResource - the new resourcepublic org.eclipse.core.resources.IResource getLocalResource()
getLocalResource in interface IErrorFeedbackEntrynullpublic void setSolved(boolean pSolved)
IErrorFeedbackEntrysetSolved in interface IErrorFeedbackEntrypSolved - solved flagpublic boolean isSolved()
isSolved in interface IErrorFeedbackEntrytrue whether the error was marked as solvedpublic void setType(EErrorFeedbackEntryType pType)
IErrorFeedbackEntrysetType in interface IErrorFeedbackEntrypType - the type of the error feedback entry.public EErrorFeedbackEntryType getType()
IErrorFeedbackEntrygetType in interface IErrorFeedbackEntrypublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Map<java.lang.String,java.lang.String> getCustomMessageAttributes()
IErrorFeedbackEntryThe element 'CUSTOMATTRIBUTES' can be used in the error feed back file between the 'FILE' element or between the 'MESSAGE' element. This method returns the attributes defined in the 'CUSTOMATTRIBUTES' element between the 'MESSAGE' element. The attributes of the 'CUSTOMATTRIBUTES' element are returned as map, where the key equals the attribute identifier and the value equals the attribute value.
getCustomMessageAttributes in interface IErrorFeedbackEntrypublic java.util.Map<java.lang.String,java.lang.String> getCustomFileAttributes()
IErrorFeedbackEntryThe element 'CUSTOMATTRIBUTES' can be used in the error feed back file between the 'FILE' element or between the 'MESSAGE' element. This method returns the attributes defined in the 'CUSTOMATTRIBUTES' element between the 'FILE' element. The attributes of the 'CUSTOMATTRIBUTES' element are returned as map, where the key equals the attribute identifier and the value equals the attribute value.
getCustomFileAttributes in interface IErrorFeedbackEntryCopyright © 2015 Micro Focus GmbH. All rights reserved.