com.konakart.json.app
Class J_Language

java.lang.Object
  extended by com.konakart.json.app.J_Language
All Implemented Interfaces:
java.io.Serializable

public class J_Language
extends java.lang.Object
implements java.io.Serializable

Describes a language for use within KonaKart

See Also:
Serialized Form

Constructor Summary
J_Language()
           
 
Method Summary
 java.lang.String getCode()
          Examples of the code are en, es, de etc.
 int getDataLanguageId()
          For languages that are not display-only this id will be the same as the language Id.
 java.lang.String getDirectory()
          Examples of the directory are english, german, espanol etc.
 int getId()
           
 java.lang.String getImage()
          Normally a flag of the country where the language is spoken, stored in the directory of images specific to this language.
 java.lang.String getLocale()
           
 java.lang.String getName()
           
 int getSortOrder()
           
 boolean isDisplayOnly()
          If a language is marked as display-only it is not used as a language for providing translations for the various KonaKart entities that need translations for each language - such as products and categories etc.
 void setCode(java.lang.String _code)
          Examples of the code are en, es, de etc.
 void setDataLanguageId(int _dataLanguageId)
           
 void setDirectory(java.lang.String _directory)
          Examples of the directory are english, german, espanol etc.
 void setDisplayOnly(boolean _displayOnly)
           
 void setId(int _id)
           
 void setImage(java.lang.String _image)
          Normally a flag of the country where the language is spoken, stored in the directory of images specific to this language.
 void setLocale(java.lang.String _locale)
           
 void setName(java.lang.String _name)
           
 void setSortOrder(int _sortOrder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J_Language

public J_Language()
Method Detail

getCode

public java.lang.String getCode()
Examples of the code are en, es, de etc.

Returns:
Returns the code.

setCode

public void setCode(java.lang.String _code)
Examples of the code are en, es, de etc.

Parameters:
_code - The code to set.

getDirectory

public java.lang.String getDirectory()
Examples of the directory are english, german, espanol etc.

Returns:
Returns the directory.

setDirectory

public void setDirectory(java.lang.String _directory)
Examples of the directory are english, german, espanol etc.

Parameters:
_directory - The directory to set.

getLocale

public java.lang.String getLocale()
Returns:
the locale

setLocale

public void setLocale(java.lang.String _locale)
Parameters:
_locale - the locale to set

getId

public int getId()
Returns:
Returns the id.

setId

public void setId(int _id)
Parameters:
_id - The id to set.

getImage

public java.lang.String getImage()
Normally a flag of the country where the language is spoken, stored in the directory of images specific to this language.

Returns:
Returns the image.

setImage

public void setImage(java.lang.String _image)
Normally a flag of the country where the language is spoken, stored in the directory of images specific to this language.

Parameters:
_image - The image to set.

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String _name)
Parameters:
_name - The name to set.

getSortOrder

public int getSortOrder()
Returns:
Returns the sortOrder.

setSortOrder

public void setSortOrder(int _sortOrder)
Parameters:
_sortOrder - The sortOrder to set.

isDisplayOnly

public boolean isDisplayOnly()
If a language is marked as display-only it is not used as a language for providing translations for the various KonaKart entities that need translations for each language - such as products and categories etc.

Returns:
the displayOnly

setDisplayOnly

public void setDisplayOnly(boolean _displayOnly)
Parameters:
_displayOnly - the displayOnly to set

getDataLanguageId

public int getDataLanguageId()
For languages that are not display-only this id will be the same as the language Id. The dataLanguageId defines the language Id of the language that should be used for data variants (because these won't be defined for display-only languages).

Returns:
the dataLanguageId

setDataLanguageId

public void setDataLanguageId(int _dataLanguageId)
Parameters:
_dataLanguageId - the dataLanguageId to set


Copyright © 2011 DS Data Systems UK Ltd.