|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ic.doc.automed.wrappers.AutoMedType
uk.ac.ic.doc.automed.wrappers.AutoMedBoolean
public class AutoMedBoolean
Provides generic representation boolean values.
| Field Summary |
|---|
| Fields inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedType |
|---|
BOOLEAN, FLOAT, INTEGER, NULL_STR, STRING, TIME, TUPLE |
| Constructor Summary | |
|---|---|
AutoMedBoolean()
Create a new AutoMedBoolean that is null in value. |
|
AutoMedBoolean(boolean value)
Create a new AutoMedBoolean |
|
AutoMedBoolean(java.lang.String value)
Create a new AutoMedBoolean from a String value. |
|
| Method Summary | |
|---|---|
boolean |
booleanValue()
Return a boolean representation of this AutoMedBoolean. |
double |
doubleValue()
Return a double representation of this AutoMedBoolean, where true is 1.0 and false 0.0 |
boolean |
equals(AutoMedType v)
Test two AutoMedTypes for equality, performing conversions as appropriate. |
int |
getType()
Return the Type (INTEGER, TUPLE, ...) of this AutoMedType |
java.lang.String |
toString()
Return a string representation of this AutoMedBoolean. |
| Methods inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedType |
|---|
isLiteral, isNull, isNumeric |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AutoMedBoolean(boolean value)
public AutoMedBoolean(java.lang.String value)
value - the string used to set the boolean value, where any
string beginning with `t' or `T' will result in true as
the boolean value, and any other string will result in falsepublic AutoMedBoolean()
| Method Detail |
|---|
public boolean booleanValue()
public double doubleValue()
doubleValue in class AutoMedTypepublic java.lang.String toString()
toString in class AutoMedTypepublic boolean equals(AutoMedType v)
AutoMedType
equals in class AutoMedTypepublic final int getType()
AutoMedType
getType in class AutoMedType
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||