pl.slawas.entities
Enum BooleanLangEnum

java.lang.Object
  extended by java.lang.Enum<BooleanLangEnum>
      extended by pl.slawas.entities.BooleanLangEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BooleanLangEnum>

public enum BooleanLangEnum
extends java.lang.Enum<BooleanLangEnum>

BooleanLangEnum - reprezentacje wartosci logicznych w zalezności od kodu jeżyka, albo użycia.

Version:
$Revision: 1.1 $
Author:
Slawomir Cichy <slawas@slawas.pl>

Enum Constant Summary
ENGLISH
          Reprezentacja wartości logicznych po angielsku
INTEGER
          Reprezentacja wartości logicznych jako liczby
LOGIC
          Reprezentacja wartości logicznych
POLISH
          Reprezentacja wartości logicznych po polsku
 
Method Summary
static BooleanLangEnum getByLangCode(java.lang.String code)
          Pobieranie reprezentacji wartosci logicznych na podstawie ich kodu językowego.
 java.lang.String getDescriptionOfUnknown()
           
 java.lang.String getLangCode()
           
static java.lang.String[] getLangCodes()
          Pobieranie listy dostępnych kodów językowych reprezentacji logicznych
 java.lang.String getNo()
           
 java.lang.String getUnknown()
           
 java.lang.String getYes()
           
 boolean parse(java.lang.String value)
          Parsowanie do wartości logicznej
static BooleanLangEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BooleanLangEnum[] 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

ENGLISH

public static final BooleanLangEnum ENGLISH
Reprezentacja wartości logicznych po angielsku


POLISH

public static final BooleanLangEnum POLISH
Reprezentacja wartości logicznych po polsku


LOGIC

public static final BooleanLangEnum LOGIC
Reprezentacja wartości logicznych


INTEGER

public static final BooleanLangEnum INTEGER
Reprezentacja wartości logicznych jako liczby

Method Detail

values

public static BooleanLangEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (BooleanLangEnum c : BooleanLangEnum.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static BooleanLangEnum valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getByLangCode

public static BooleanLangEnum getByLangCode(java.lang.String code)
Pobieranie reprezentacji wartosci logicznych na podstawie ich kodu językowego. Lista dostępnych kodów dostępna jest za pomocą metody getLangCodes()

Parameters:
code - kod reprezentacji wartości logicznych
Returns:
obiekt z reprezentacjami wartości logicznych

getLangCodes

public static java.lang.String[] getLangCodes()
Pobieranie listy dostępnych kodów językowych reprezentacji logicznych

Returns:
lista kodów

parse

public boolean parse(java.lang.String value)
Parsowanie do wartości logicznej

Parameters:
value - wartość podstawowa
Returns:
jeżeli wartość odpowiada yes to zwrócona będzie wartość true, w przeciwnym wypadku bedzie zwracana wartość false

getNo

public java.lang.String getNo()
Returns:
the no

getUnknown

public java.lang.String getUnknown()
Returns:
the unknown

getDescriptionOfUnknown

public java.lang.String getDescriptionOfUnknown()
Returns:
the descriptionOfUnknown

getYes

public java.lang.String getYes()
Returns:
the yes

getLangCode

public java.lang.String getLangCode()
Returns:
the langCode


Copyright © 2014 Sci Software. All Rights Reserved.