org.jtheque.core.utils.db
Class Note

java.lang.Object
  extended by org.jtheque.core.utils.db.Note

public final class Note
extends java.lang.Object

A note.

Author:
Baptiste Wicht

Constructor Summary
Note(DaoNotes.NoteType value, java.lang.String key)
          Construct a new NoteImpl with a specific value and a text key.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getElementName()
          Return the element name of the note.
 java.lang.String getInternationalizedText()
          Return the internationalized text of the note.
 DaoNotes.NoteType getValue()
          Return the value of the note.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Note

public Note(DaoNotes.NoteType value,
            java.lang.String key)
Construct a new NoteImpl with a specific value and a text key.

Parameters:
value - The value of the note.
key - The text key.
Method Detail

getInternationalizedText

public java.lang.String getInternationalizedText()
Return the internationalized text of the note.

Returns:
A text representation of the note.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getElementName

public java.lang.String getElementName()
Return the element name of the note.

Returns:
The element name.

getValue

public DaoNotes.NoteType getValue()
Return the value of the note.

Returns:
The int value of note.


Copyright © 2009 JTheque. All Rights Reserved.