org.itracker.model
Class Language

java.lang.Object
  extended by org.itracker.model.AbstractEntity
      extended by org.itracker.model.Language
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Entity>, Entity

public class Language
extends AbstractEntity

Models a language entry.

Author:
ready
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.itracker.model.AbstractEntity
AbstractEntity.CreateDateComparator, AbstractEntity.IdComparator, AbstractEntity.LastModifiedDateComparator
 
Field Summary
static Comparator<Language> KEY_COMPARATOR
           
static Comparator<Language> VALUE_COMPARATOR
           
 
Fields inherited from class org.itracker.model.AbstractEntity
CREATE_DATE_COMPARATOR, ID_COMPARATOR, LAST_MODIFIED_DATE_COMPARATOR
 
Constructor Summary
Language()
          Default constructor (required by Hibernate).
Language(String locale, String key)
           
Language(String locale, String key, String value)
          Convenience constructor to set the value too.
 
Method Summary
 String getLocale()
           
 String getResourceKey()
           
 String getResourceValue()
           
 void setLocale(String locale)
           
 void setResourceKey(String resourceKey)
           
 void setResourceValue(String resourceValue)
           
 String toString()
           
 
Methods inherited from class org.itracker.model.AbstractEntity
clone, compareTo, equals, getCreateDate, getId, getLastModifiedDate, hashCode, isNew, setCreateDate, setId, setLastModifiedDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

KEY_COMPARATOR

public static final Comparator<Language> KEY_COMPARATOR

VALUE_COMPARATOR

public static final Comparator<Language> VALUE_COMPARATOR
Constructor Detail

Language

public Language()
Default constructor (required by Hibernate).

PENDING: should be private so that it can only be used by Hibernate, to ensure that the fields which form an instance's identity are always initialized/never null.


Language

public Language(String locale,
                String key)

Language

public Language(String locale,
                String key,
                String value)
Convenience constructor to set the value too.

Method Detail

getLocale

public String getLocale()

setLocale

public void setLocale(String locale)

getResourceKey

public String getResourceKey()

setResourceKey

public void setResourceKey(String resourceKey)

getResourceValue

public String getResourceValue()

setResourceValue

public void setResourceValue(String resourceValue)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2012 itracker. All Rights Reserved.