public class Language extends java.lang.Object implements LanguageIf
Constructor and Description |
---|
Language()
Constructor
|
Language(com.workingdogs.village.Record vr,
KKCriteria c)
Instantiates the attributes of the Language object from a Record object
|
Modifier and Type | Method and Description |
---|---|
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) |
java.lang.String |
toString() |
java.lang.String |
toStringBrief() |
public Language()
public Language(com.workingdogs.village.Record vr, KKCriteria c) throws com.workingdogs.village.DataSetException
vr
- Record containing datac
- Criteria containing column namescom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringBrief()
public java.lang.String getCode()
LanguageIf
getCode
in interface LanguageIf
public void setCode(java.lang.String code)
LanguageIf
setCode
in interface LanguageIf
code
- The code to set.public java.lang.String getDirectory()
LanguageIf
getDirectory
in interface LanguageIf
public void setDirectory(java.lang.String directory)
LanguageIf
setDirectory
in interface LanguageIf
directory
- The directory to set.public int getId()
getId
in interface LanguageIf
public void setId(int id)
setId
in interface LanguageIf
id
- The id to set.public java.lang.String getImage()
LanguageIf
getImage
in interface LanguageIf
public void setImage(java.lang.String image)
LanguageIf
setImage
in interface LanguageIf
image
- The image to set.public java.lang.String getName()
getName
in interface LanguageIf
public void setName(java.lang.String name)
setName
in interface LanguageIf
name
- The name to set.public int getSortOrder()
getSortOrder
in interface LanguageIf
public void setSortOrder(int sortOrder)
setSortOrder
in interface LanguageIf
sortOrder
- The sortOrder to set.public java.lang.String getLocale()
getLocale
in interface LanguageIf
public void setLocale(java.lang.String locale)
setLocale
in interface LanguageIf
locale
- the locale to setpublic boolean isDisplayOnly()
LanguageIf
isDisplayOnly
in interface LanguageIf
public void setDisplayOnly(boolean displayOnly)
setDisplayOnly
in interface LanguageIf
displayOnly
- the displayOnly to setpublic int getDataLanguageId()
LanguageIf
getDataLanguageId
in interface LanguageIf
public void setDataLanguageId(int dataLanguageId)
setDataLanguageId
in interface LanguageIf
dataLanguageId
- the dataLanguageId to setCopyright © 2018 DS Data Systems UK Ltd.