|
ABLE, Version 1.1b | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.data.AbleLiteral
This class defines the base Able data literal value.
Field Summary | |
protected int |
myDataType
|
Constructor Summary | |
protected |
AbleLiteral(int theDataType)
Create a new literal of the specified type. |
Method Summary | |
boolean |
cmpEq(AbleRd theRhs)
Comparison, equal to: compare the current value of this data object to the current value of theRhs. |
boolean |
cmpGt(AbleRd theRhs)
Comparison, greater than: compare the current value of this data object to the current value of theRhs. |
boolean |
cmpGtEq(AbleRd theRhs)
Comparison, greater than or equal to: compare the current value of this data object to the current value of theRhs. |
double |
cmpIs(AbleRd theRhs)
Comparison, fuzzy equal to: compare the current value of this data object to the current value of theRhs. |
boolean |
cmpLt(AbleRd theRhs)
Comparison, less than: compare the current value of this data object to the current value of theRhs. |
boolean |
cmpLtEq(AbleRd theRhs)
Comparison, less than or equal to: compare the current value of this data object to the current value of theRhs. |
boolean |
cmpNeq(AbleRd theRhs)
Comparison, not equal to: compare the current value of this data object to the current value of theRhs. |
static java.lang.String |
Copyright()
Determine the copyright of this class. |
abstract boolean |
getBooleanValue()
Retrieve the value of this data object as a boolean value. |
int |
getDataType()
Retrieve the data type of this data object. |
java.lang.String |
getDataTypeAsString()
Retrieve the type of this data object as a human-readable string. |
abstract AbleLiteral |
getFuzzyValue()
Retrieve the value of this data object as a fuzzy value. |
abstract java.lang.Object |
getGenericValue()
Retrieve the value of this data object as an Object. |
abstract double |
getNumericValue()
Retrieve the value of this data object as a numeric value. |
int |
getReferent()
Retrieve the Id of the variable to which this data object refers, if any. |
abstract java.lang.String |
getStringValue()
Retrieve the value of this data object as a string value. |
abstract AbleLiteral |
getValue()
Retrieve the value of this data object as a literal. |
abstract java.lang.String |
rlCRdString()
Return a formal rule language "clause read" string that describes this data object. |
java.lang.String |
toString()
Retrieve a string describing (the contents of) the object. |
abstract java.lang.String |
xmlCRdString()
Return a formal XML "clause read" string that describes this data object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected int myDataType
Constructor Detail |
protected AbleLiteral(int theDataType)
theDataType
- An AbleData.<DataType> constant.
Method Detail |
public abstract boolean getBooleanValue() throws AbleDataException
public abstract AbleLiteral getFuzzyValue() throws AbleDataException
public abstract java.lang.Object getGenericValue() throws AbleDataException
public abstract double getNumericValue() throws AbleDataException
public abstract java.lang.String getStringValue() throws AbleDataException
public abstract AbleLiteral getValue() throws AbleDataException
public int getReferent()
public int getDataType()
public abstract java.lang.String rlCRdString()
public abstract java.lang.String xmlCRdString()
public boolean cmpEq(AbleRd theRhs) throws AbleDataException
"==" is used for numeric and boolean compares; equals() is used for Object compares; and Collator.equals() is used for String compares.
theRhs
- The right-hand side of the comparison.
public boolean cmpGt(AbleRd theRhs) throws AbleDataException
">" is used for numeric compares; Collator.compare() is used for String compares. Use of other data types on the left-hand side causes an exception.
theRhs
- The right-hand side of the comparison.
public boolean cmpGtEq(AbleRd theRhs) throws AbleDataException
">=" is used for numeric compares; Collator.compare() is used for String compares. Use of other data types on the left-hand side causes an exception.
theRhs
- The right-hand side of the comparison.
public double cmpIs(AbleRd theRhs) throws AbleDataException
Fuzzy membership is used for the compare.
theRhs
- The right-hand side of the comparison.
This must be a fuzzy set.
public boolean cmpLt(AbleRd theRhs) throws AbleDataException
"<" is used for numeric compares; Collator.compare() is used for String compares. Use of other data types on the left-hand side causes an exception.
theRhs
- The right-hand side of the comparison.
public boolean cmpLtEq(AbleRd theRhs) throws AbleDataException
"<=" is used for numeric compares; Collator.compare() is used for String compares. Use of other data types on the left-hand side causes an exception.
theRhs
- The right-hand side of the comparison.
public boolean cmpNeq(AbleRd theRhs) throws AbleDataException
"!=" is used for numeric and boolean compares; ! equals() is used for Object compares; and ! Collator.equals() is used for String compares.
theRhs
- The right-hand side of the comparison.
public java.lang.String getDataTypeAsString()
public java.lang.String toString()
public static java.lang.String Copyright()
|
ABLE, Version 1.1b | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |