com.jspell.domain
Class Language

java.lang.Object
  extended by com.jspell.domain.Language

public class Language
extends java.lang.Object

This class encapsulates language ISO codes, country ISO codes and descriptions.


Constructor Summary
Language(java.lang.String languageCode, java.lang.String countryCode)
          Creates a new instance of Language
Language(java.lang.String languageCode, java.lang.String countryCode, java.lang.String version)
          Creates a new instance of Language
 
Method Summary
 java.lang.String getCountryCode()
          Getter for property countryCode.
 java.lang.String getDescription()
          Getter for property description.
 java.lang.String getLanguageCode()
          Getter for property languageCode.
 java.lang.String getVersion()
          Getter for property version.
 void setCountryCode(java.lang.String countryCode)
          Setter for property countryCode.
 void setDescription(java.lang.String description)
          Setter for property description.
 void setLanguageCode(java.lang.String languageCode)
          Setter for property languageCode.
 void setVersion(java.lang.String version)
          Setter for property version.
 java.lang.String toString()
          Returns the description of the Language object, e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Language

public Language(java.lang.String languageCode,
                java.lang.String countryCode)
Creates a new instance of Language

Parameters:
languageCode - a String.
countryCode - a String.

Language

public Language(java.lang.String languageCode,
                java.lang.String countryCode,
                java.lang.String version)
Creates a new instance of Language

Parameters:
languageCode - a String.
countryCode - a String.
Method Detail

toString

public java.lang.String toString()
Returns the description of the Language object, e.g. "English (US)"

Overrides:
toString in class java.lang.Object
Returns:
a String.

getCountryCode

public java.lang.String getCountryCode()
Getter for property countryCode.

Returns:
Value of property countryCode.

setCountryCode

public void setCountryCode(java.lang.String countryCode)
Setter for property countryCode.

Parameters:
countryCode - New value of property countryCode.

getDescription

public java.lang.String getDescription()
Getter for property description.

Returns:
Value of property description.

setDescription

public void setDescription(java.lang.String description)
Setter for property description.

Parameters:
description - New value of property description.

getVersion

public java.lang.String getVersion()
Getter for property version.

Returns:
Value of property version.

setVersion

public void setVersion(java.lang.String version)
Setter for property version.

Parameters:
version - New value of property version.

getLanguageCode

public java.lang.String getLanguageCode()
Getter for property languageCode.

Returns:
Value of property languageCode.

setLanguageCode

public void setLanguageCode(java.lang.String languageCode)
Setter for property languageCode.

Parameters:
languageCode - New value of property languageCode.


JSpell SDK - Spell Checker for the Java ™ Platform
Copyright © 2009 Page Scholar Inc, All Rights Reserved - http://www.jspell.com