|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.gda.pg.eti.ask.przemyslawbielicki.aeh.translation.MessageTranslation
MessageTranslation
contains translation resource path for concrete exception
message.
MessageTranslation
can be converted to XML elelemt Element
by
getElement(DocumentImpl)
method.
Field Summary | |
private String |
exceptionMessage_
Exception message or its fragment |
private String |
translationResource_
Path to resource that contains final message for user in concrete language |
Constructor Summary | |
MessageTranslation()
|
Method Summary | |
ElementImpl |
getElement(DocumentImpl document)
Retrieves XML element for current message translation subtree. |
String |
getExceptionMessage()
Getter method for exception message |
String |
getTranslationResource()
Getter method for translation resource |
int |
hashCode()
Returns a hash code for this message. |
void |
setExceptionMessage(String string)
Setter method for exception message |
void |
setTranslationResource(String string)
Setter method for translation resource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private String exceptionMessage_
private String translationResource_
Constructor Detail |
public MessageTranslation()
Method Detail |
public ElementImpl getElement(DocumentImpl document)
translationResource_
is null
method creates default comment. It is necessary for programmer to
complete database.
document
- parent document to add current element to
public String getExceptionMessage()
public String getTranslationResource()
public void setExceptionMessage(String string)
string
- exception messagepublic void setTranslationResource(String string)
string
- translation resourcepublic int hashCode()
exceptionMessage_
because
it has to be unique.
String.hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |