|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.phoenix_int.aserver.types.PHXSimpleType
com.phoenix_int.aserver.types.PHXBoolean
public class PHXBoolean
The Phoenix type for booleans. This class adds the following features to the PHXSimpleType:
PHXSimpleType| Constructor Summary | |
|---|---|
PHXBoolean()
initializes value to false |
|
| Method Summary | |
|---|---|
void |
fromString(java.lang.String value)
converts a String representation to the internal value |
void |
fromString2(PHXStringBuffer value)
converts a PHXStringBuffer representation to the internal value |
boolean |
getValue()
retrieves the current value of the variable |
java.lang.String |
getValueStr()
retrieves the string value of this variable as passed into the last call to fromString(). |
static boolean |
parse(java.lang.Object value)
a utility function to convert a string to a boolean value |
void |
setIgnoreConversionErrors(boolean ignoreConversionErrors)
indicates whether the object should accept bad values in the fromString() method without throwning an exception. |
void |
setValue(boolean v)
sets the value for the variable |
java.lang.String |
toString()
converts the variable to a string |
PHXStringBuffer |
toString2()
converts the variable to a PHXStringBuffer |
| Methods inherited from class com.phoenix_int.aserver.types.PHXSimpleType |
|---|
addPropertyChangeListener, getDescription, getEnumTokens, getHasChanged, getUnits, removePropertyChangeListener, setDescription, setHasChanged, setUnits |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PHXBoolean()
| Method Detail |
|---|
public boolean getValue()
public java.lang.String getValueStr()
public void setValue(boolean v)
v - the valuepublic PHXStringBuffer toString2()
public java.lang.String toString()
toString in interface IPHXTypetoString in class java.lang.Objectpublic void fromString2(PHXStringBuffer value)
value - the value to convertpublic void fromString(java.lang.String value)
value - the value to convertpublic static boolean parse(java.lang.Object value)
value - the string
public void setIgnoreConversionErrors(boolean ignoreConversionErrors)
ignoreConversionErrors - true if errors should be ignored
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||