|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.connectivity.oda.spec.ExpressionArguments
public class ExpressionArguments
Runtime argument(s) of an expression defined in an ODA query specification.
Their values are used by an ODA driver to evaluate an expression and its variable
specified in an ODA query specification.
The argument values are normally provided by an ODA consumer application during runtime,
such as by collecting user-input values for an expression's arguments.
Constructor Summary | |
---|---|
ExpressionArguments()
|
|
ExpressionArguments(java.lang.Object argValues)
Constructor. |
Method Summary | |
---|---|
ExpressionArguments |
addValue(boolean value)
A convenient method to append a value in primitive data type. |
ExpressionArguments |
addValue(double value)
A convenient method to append a value in primitive data type. |
ExpressionArguments |
addValue(int value)
A convenient method to append a value in primitive data type. |
ExpressionArguments |
addValue(java.lang.Object aValue)
Appends the specified value to the end of its list of argument values. |
java.lang.Object |
getValue(int index)
Returns the value at the specified position of the ordered collection of argument values. |
ValueExpression |
getValueExpression(int index)
Returns the value expression that represents the value at the specified position of the ordered collection of argument values. |
java.lang.Object |
getValues()
Returns all the argument value(s). |
boolean |
hasValues()
Indicates whether this has argument values. |
void |
setValues(java.lang.Object argValues)
Sets all the argument value(s). |
java.lang.String |
toString()
|
int |
valueCount()
Returns the number of values in this argument. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExpressionArguments(java.lang.Object argValues)
argValues
- the argument value(s); may be null if no values,
a single value, or
an ordered Collection
that holds multiple valuespublic ExpressionArguments()
Method Detail |
---|
public boolean hasValues()
public int valueCount()
public java.lang.Object getValues()
Collection
that holds multiple valuespublic java.lang.Object getValue(int index)
addValue(Object)
.
If the argument's values are not kept in a List
,
all the value(s) are returned at the 0 position.
index
- 0-based position of the list of argument values
getValueExpression(int)
public ValueExpression getValueExpression(int index)
index
- 0-based position of the list of argument values
getValue(int)
public ExpressionArguments addValue(java.lang.Object aValue)
aValue
- a value to add; may be null
java.lang.UnsupportedOperationException
- if existing values, if any, are not in a List
public ExpressionArguments addValue(int value)
value
- an int value
addValue(Object)
public ExpressionArguments addValue(double value)
value
- a double value
addValue(Object)
public ExpressionArguments addValue(boolean value)
value
- a boolean value
addValue(Object)
public void setValues(java.lang.Object argValues)
argValues
- the argument value(s); may be null if no values,
a single value, or
an ordered Collection
that holds multiple valuespublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |