|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.ibm.able.data.AbleLhs
com.ibm.able.data.AbleVariable
com.ibm.able.data.AbleTypedVariable
com.ibm.able.data.AbleGenericVariable
This class defines the Able data generic variable. The value of a generic variable can be any Java object.
| Field Summary |
|---|
| Fields inherited from class com.ibm.able.data.AbleTypedVariable |
|---|
myDataTypeClass, myDataTypeClassName, myDataTypeName, myInitialParms, myValue |
| Fields inherited from class com.ibm.able.data.AbleVariable |
|---|
myBoundFlag, myChgSupport, myComment, myContext, myDataType, myGlobalFlag, myId, myName, myPrompt, myReferences, myStaticFlag, myTemplateFlag, myValueInitial |
| Constructor Summary | |
|---|---|
protected |
AbleGenericVariable(int theDataType,
java.lang.String theName,
boolean theStaticFlag,
boolean theGlobalFlag,
java.lang.Object theInitialValue)
Create a new variable of the specified type and with the specified name. |
|
AbleGenericVariable(java.lang.String theName)
Create a new generic variable. |
|
AbleGenericVariable(java.lang.String theName,
boolean theStaticFlag,
boolean theGlobalFlag)
Create a new generic variable. |
|
AbleGenericVariable(java.lang.String theName,
boolean theStaticFlag,
boolean theGlobalFlag,
java.lang.Object theInitialValue)
Create a new generic variable. |
|
AbleGenericVariable(java.lang.String theName,
java.lang.Object theInitialValue)
Create a new generic variable. |
| Method Summary | |
|---|---|
java.lang.String |
arlDclString()
Return a formal ARL "declaration" string that describes this data object. |
java.lang.String |
armlDclString()
Return a formal XML "declaration" string that describes this data object. |
java.lang.Class |
getDataTypeClass()
Retrieve the actual class of this object's underlying data type. |
java.lang.String |
getDataTypeClassName()
Retrieve the name of the class of this object's underlying data type. |
java.lang.String |
getDataTypeName()
Retrieve the data type name. |
java.lang.Class |
getLiteralClass()
Retrieve the class of this variable's related AbleLiteral data type. |
java.lang.String |
getStringValue()
Retrieve the value of this data object as a string value. |
void |
init()
Init the variable to its intial state. |
void |
reset()
Reset the variable to its intial state. |
protected void |
setRawValue(java.lang.Object theNewValue)
Set the variable's current value. |
java.lang.String |
toString()
Retrieve a string describing (the contents of) the object. |
java.lang.String |
traceString(int theTraceStringFlavor)
Retrieve a string describing (the contents of) the object. |
java.lang.String |
xmlDclString()
Return a formal XML "declaration" string that describes this data object. |
| Methods inherited from class com.ibm.able.data.AbleTypedVariable |
|---|
asgnEq, clear, cmpEq, cmpGt, cmpGtEq, cmpIs, cmpLt, cmpLtEq, cmpNeq, compDivide, compMinus, compMultiply, compPlus, compUnaryMinus, getBooleanValue, getFuzzyValue, getGenericValue, getNumericValue, getValue, getValueString, replaceValues, setBooleanValue, setFuzzyValue, setGenericValue, setNumericValue, setStringValue, setValue, setValueString |
| Methods inherited from class com.ibm.able.data.AbleVariable |
|---|
arlCRdString, arlInitializerString, armlCRdString, armlInitializerString, getArlComment, getChgSupport, getComment, getContext, getDataType, getDataTypeAsString, getId, getName, getPrompt, getPromptString, getReferences, getReferent, getReferents, getTemplateString, isBound, isConstant, isGlobal, isLocal, isStatic, isTemplate, notStatic, setChgSupport, setComment, setContext, setId, setInitialValue, setPrompt, setReferences, setStatic, setTemplate, xmlCRdString, xmlCWrString, xmlInitializerString |
| Methods inherited from class com.ibm.able.data.AbleLhs |
|---|
asgnIs, asgnIs, bitwiseAND, bitwiseNOT, bitwiseOR, bitwiseShiftLeft, bitwiseShiftRight, bitwiseShiftRightZeroFill, bitwiseXOR, compModulo, logicalAND, logicalNOT, logicalOR |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AbleGenericVariable(java.lang.String theName)
theName - The unique name of the variable.
public AbleGenericVariable(java.lang.String theName,
boolean theStaticFlag,
boolean theGlobalFlag)
theName - The unique name of the variable.
theStaticFlag - Use true if this variable is to be marked as
static, which means that it will ignore future reset
requests; use false if the variable can be
reset to its initial value when requested.
theGlobalFlag - Use true if this variable is to be considered
global;
use false if the variable is to be considered
local.
public AbleGenericVariable(java.lang.String theName,
boolean theStaticFlag,
boolean theGlobalFlag,
java.lang.Object theInitialValue)
theName - The unique name of the variable.
theStaticFlag - Use true if this variable is to be marked as
static, which means that it will ignore future reset
requests; use false if the variable can be
reset to its initial value when requested.
theGlobalFlag - Use true if this variable is to be considered
global;
use false if the variable is to be considered
local.
theInitialValue - The value to which this variable is initially set.
public AbleGenericVariable(java.lang.String theName,
java.lang.Object theInitialValue)
theName - The unique name of the variable.
theInitialValue - The value to which this variable is initially set.
protected AbleGenericVariable(int theDataType,
java.lang.String theName,
boolean theStaticFlag,
boolean theGlobalFlag,
java.lang.Object theInitialValue)
This constructor is obviously used by variables derived from this generic variable; for example, AbleTypedVariable.
theDataType - An AbleData.<DataType> constant.
theName - The unique name of the variable.
theStaticFlag - Use true if this variable is to be marked as
static, which means that it will ignore future reset
requests; use false if the variable can be
reset to its initial value when requested.
theGlobalFlag - Use true if this variable is to be considered
global;
use false if the variable is to be considered
local.
theInitialValue - The value to which this variable is initially set.
| Method Detail |
public java.lang.String getStringValue()
throws AbleDataException
getStringValue in interface AbleRdgetStringValue in class AbleTypedVariableAbleDataException - If the value of this object cannot be represented as
a string value.public java.lang.String arlDclString()
arlDclString in interface AbleWrarlDclString in class AbleTypedVariablepublic java.lang.String xmlDclString()
xmlDclString in interface AbleWrxmlDclString in class AbleTypedVariablepublic java.lang.String armlDclString()
armlDclString in class AbleTypedVariable
public void reset()
throws AbleDataException
reset in class AbleTypedVariableAbleDataException
public void init()
throws AbleDataException
init in class AbleTypedVariableAbleDataExceptionpublic java.lang.Class getDataTypeClass()
AbleLhs
getDataTypeClass in interface AbleRdgetDataTypeClass in class AbleTypedVariablepublic java.lang.String getDataTypeClassName()
AbleLhs
getDataTypeClassName in interface AbleRdgetDataTypeClassName in class AbleTypedVariablepublic java.lang.String getDataTypeName()
getDataTypeName in class AbleTypedVariablepublic java.lang.Class getLiteralClass()
getLiteralClass in class AbleTypedVariable
protected void setRawValue(java.lang.Object theNewValue)
throws AbleDataException
Note that this method fires a PropertyChange with both old and new values, but only if a PropertyChangeSupport object has been set in the variable.
AbleDataExceptionpublic java.lang.String toString()
toString in class AbleTypedVariablepublic java.lang.String traceString(int theTraceStringFlavor)
traceString in interface AbleRdtraceString in class AbleTypedVariabletheTraceStringFlavor - An Able.TraceStringFlavor value.
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||