|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<BooleanEnum>
pl.slawas.entities.BooleanEnum
public enum BooleanEnum
BooleanEnum - symulacja encji z wartościami boolean w wersji językowej polskiej oraz angielskiej.
Enum Constant Summary | |
---|---|
NO
|
|
UNKNOWN
|
|
YES
|
Field Summary | |
---|---|
static java.lang.String |
ENGLISH
Stała reprezentująca definicję języka angielskiego |
static java.lang.String |
POLISH
Stała reprezentująca definicję języka polskiego (wartość domyślna dla pola lang ). |
Method Summary | |
---|---|
boolean |
getBoolean()
Pobieranie wartości logicznej |
java.lang.String |
getCode()
Pobieranie kodu |
java.lang.String |
getDescription()
Pobieranie opisu |
java.lang.Integer |
getId()
Pobieranie identyfikatora |
java.lang.String |
getLang()
|
static java.lang.String[] |
getLangs()
Pobieranie listy dostępnych kodów językowych reprezentacji logicznych |
java.lang.String |
getName()
Pobieranie opisu |
java.lang.String |
getValue()
Pobieranie wartości |
static BooleanEnum |
loadById(java.lang.Integer id)
Pobieranie obiektu BooleanEnum na podstawie identyfikatora. |
static BooleanEnum |
loadByValue(java.lang.String value,
BooleanLangEnum booleanLang)
Pobieranie obiektu BooleanEnum na podstawie wartości i obiektu
reprezentacji wartości logicznych |
static BooleanEnum |
loadByValue(java.lang.String value,
java.lang.String lang)
Pobieranie obiektu BooleanEnum na podstawie wartości i kodu
językowego. |
boolean |
parse(java.lang.String value)
Parsowanie do wartości logicznej |
static boolean |
parse(java.lang.String value,
java.lang.String lang)
Parsowanie do wartości logicznej |
void |
setCode(java.lang.String code)
Deprecated. |
void |
setDescription(java.lang.String description)
Deprecated. |
void |
setId(java.lang.Integer code)
Deprecated. |
BooleanEnum |
setLang(java.lang.String lang)
|
void |
setName(java.lang.String name)
Deprecated. |
void |
setValue(java.lang.String value)
Deprecated. |
java.lang.String |
toXMLItem()
Metoda tworzaca element XML z wartosci pol obiektu. |
boolean |
useLabel()
Metoda pomocnicza pozwalająca na pobrznie szybkiej informacji czy ma zostać pobrany nagówek polaz z formularza |
static BooleanEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static BooleanEnum[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final BooleanEnum YES
public static final BooleanEnum NO
public static final BooleanEnum UNKNOWN
Field Detail |
---|
public static final java.lang.String POLISH
lang
).
BooleanLangEnum.POLISH
public static final java.lang.String ENGLISH
BooleanLangEnum.ENGLISH
Method Detail |
---|
public static BooleanEnum[] values()
for (BooleanEnum c : BooleanEnum.values()) System.out.println(c);
public static BooleanEnum valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getCode()
getCode
in interface DictionaryWithIntegerId
lang
public java.lang.String getDescription()
getDescription
in interface DictionaryWithIntegerId
lang
public boolean useLabel()
true
, jeżeli YES
, w przeciwnym wypadku
false
@Deprecated public void setCode(java.lang.String code)
setCode
in interface DictionaryWithIntegerId
code
- the code to setjava.lang.UnsupportedOperationException()
@Deprecated public void setDescription(java.lang.String description)
setDescription
in interface DictionaryWithIntegerId
description
- the description to setjava.lang.UnsupportedOperationException()
public java.lang.String getName()
getName
in interface NameValuePair
lang
getDescription()
public java.lang.String getValue()
getValue
in interface NameValuePair
lang
getCode()
@Deprecated public void setName(java.lang.String name)
setName
in interface NameValuePair
name
- nazwa do ustawieniajava.lang.UnsupportedOperationException()
@Deprecated public void setValue(java.lang.String value)
setValue
in interface NameValuePair
value
- wartośc do ustawieniajava.lang.UnsupportedOperationException()
public java.lang.String toXMLItem()
NameValuePair
toXMLItem
in interface NameValuePair
public java.lang.Integer getId()
getId
in interface DictionaryWithIntegerId
@Deprecated public void setId(java.lang.Integer code)
setId
in interface DictionaryWithIntegerId
java.lang.UnsupportedOperationException()
public static BooleanEnum loadById(java.lang.Integer id)
BooleanEnum
na podstawie identyfikatora.
Identyfikatory pobierane są z BooleanLangEnum.INTEGER
.
id
- identyfikator
public static BooleanEnum loadByValue(java.lang.String value, java.lang.String lang)
BooleanEnum
na podstawie wartości i kodu
językowego.
value
- wartośćlang
- wersja językowa. Lista dostępnych wartosci otrzyma się po
wywołaniu metody getLangs()
public static BooleanEnum loadByValue(java.lang.String value, BooleanLangEnum booleanLang)
BooleanEnum
na podstawie wartości i obiektu
reprezentacji wartości logicznych
value
- wartośćbooleanLang
- obiekt reprezentacji wartości logicznyc. Lista dostępnych
wartosci otrzyma się po wywołaniu metody
BooleanLangEnum.values()
public java.lang.String getLang()
public BooleanEnum setLang(java.lang.String lang)
lang
- do ustwienia wersji językowej. Lista dostępnych wartosci otrzyma
się po wywołaniu metody getLangs()
public static java.lang.String[] getLangs()
public static boolean parse(java.lang.String value, java.lang.String lang)
value
- wartość podstawowalang
- wersja językowa. Lista dostępnych wartosci otrzyma się po
wywołaniu metody getLangs()
YES
to zwrócona będzie wartość
true
, w przeciwnym wypadku bedzie zwracana wartość false
public boolean parse(java.lang.String value)
value
- wartość podstawowa
YES
to zwrócona będzie wartość
true
, w przeciwnym wypadku bedzie zwracana wartość false
. Informacja o kodzie językowym jest dostępna za pomoca
metody getLang()
.public boolean getBoolean()
YES
to zwrócona będzie wartość
true
, w przeciwnym wypadku bedzie zwracana wartość false
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |