org.opengts.war.tools
Class ComboOption
java.lang.Object
org.opengts.war.tools.ComboOption
public class ComboOption
- extends java.lang.Object
Method Summary |
java.lang.String |
getDescription()
|
java.lang.String |
getKey()
|
static ComboOption |
getOnOffOption(java.util.Locale locale,
boolean state)
|
static java.lang.String |
getOnOffText(java.util.Locale locale,
boolean state)
|
static ComboOption |
getTrueFalseOption(java.util.Locale locale,
boolean state)
|
static java.lang.String |
getTrueFalseText(java.util.Locale locale,
boolean state)
|
static ComboOption |
getYesNoOption(java.util.Locale locale,
boolean state)
|
static java.lang.String |
getYesNoText(java.util.Locale locale,
boolean state)
|
boolean |
isKey(java.lang.String k)
|
boolean |
isMatch(java.lang.String n)
|
static boolean |
parseOnOffText(java.util.Locale locale,
java.lang.String state)
|
static boolean |
parseOnOffText(java.util.Locale locale,
java.lang.String state,
boolean dft)
|
static boolean |
parseTrueFalseText(java.util.Locale locale,
java.lang.String state)
|
static boolean |
parseTrueFalseText(java.util.Locale locale,
java.lang.String state,
boolean dft)
|
static boolean |
parseYesNoText(java.util.Locale locale,
java.lang.String state)
|
static boolean |
parseYesNoText(java.util.Locale locale,
java.lang.String state,
boolean dft)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BOOLEAN_NAME_FALSE
public static final java.lang.String BOOLEAN_NAME_FALSE
- See Also:
- Constant Field Values
BOOLEAN_NAME_TRUE
public static final java.lang.String BOOLEAN_NAME_TRUE
- See Also:
- Constant Field Values
ComboOption
public ComboOption(java.lang.String key,
java.lang.String desc)
ComboOption
public ComboOption(java.lang.String key)
ComboOption
public ComboOption(EnumTools.StringLocale enumType,
java.util.Locale locale)
getOnOffText
public static java.lang.String getOnOffText(java.util.Locale locale,
boolean state)
parseOnOffText
public static boolean parseOnOffText(java.util.Locale locale,
java.lang.String state)
parseOnOffText
public static boolean parseOnOffText(java.util.Locale locale,
java.lang.String state,
boolean dft)
getOnOffOption
public static ComboOption getOnOffOption(java.util.Locale locale,
boolean state)
getYesNoText
public static java.lang.String getYesNoText(java.util.Locale locale,
boolean state)
parseYesNoText
public static boolean parseYesNoText(java.util.Locale locale,
java.lang.String state)
parseYesNoText
public static boolean parseYesNoText(java.util.Locale locale,
java.lang.String state,
boolean dft)
getYesNoOption
public static ComboOption getYesNoOption(java.util.Locale locale,
boolean state)
getTrueFalseText
public static java.lang.String getTrueFalseText(java.util.Locale locale,
boolean state)
parseTrueFalseText
public static boolean parseTrueFalseText(java.util.Locale locale,
java.lang.String state)
parseTrueFalseText
public static boolean parseTrueFalseText(java.util.Locale locale,
java.lang.String state,
boolean dft)
getTrueFalseOption
public static ComboOption getTrueFalseOption(java.util.Locale locale,
boolean state)
getKey
public java.lang.String getKey()
getDescription
public java.lang.String getDescription()
isKey
public boolean isKey(java.lang.String k)
isMatch
public boolean isMatch(java.lang.String n)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object