org.jtheque.core.utils.db
Class NoteImpl

java.lang.Object
  extended by org.jtheque.core.utils.db.NoteImpl
All Implemented Interfaces:
Note

public final class NoteImpl
extends Object
implements Note

A note.

Author:
Baptiste Wicht

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

Constructor Detail

NoteImpl

public NoteImpl(DaoNotes.NoteType value,
                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 String getInternationalizedText()
Description copied from interface: Note
Return the internationalized text of the note.

Specified by:
getInternationalizedText in interface Note
Returns:
A text representation of the note.

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getElementName

public String getElementName()
Description copied from interface: Note
Return the element name of the note.

Specified by:
getElementName in interface Note
Returns:
The element name.

getValue

public DaoNotes.NoteType getValue()
Description copied from interface: Note
Return the value of the note.

Specified by:
getValue in interface Note
Returns:
The int value of note.


Copyright © 2010 JTheque. All Rights Reserved.