public class LetoPeriodTypeBean extends LetoPeriodTypeBase
Constructor and Description |
---|
LetoPeriodTypeBean(LocaleStringId nameTranslationIndex,
LocaleStringId descriptionTranslationIndex,
LetoPeriodStructure[] structures) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Get the human readable description of this period type in the default locale.
|
java.lang.String |
getDescription(java.util.Locale locale)
Longer human readable description of the period type.
|
java.util.Map<java.util.Locale,java.lang.String> |
getDescriptionTranslations()
Get the available translations in human spoken languages of this period type description.
|
java.lang.String |
getName()
Get the name of this period type in the default locale.
|
java.lang.String |
getName(java.util.Locale locale)
The name of the period type.
|
java.util.Map<java.util.Locale,java.lang.String> |
getNameTranslations()
Get the available translations of the name of this period type in different human spoken languages.
|
LetoPeriodStructure[] |
getPossibleStructures()
Return the possible structures for this period type.
|
void |
setDescription(LocaleStringId descriptionTranslationIndex) |
void |
setName(LocaleStringId nameTranslationIndex) |
void |
setPossibleStructures(LetoPeriodStructure[] structures) |
java.lang.String |
toString() |
public LetoPeriodTypeBean(LocaleStringId nameTranslationIndex, LocaleStringId descriptionTranslationIndex, LetoPeriodStructure[] structures) throws LetoExceptionUnrecoverable
LetoExceptionUnrecoverable
public void setDescription(LocaleStringId descriptionTranslationIndex)
public void setName(LocaleStringId nameTranslationIndex)
public java.lang.String getName()
LetoPeriodType
public java.lang.String getName(java.util.Locale locale)
LetoPeriodType
getName
in interface LetoPeriodType
getName
in class LetoPeriodTypeBase
locale
- The localization to be used.public java.lang.String getDescription()
LetoPeriodType
public java.lang.String getDescription(java.util.Locale locale)
LetoPeriodType
getDescription
in interface LetoPeriodType
getDescription
in class LetoPeriodTypeBase
locale
- The localization to be used.public java.util.Map<java.util.Locale,java.lang.String> getNameTranslations()
LetoPeriodType
public java.util.Map<java.util.Locale,java.lang.String> getDescriptionTranslations()
LetoPeriodType
public void setPossibleStructures(LetoPeriodStructure[] structures)
public LetoPeriodStructure[] getPossibleStructures()
LetoPeriodType
Number | Duration in days | Description |
1-st | duration - 28 days | February in non leap year |
2-nd | duration - 29 days | February in a leap year |
3-rd | duration - 30 days | April, June, September, November |
4-th | duration - 31 days | January, March, May, July, August, October, December |
getPossibleStructures
in interface LetoPeriodType
getPossibleStructures
in class LetoPeriodTypeBase
public java.lang.String toString()
toString
in class java.lang.Object